glslang/Test/spv.intrinsicsFakeEnable.vert
Rex Xu 0da98c51c4 Spirv_intrinsics: Remove early return in layoutTypeCheck
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.
2023-12-11 20:03:17 +00:00

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() {
}