yum-mirror/slang

Making it easier to work with shaders

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

Yong HeSPIRV `Block` decoration fixes. (#4303)9a23a9aab

master
363 B15 linesraw
1//TEST:SIMPLE(filecheck=CHECK):-profile ps_4_0 -entry main -target spirv-assembly
2
3// CHECK-DAG: OpDecorate %gDoneGroups{{.*}} DescriptorSet 4
4
5// CHECK-DAG: OpDecorate %gDoneGroups{{.*}} Binding 3
6
7[[vk::binding(3, 4)]]
8RWStructuredBuffer<uint> gDoneGroups : register(u3);
9
10float4 main(
11    float3 uv : UV)
12    : SV_Target
13{
14    return gDoneGroups[int(uv.z)]; 
15}