yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
2b76466c4
master
1//TEST:CROSS_COMPILE(filecheck=CHECK): -profile ps_5_0 -entry main -target glsl 2 3// CHECK: textureQueryLod(sampler2D( 4// CHECK: textureQueryLod(sampler2D( 5// CHECK: textureQueryLod(sampler2DShadow( 6// CHECK: textureQueryLod(sampler2DShadow( 7 8Texture2D t; 9SamplerState s; 10SamplerComparisonState sc; 11 12float main() 13{ 14 float result = 0.0; 15 result += t.CalculateLevelOfDetail(s, float2(0,0)) + t.CalculateLevelOfDetailUnclamped(s, float2(0,0)); 16 result += t.CalculateLevelOfDetail(sc, float2(0,0)) + t.CalculateLevelOfDetailUnclamped(sc, float2(0,0)); 17 return result; 18}