GLSL icon indicating copy to clipboard operation
GLSL copied to clipboard

Vulkan reserved keywords are missing from the GLSL ES 3.2 Spec

Open teoxoy opened this issue 2 years ago • 1 comments

Comparing the GLSL 4.6 keywords with the GLSL ES 3.2 keywords, I noticed the following Vulkan keywords were missing from the GLSL ES 3.2 reserved keywords section.

texture1DArray
utexture2DRect
utexture1DArray
texture2DRect
texture1D
itexture1D
itexture1DArray
utexture1D
itexture2DRect

https://github.com/KhronosGroup/OpenGL-Registry/blob/d00e11dc1a1ffba581d633f21f70202051248d5c/specs/gl/GLSLangSpec.4.60.html#L2004-L2322

https://github.com/KhronosGroup/OpenGL-Registry/blob/d00e11dc1a1ffba581d633f21f70202051248d5c/specs/es/3.2/GLSL_ES_Specification_3.20.html#L2166-L2478

teoxoy avatar Jul 25 '23 10:07 teoxoy

So these keywords are added by GL_KHR_vulkan_glsl to the desktop version of the spec, but they were not reserved before that extension in either GL or ES. The extension doesn't say what should happen to the 1D version of the keywords in ES, where 1D textures are not supported, but I agree that making them reserved would be the sensible thing to do. If the working group agrees then I'll update the spec.

gnl21 avatar Aug 14 '23 17:08 gnl21