yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
b0e150511
master
1//TEST:SIMPLE(filecheck=CHECK): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl 2//TEST:SIMPLE(filecheck=CHECK): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl 3//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl -ignore-capabilities 4//TEST:SIMPLE(filecheck=CHECK_IGNORE_CAPS): -target hlsl -emit-spirv-directly -entry computeMain -stage compute -allow-glsl -ignore-capabilities 5 6// CHECK_IGNORE_CAPS-NOT: error 36107 7// CHECK: error 36107 8SamplerState samplerState; 9Texture2D<int> rw; 10 11[numthreads(1,1,1)] 12void computeMain() 13{ 14 clip(0.0f); // clip is not supported in compute shader, so this throws an error. 15}