yum-mirror/slang

Making it easier to work with shaders

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

ArielG-NVIf no sample is set with a `Texture(.*)MS[]` operation, set sample to 0. (#4225)45cc7a18a

master
472 B17 linesraw
1//TEST:SIMPLE(filecheck=CHECK_SPV): -target spirv -emit-spirv-directly -entry computeMain -stage compute
2//TEST:SIMPLE(filecheck=CHECK_HLSL): -target hlsl -entry computeMain -stage compute
3
4//CHECK_SPV: OpEntryPoint
5//CHECK_HLSL: computeMain
6
7Texture2DMS<uint4> Src : register(t1);
8RWBuffer<uint4>    Dst : register(u2);
9
10[shader("compute")]
11[numthreads(1, 1, 1)]
12void computeMain()
13{
14// CHECK_SPV: Sample %int_0
15// CHECK_HLSL: [{{.*}}1{{.*}}]
16    Dst[0] = Src[int2(1)];
17}