yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
1f99c2086
master
1//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_SPIRV): -stage fragment -entry fragmentMain -target spirv -profile spirv_1_3 2 3// We currently do not have GLSL profiles, pass in SPIRV profile instead. We need 4// to pass in a profile parameter to emit the warning. 5//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK_GLSL): -stage fragment -entry fragmentMain -target glsl -profile spirv_1_3 6 7// CHECK_SPIRV: warning 41012{{.*}}'spvImageGatherExtended' 8// CHECK_GLSL: warning 41012{{.*}}'GLSL_150 + GL_ARB_texture_gather' 9float4 fragmentMain(float2 pos : SV_Position, Sampler2D<float> foo) : SV_Target 10{ 11 return foo.Gather(uint2(pos)); 12} 13