yum-mirror/slang

Making it easier to work with shaders

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

Yong HeVarious SPIRV fixes. (#3231)ebe8ddefc

master
372 B14 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -profile lib_6_3 -entry main -stage compute -target spirv
2
3[[vk::binding(0, 0)]]
4Texture2DMS tex : register(t1);
5
6RWStructuredBuffer<float4> outBuffer;
7
8// CHECK: %{{.*}} = OpImageFetch %v4float %{{.*}} %{{.*}} Sample %int_0
9
10[numthreads(4, 4, 1)]
11void main(uint3 groupId : SV_GroupID)
12{
13    outBuffer[0] = tex.Load(int2(groupId.xy), 0);
14}