mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
44fcbccd06
* location aliasing when location aliasing, the aliases sharing the location must have the same underlying numerical type (floating-point or integer) and the same auxiliary storage and interpolation qualification. The following case, glslang need report error. layout(vertices = 1) out; layout (location = 1, component = 0) in double gohan[]; layout (location = 1, component = 2) in float goten[]; in vec4 vs_tcs[]; out vec4 tcs_tes[]; void main() { } * Need consider the following case: location aliasing with different interpolation qualifier.
10 lines
206 B
GLSL
10 lines
206 B
GLSL
#version 430 core
|
|
#extension GL_ARB_enhanced_layouts : require
|
|
|
|
|
|
layout (location = 1, component = 0) in smooth float in1;
|
|
layout (location = 1, component = 2) in flat float in2;
|
|
|
|
void main()
|
|
{
|
|
} |