Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement D3D11 renderer. #3

Closed
wants to merge 7 commits into from
Closed

Implement D3D11 renderer. #3

wants to merge 7 commits into from

Conversation

Pixfri
Copy link
Owner

@Pixfri Pixfri commented Dec 22, 2024

This pull request's goal is to add the D3D11 renderer into the engine.

What is currently supported :

  • D3D11 context initialization
  • texture & sampler creation and binding
  • buffer creation
  • shaders & input layouts
  • index buffers
  • constant buffers
  • model loading
  • command lists
  • compute shaders
  • tesselation pipeline shaders
  • geometry shaders

This is a non-exhaustive list of features, other features may be added in the future.

@Pixfri Pixfri self-assigned this Dec 22, 2024
@Pixfri Pixfri marked this pull request as draft December 22, 2024 21:29
…/textures directory directly in their class instead of forcing the user to specify it manually.
…r, it doesn't need to be explicit, that's why it's there.
Added:
Added the possibility to bind constant buffers.
Added the possibility to create empty buffers.
Setup 3D Rendering.

Modified:
Changed Renderer::BindVertexBuffer to Renderer::BindVertexBuffers, that lets the user bind multiple vertex buffers.
Added:
Added depth buffer and depth state.
Added rasterizer state.
Added Renderer::DrawIndexed method to draw models with an index buffer.
Added Renderer::BindIndexBuffer method to bind an index buffer.

Modified:
Made the pixel shader output the color instead of the texture.
Added:
Added Pipeline class to represent a pipeline and its attachments (textures, samplers, constant buffers) and PipelineBuilder to create pipelines.

Modified:
Made the pixel shader output the color instead of the texture.

Removed:
Removed the old ShaderCollection class.
@Pixfri Pixfri closed this Dec 24, 2024
@Pixfri Pixfri deleted the feat/d3d11-renderer branch December 24, 2024 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant