yum-mirror/slang

Making it easier to work with shaders

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

Gangzheng TongAdd check for the variable requirement (#6677)da5cf478c

master
426 B14 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target wgsl -entry Main -stage compute
2//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target wgsl -entry Main -stage compute -ignore-capabilities
3
4
5Buffer<float> InputTyped;
6RWBuffer<float> OutputTyped;
7
8//CHECK: ([[# @LINE+3]]): error 36107
9//CHECK_IGNORE_CAPS-NOT: error 36107
10[numthreads(64, 1, 1)]
11void Main(uint3 DTid : SV_DispatchThreadID)
12{
13    OutputTyped[DTid.x] = InputTyped[DTid.x];
14}