mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-14 16:01:07 +00:00
f591bc0d4a
Support BuiltInFragDepth. Emit interface block for StorageClassUniformConstant. Throw exception when output or fragment input structs contain matrix or array. Dynamically created interface structs sorted by location number instead of alphabetically. Add Compiler::is_array() function.
12 lines
194 B
GLSL
12 lines
194 B
GLSL
#version 310 es
|
|
precision mediump float;
|
|
|
|
layout(location = 0) out vec4 FragColor;
|
|
layout(location = 0) in vec4 vColor;
|
|
|
|
void main()
|
|
{
|
|
FragColor = gl_FragCoord + vColor;
|
|
gl_FragDepth = 0.5;
|
|
}
|