Game Engine Programming 037.2 - Resource states and barriers | C++ Game Engine

Опубликовано: 04 Август 2026
на канале: Game Engine Series
2,636
63

Today, we'll finish setting up the geometry pass stage of the graphics renderer. We are also going to deal with resource states and barriers, by writing some new helpers and using them to set transition barriers for geometry pass buffers.
🟥(Red Episode)

✅ Support Game Engine Series
  / gameengineseries  

✅ Buy me chocolate
https://www.paypal.com/paypalme/arash...

✅ Discord
  / discord  

🐱 Mr. Frummel & Louis
  / mr.frummel  

❤️ Big thanks to Shaman patrons:
Eearslya Sleiarion, Michael McMahon, Neil Wang, Shaun Mitchell, Zachary Shrout, mg

00:00 - intro
00:43 - continue implementing gpass render
01:33 - setting render targets
03:30 - calling gpass functions in the renderer
05:51 - explain barriers and resource states
11:28 - write resource transition helper function
14:!3 - write helper class to set multiple barriers
18:48 - write barrier functions for gpass module

further reading:
Breaking Down Barriers: https://therealmjp.github.io/posts/
Using resource barriers: https://docs.microsoft.com/en-us/wind...

keywords: directx 12, graphics, renderer, forward+, gpass, transition barrier

by Arash Khatami
-------------------------------------------------------------
#PrimalEngine #GameEngineSeries #GameEngineProgramming #TheGameEngineProgrammingSeries