2017-07-21 19:36:33 +00:00
|
|
|
#version 450
|
2016-07-07 23:46:42 +00:00
|
|
|
|
|
|
|
#ifdef GL_SPIRV
|
|
|
|
#error GL_SPIRV is set ( correct, not an error )
|
|
|
|
#if GL_SPIRV == 100
|
|
|
|
#error GL_SPIR is 100
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-02-22 01:19:49 +00:00
|
|
|
uniform float f; // ERROR, no location
|
2017-07-21 19:36:33 +00:00
|
|
|
layout(location = 2) uniform float g;
|
2018-02-22 01:19:49 +00:00
|
|
|
uniform sampler2D s1; // ERROR, no binding
|
|
|
|
layout(location = 3) uniform sampler2D s2; // ERROR, no binding
|
2017-07-21 19:36:33 +00:00
|
|
|
|
2017-11-03 09:39:48 +00:00
|
|
|
void noise()
|
|
|
|
{
|
|
|
|
noise1(vec4(1));
|
|
|
|
noise2(4.0);
|
|
|
|
noise3(vec2(3));
|
|
|
|
noise4(1);
|
|
|
|
}
|
|
|
|
|
2018-02-22 01:19:49 +00:00
|
|
|
uniform atomic_uint atomic; // ERROR, no binding
|
2016-07-07 23:46:42 +00:00
|
|
|
layout(input_attachment_index = 1) uniform subpassInput sub; // ERROR, no inputs
|