diff options
Diffstat (limited to 'tests/bugs/meta-2.slang')
| -rw-r--r-- | tests/bugs/meta-2.slang | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/bugs/meta-2.slang b/tests/bugs/meta-2.slang new file mode 100644 index 000000000..6dd5541c4 --- /dev/null +++ b/tests/bugs/meta-2.slang @@ -0,0 +1,18 @@ +//TEST(compute):COMPARE_COMPUTE_EX:-slang -compute -shaderobj + +//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name outputBuffer +RWStructuredBuffer<int> outputBuffer; + +struct GetValue<let N : int> +{ + static const int Value = N; +}; + +[numthreads(4, 1, 1)] +void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) +{ + int index = dispatchThreadID.x; + + outputBuffer[index] = GetValue<10>::Value; +} + |
