yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
da5cf478c
master
1//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target wgsl -entry Main -stage compute 2 3//CHECK_IGNORE_CAPS-NOT: error 36107 4[require(cpp_cuda_glsl_hlsl_metal_spirv)] 5struct inputWrapper { 6 RWBuffer<float> InputTyped; 7}; 8 9inputWrapper input; 10 11[numthreads(64, 1, 1)] 12void Main(uint3 DTid : SV_DispatchThreadID) 13{ 14 // We should not see an error here, because the inputWrapper is not referenced. 15}