blob: cdd47d5b228e54e328becddb027edefd43e1ff6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//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
readonly writeonly buffer MyBlockName3
{
uint data1;
} inputBuffer1;
readonly buffer MyBlockName5
{
uint data1;
} inputBuffer2;
buffer dontOptimizeOutBlock
{
uint data1;
uint data2;
} optimizeBlock;
layout(local_size_x = 1) in;
void computeMain()
{
//CHECK: error 30011
inputBuffer1.data1 = optimizeBlock.data1;
//CHECK: error 30011
inputBuffer2.data1 = optimizeBlock.data2;
}
|