Day 9 of building TitanEngine from scratch in C++20 and raw DirectX 12 — zero wrappers, no helper frameworks.

In this episode, we move from a single triangle to indexed quad geometry by introducing an Index Buffer (`D3D12_INDEX_BUFFER_VIEW`), `DXGI_FORMAT_R16_UINT`, and `DrawIndexedInstanced`, while keeping our per-frame Constant Buffer horizontal oscillation from Day 8 intact. What we cover in Day 9: - Why duplicating shared vertices across triangles does not scale in a game engine - Defining 4 unique quad vertices and 6 indices (`uint16_t`) - Creating the Index Buffer resource and uploading index data via `Map` / `memcpy` / `Unmap` - Configuring `D3D12_INDEX_BUFFER_VIEW` and binding it with `IASetIndexBuffer` - Rendering with `DrawIndexedInstanced` alongside our per-frame Constant Buffer (`b0`) Timestamps: 00:00 - Intro & Day 8 Recap 01:15 - Unique Vertices vs. Index Buffer (`uint16_t`) 03:00 - Creating & Mapping the Index Buffer in DirectX 12 05:30 - `D3D12_INDEX_BUFFER_VIEW` &

Link video Day 9:https://youtu.be/jHTWAxLzpJA

`DrawIndexedInstanced` 07:45 - Live Demo & Horizontal Offset Bounds Tech Stack: C++20, DirectX 12, DXGI 1.6, HLSL (Shader Model 5.0), Win32 #DirectX12 CPP #GameEngine #GraphicsProgramming #TitanEngine