Skip to content

Making input_attachment_index optional #338

Closed

Description

@rg3igalia

As you probably know, in Vulkan the InputAttachmentIndex decoration for SubpassData images is now optional thanks to VK_KHR_dynamic_rendering_local_read. However, glslang and GL_KHR_vulkan_glsl make it mandatory. Some CTS tests that I'm writing would benefit from making the decoration optional in GLSL, because it leads to more interesting scenarios and, at the same time, writing the shaders in SPIR-V assembly would be quite painful. What's the best way to make the decoration optional for GLSL? Do you think an extension is required? Could we simply tune the wording in GL_KHR_vulkan_glsl?

Related:

Activity

  1. Tobski commented on Aug 4, 2026

    @Tobski
    Contributor

    Hey Ricardo, at this point yes it needs a new extension. It would be a fairly small one, but nonetheless that's the best path.

  2. rg3igalia commented on Aug 4, 2026

    @rg3igalia
    ContributorAuthor

    Alright, I'll create one and submit a PR to this repo.

  3. rg3igalia commented on Aug 5, 2026

    @rg3igalia
    ContributorAuthor

    Created #339. Please review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions