yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
45cc7a18a
master
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}