Skip to content

Defining Interface Matching in GLSL without any API dependencies #278

@pmistryNV

Description

@pmistryNV

GLSL is used both with OpenGL API and is lowered to SPIRV and used with Vulkan API

Vulkan interface matching requirements are at SPIRV level
https://docs.vulkan.org/spec/latest/chapters/interfaces.html

OpenGL Spec section 7.4.1 Shader Interface Matching spells out the GLSL requirements for shader interface matching.

GL_KHR_vulkan_glsl introduced some language for Vulkan, but it's not clear on whether location matching is permitted. What are the requirements for name matching?

It's better to clearly define the interface matching requirements in GLSL spec without any API dependencies. This will make interface matching language less ambiguous on Vulkan.

This bug is created to clarify the interface matching requirements when using GLSL for any API.
As part of the bug, we should define interface matching requirements in the language without referring to API environment specs.

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