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
308 B19 linesraw
1//TEST:SIMPLE(filecheck=CHECK):-target spirv-assembly -entry main -profile ps_5_0
2
3// CHECK: OpDecorate %pblock Binding 0
4// CHECK: OpDecorate %pblock DescriptorSet 0
5struct E
6{
7};
8
9struct P
10{
11	E em;
12	float4 param;
13};
14ParameterBlock<P> pblock;
15
16float4 main(float4 pos : SV_POSITION)
17{
18	return pblock.param;
19}