# Day 2 — Building a DirectX 12 Rendering Pipeline from Scratch

**URL:** <https://forums.unrealengine.com/t/day-2-building-a-directx-12-rendering-pipeline-from-scratch/2861417>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, CPP\
**Created:** [November 24, 2026, 11:47am UTC](https://forums.unrealengine.com/t/day-2-building-a-directx-12-rendering-pipeline-from-scratch/2861417 "2026-11-24T11:47:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinpc\_1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kevinpc_1/32/1215238_2.png) [@kevinpc\_1](https://forums.unrealengine.com/u/kevinpc_1)\
**Post date:** [November 24, 2026, 11:47am UTC](https://forums.unrealengine.com/t/day-2-building-a-directx-12-rendering-pipeline-from-scratch/2861417/1 "2026-11-24T11:47:48Z")

</div>

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](https://youtu.be/Wwn7IzjS56M)

#EngineProgramming #DirectX12 #CPlusPlus #GraphicsProgramming #GameEngine #Rendering #MicrosoftGDK
