summaryrefslogtreecommitdiff
path: root/tests/glsl-intrinsic/atomic/atomicErrorTest1.slang
blob: 0512d598e3c75c8593c7677a1d73ae0eccd6f82f (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 20001

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

void computeMain()
{

}