Skip to content

Is gl_DepthRange supported? If so, how can we enable its use in our shaders? #1315

Answered by robertosfield
nolankramer asked this question in Q&A
Discussion options

You must be logged in to vote

It doesn't look like Vulkan supports gl_DepthRange:

GL_KHR_vulkan_glsl.txt

Bit of document that mentions gl_DepthRange:

Overview

    This is version 100 of the GL_KHR_vulkan_glsl extension.

    This extension modifies GLSL to be used as a high-level language for the
    Vulkan API.  GLSL is compiled down to SPIR-V, which the Vulkan API
    consumes.

    The following features are removed:
        * default uniforms (uniform variables not inside a uniform block),
          except for opaque types
        * atomic-counters (those based on atomic_uint)
        * subroutines
        * shared and packed block layouts
        * the already deprecated texturing functions (e.g., texture2D())
 …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by robertosfield
Comment options

You must be logged in to vote
2 replies
@nolankramer
Comment options

@nolankramer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants