KhronosGroup / GLSL

GLSL Shading Language Specification and Extensions
Other
337 stars 98 forks source link

Update GL_KHR_vulkan_glsl for Rect textures #224

Closed gnl21 closed 8 months ago

gnl21 commented 9 months ago

These are not used in Vulkan because the API does not distinguish these images as different dimensions, allowing mixing-and-matching with samplers that do and do not use unnormalized coordinates.

This update removes the additional Rect handles that were added but could never be used (texture2DRect, etc), explicitly reserves the tokens that already exist in GLSL (sampler2DRect, etc), and adds a brief explanation of how to get this same functionality in Vulkan.

Fixes Vulkan-Docs issue #1582.

gnl21 commented 8 months ago

Approved by the Vulkan WG 2024/01/31. The Vulkan spec does not support the "SampledRect" capability which would be required to use "Rect" images, so there shouldn't be any problem on the Vulkan side,