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:
jimihem 2024-07-18 06:23:38 +08:00 committed by GitHub
parent 48eaea60b8
commit 52f68dc6b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 201 additions and 8 deletions

17
Test/ps_sample.frag Normal file
View file

@ -0,0 +1,17 @@
#version 430 core
#extension GL_ARB_enhanced_layouts : require
layout (location = 1, component = 0) flat in uint gohan;
layout (location = 1, component = 2) sample flat in uvec2 goten;
in vec4 gs_fs;
out vec4 fs_out;
void main()
{
vec4 result = gs_fs;
fs_out = result;
}