Automated Testing of Shader Code
summary
Rare’s Rare Shader Test framework runs HLSL 2015 shader unit tests on top of Unreal’s test runner, dispatching compute shaders (often 1x1x1) from C++17 code, writing assertion data to a GPU readback buffer and validating on the CPU. The framework emits clear compile-time errors via emulated Concepts, requires using begin CQ test shader parameter struct for extra bindings, executes 29 tests in ~0.3s (~10 ms/test), and has an open-source HLSL2021 experiment on GitHub with CI via GitHub Actions.
AI-written summary · about
chapters (9)
- 0:00Intro
- 0:20About me
- 2:01The problem
- 7:07HLSL
- 10:16Goals
- 14:30Binding Extra Parameters
- 17:05C Concepts
- 21:18Future Goals
- 23:04Questions
related talks
57mAdvanced Unity Shaders
43mShader Tricks in Game Production
38mGrowing a Healthy UE4 Ecosystem
24mThe State of Game Development With JetBrains
21mOptimising your mobile game using scriptable render pipelines
15mUnderstanding Technical Art
55mSo You're Trying to Support a Medium Sized Studio....
02h 10mShaders
