blob: fd2800e2c1c168dd12c27d0ebe486f4381545d2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//TEST:SIMPLE(filecheck=CHECK): -profile ps_5_0 -entry main -target spirv-assembly
// CHECK: OpDecorate %gTest Binding 0
// CHECK: OpDecorate %gTest DescriptorSet 0
struct Test
{
float4 a;
Texture2D t;
SamplerState s;
};
ParameterBlock<Test> gTest;
float4 main(float2 uv : UV)
{
return gTest.a + gTest.t.Sample(gTest.s, uv);
}
|