blob: b8dc83b06a3a0e6c056e19bde7114f1d0730b63f (
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): -allow-glsl -stage compute -entry computeMain -target glsl
//TEST:SIMPLE(filecheck=CHECK): -allow-glsl -stage compute -entry computeMain -target spirv -emit-spirv-directly
//TEST_INPUT:ubuffer(data=[0], stride=4):out,name=outputBuffer
buffer MyBlockName2
{
uint data[1];
} outputBuffer;
layout(local_size_x = 4) in;
//TEST_INPUT: set someImage = RWTexture2D(format=RGBA16Float, size=1, content=one, mipMaps = 1)
uniform layout(binding=0,rgba16f) readonly image2D someImage;
// CHECK: error 30048
bool checkAllImageSizes(writeonly image2D val)
{
return true
&& imageSize(val) == ivec2(1)
;
}
void computeMain()
{
outputBuffer.data[0] = true
&& checkAllImageSizes(someImage);
;
}
|