blob: fe2ea1943b2d975f2c348559087286ae3e64cab3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//TEST:SIMPLE(filecheck=CHECK): -stage compute -entry computeMain -allow-glsl -target glsl
//TEST:SIMPLE(filecheck=CHECK): -stage compute -entry computeMain -allow-glsl -target spirv -emit-spirv-directly
volatile buffer MyBlockName1
{
readonly uint data2;
readonly writeonly uint data3;
} inputBuffer1;
layout(local_size_x = 1) in;
void computeMain()
{
//CHECK: error 30011
inputBuffer1.data2 = 1;
//CHECK: error 30011
inputBuffer1.data3 = 1;
}
|