HLSL of Horror
This page is a collection of horrible blurbs of HLSL code that will keep you up at night and keep me questioning my life decisions. Enjoy!
The ins and outs
Mar 31, 2025 inout is like a reference. Right?… Right?
How many initializers does it take?
Mar 28, 2025 How many apples can I make from 4 oranges?
Wave a little
Feb 25, 2025 SPMD control flow is mysterious and important.
Splatty Splat Splat Splat
Dec 5, 2024 HLSL has some weird casting rules for structures.
Choose that Overload
May 21, 2024 HLSL’s overload resolution is a bit unintuitive at times. This sequence of code samples tests your knowledge and expectations of one of DXC’s weirdest quirks.