# Building my first DirectX 12 RGB Triangle with C++ and Microsoft GDK!

**URL:** <https://forums.unrealengine.com/t/building-my-first-directx-12-rgb-triangle-with-c-and-microsoft-gdk/2860839>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, CPP\
**Created:** [November 23, 2026, 11:44am UTC](https://forums.unrealengine.com/t/building-my-first-directx-12-rgb-triangle-with-c-and-microsoft-gdk/2860839 "2026-11-23T11:44:18Z")\
**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 23, 2026, 11:44am UTC](https://forums.unrealengine.com/t/building-my-first-directx-12-rgb-triangle-with-c-and-microsoft-gdk/2860839/1 "2026-11-23T11:44:18Z")

</div>

🚀 **Building my first DirectX 12 RGB Triangle with C++ and Microsoft GDK!**

I’m starting a new journey into low-level graphics programming and game engine development for the Windows and Xbox ecosystem.

In this first episode, I’m building a basic RGB triangle from scratch, learning how DirectX 12 handles the rendering pipeline, shaders, GPU resources, and pipeline configuration.

🔹 HLSL Vertex & Pixel Shaders  
🔹 Root Signature  
🔹 Input Layout  
🔹 Pipeline State Object (PSO)  
🔹 Vertex Buffer  
🔹 DrawInstanced()

I also ran into a null Pipeline State Object access violation and worked through the debugging process to get the triangle rendering correctly.

This is part of my journey toward becoming a Game Engine Programmer, exploring graphics programming, C++, and low-level engine architecture.

Link to video:[https://youtu.be/vDlV6TfRiVc](https://youtu.be/vDlV6TfRiVc)

One step at a time. One system at a time. 🎮

#UnrealEngine #CPP #DirectX12 #GameDevelopment #GameEngine #GraphicsProgramming #MicrosoftGDK #hlsl #EngineProgramming #Xbox
