summaryrefslogtreecommitdiffstats
path: root/tests/glsl-intrinsic/atomic/atomicErrorTest4.slang
blob: 5b2435c41b2843ca2bcf88ba2228f442d439fa54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):  -allow-glsl -stage compute -entry computeMain -target glsl -DTARGET_GLSL
//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):  -allow-glsl -stage compute -entry computeMain -target spirv -emit-spirv-directly -DTARGET_SPIRV
#version 430

// CHECK: error 31217

//TEST_INPUT:ubuffer(data=[0 0 0 0 0 0], stride=4):name=one
layout(binding = 1, offset) uniform atomic_uint one;

void computeMain()
{

}