location aliasing (#3438)
* 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.
This commit is contained in:
parent
9337143313
commit
44fcbccd06
11 changed files with 114 additions and 13 deletions
27
Test/baseResults/location_aliasing1.frag.out
Normal file
27
Test/baseResults/location_aliasing1.frag.out
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
location_aliasing1.frag
|
||||
ERROR: 0:6: 'location' : the aliases sharing the location 1 must be the same basic type and interpolation qualification
|
||||
ERROR: 1 compilation errors. No code generated.
|
||||
|
||||
|
||||
Shader version: 430
|
||||
Requested GL_ARB_enhanced_layouts
|
||||
ERROR: node is still EOpNull!
|
||||
0:8 Function Definition: main( ( global void)
|
||||
0:8 Function Parameters:
|
||||
0:? Linker Objects
|
||||
0:? 'in1' (layout( location=1 component=0) smooth in float)
|
||||
0:? 'in2' (layout( location=1 component=2) flat in float)
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
Shader version: 430
|
||||
Requested GL_ARB_enhanced_layouts
|
||||
ERROR: node is still EOpNull!
|
||||
0:8 Function Definition: main( ( global void)
|
||||
0:8 Function Parameters:
|
||||
0:? Linker Objects
|
||||
0:? 'in1' (layout( location=1 component=0) smooth in float)
|
||||
0:? 'in2' (layout( location=1 component=2) flat in float)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue