mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 19:40:06 +00:00
b70669a059
Previously, when GL_EXT_spirv_intrinsics are enabled, we disable all checks in layoutTypeCheck. This is too coarse because we can use nothing in GL_EXT_spirv_intrinsics in a shader while the necessary processing is skipped, such as addUsedLocation. In this change, we apply fine check and more might be added if we encounter new cases in the future.
11 lines
261 B
GLSL
11 lines
261 B
GLSL
#version 460 core
|
|
#extension GL_EXT_spirv_intrinsics : enable
|
|
|
|
// ERROR: Overlapped input location. Make sure it could be detected even
|
|
// if GL_EXT_spirv_intrinsics is enabled.
|
|
layout(location = 0) in vec4 v4;
|
|
layout(location = 0) in vec3 v3;
|
|
|
|
void main() {
|
|
}
|