Add more location aliasing checks
When location aliasing, the aliases sharing the location must have the same underlying numerical type and bit width (floating-point or integer, 32-bit versus 64-bit, etc.) and the same auxiliary storage and interpolation qualification. This adds checks for the "patch" and "sample" qualifiers, and also relaxes the checks when the signedness of integer types differs.
This commit is contained in:
parent
48eaea60b8
commit
52f68dc6b2
9 changed files with 201 additions and 8 deletions
19
Test/tes_patch.tese
Normal file
19
Test/tes_patch.tese
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#version 430 core
|
||||
#extension GL_ARB_enhanced_layouts : require
|
||||
|
||||
layout(isolines, point_mode) in;
|
||||
|
||||
layout (location = 1, component = 0) in vec2 gohan[];
|
||||
layout (location = 1, component = 2) patch in vec2 goten;
|
||||
|
||||
in vec4 tcs_tes[];
|
||||
out vec4 tes_gs;
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 result = tcs_tes[0];
|
||||
|
||||
|
||||
|
||||
tes_gs += result;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue