Closed ragarg closed 4 months ago
This is expected, you have an array of two vec4
s which takes two locations (5 and 6), and then you have something else in location 6 as well. If you reduce the size of the array to 1 you make it only take 1 location and then there are no overlaps. Perhaps the error message could be better in highlighting which two things overlap.
When parsing a shader in SPIR-V it gives an error
At the same time, if in a construction site you change the array size from 2 to 1, then there is no error
layout (location=5) out vec4 v_shadow_point_coord[2] ;
layout (location=5) out vec4 v_shadow_point_coord[1] ;