yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Alexey PanteleevSupport for querying which parameters are used in emitted code (#2239)69cb6e8f3

master
264 B11 linesraw
1//TEST:REFLECTION:-profile cs_5_0 -target hlsl -no-codegen
2
3// Confirm that we provide reflection data for the `numthreads` attribute
4
5RWStructuredBuffer<float> b;
6
7[numthreads(3,5,7)]
8void main(uint3 tid : SV_DispatchThreadID)
9{
10	b[tid.x] = b[tid.x + 1] + 1.0f;
11}