blob: 3419c05e7ba13a9775b6394bb63350bd2e8e8b07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//TEST:SIMPLE(filecheck=CHECK_SPV):-stage fragment -entry main -target spirv -emit-spirv-directly
// CHECK_SPV: OpDecorate %x NonWritable
StructuredBuffer<uint> x;
// CHECK_SPV: OpDecorate %y NonWritable
ByteAddressBuffer y;
float4 main() : SV_Target
{
return x[0] + y.Load<uint>(0);
}
|