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 28 29 30 31 32 33 34 35 36 37 38 39
|
/* [config]
* expect_result: fail
* glsl_version: 3.10 es
* require_extensions: GL_OES_shader_io_blocks
* [end config]
*
* The GL_OES_shader_io_blocks spec says:
*
* "Issues
*
* (1) What functionality was removed from interface blocks relative to
* GL 4.4?
*
* - Interactions with features not supported by the underlying
* ES 3.1 API and Shading Language, including:
* * gl_ClipDistance shader inputs and outputs.
* * "component" layout
* * location aliasing
* * fragment shader output "index" layout
* * fragment shader gl_FragDepth layout "depth*" qualifiers
* * double-precision scalars and vectors
* * matching across shader stages with different qualifiers (other
* than precision and "in"/"out").
* * References allowing or assuming more than one shader object per
* pipeline stage.
* * gl_PerFragment is not added (only exists in compatibility
* profile)."
*/
#version 310 es
#extension GL_OES_shader_io_blocks: require
precision highp float;
layout(depth_greater) out float gl_FragDepth;
void main(void)
{
c = vec4(0);
}
|