Open HeXiaoZhi opened 1 year ago
This is an interesting spec edge case: glslang treats gl_SampleMask
as an unsized array, which is actually just fine for purposes of generating SPIR-V (Vulkan explicitly allows it to be unsized) but the GLSL ES spec has it as an explicitly sized array with the correct number of elements for the sample mask based on gl_MaxSamples
(which is probably just 1).
Has this issue been fixed
Not yet. We would be happy to take patches for these sorts of issues though.
dEQP-GLES31.functional.shaders.sample_variables.sample_mask.discard_half_per_pixel.default_framebuffer
gl_SampleMask.length() report “array must have size before use length” gl_SampleMask[i]= report “variable indexing fragment shader output array”