Continuing my C++ rendering project using the Microsoft GDK template for Windows Desktop and Handheld.
Today I moved from rendering a single triangle to an indexed quad, using 4 vertices and 6 indices instead of duplicating shared vertices.
What I implemented:
-
4 colored vertices
-
16-bit Index Buffer (
DXGI_FORMAT_R16_UINT) -
Index Buffer resource and view
-
IASetIndexBuffer() -
DrawIndexedInstanced() -
GPU resource cleanup in
OnDeviceLost()
The goal is to understand the rendering pipeline at a lower level while building the foundations of my own game engine for the PC and Xbox ecosystem.
Still learning, building, and debugging one step at a time.
Day 2 walkthrough below:https://youtu.be/Wwn7IzjS56M
#EngineProgramming #DirectX12 #CPlusPlus #GraphicsProgramming #GameEngine Rendering #MicrosoftGDK