mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
52f68dc6b2
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.
18 lines
304 B
GLSL
18 lines
304 B
GLSL
#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;
|
|
}
|