Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on kbin.social

Shader Printf in HLSL and DX12

Overall Approach Setting Up The Print Buffer The “Magic” Debug Info Buffer Dealing With The String Problem A Cursed Path Packing It All Into A Buffer Reading Back On The CPU Going Beyond Printf CR LF Unless you’re fortunate enough to to be working exclusively in Cuda, debugging GPU shaders is still very much “not great” in the year 2024. Tools like RenderDoc and PIX are amazing and do provide the ability to step through a shader and inspect variables, but they’re fundamentally tied to a “capture” workflow.

Shader Printf in HLSL and DX12https://therealmjp.github.io/posts/hlsl-printf/Open linkView original on kbin.social
1

No replies yet

No comments on the original post yet.
Shader Printf in HLSL and DX12 | Spyke