KStocky / ShaderTestFramework

An automation testing framework for testing shader code
MIT License
20 stars 1 forks source link

Pseudo C++20 Concepts Library #65

Closed KStocky closed 4 months ago

KStocky commented 5 months ago

Is your feature request related to a problem? Please describe. HLSL (well technically DXC) has a compiler intrinsic called __decltype. This paves the way for implementing Unreal's TModels and allows us to emulate C++20 concepts to make a nice mechanism for constraining templates and doing compile time validation.

Describe the solution you'd like Use __decltype to implement TModels and apply it across the framework.

Additional context Discord discussion godbolt link