Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide how to handle array interfaces #211

Open
spencer-lunarg opened this issue Jul 20, 2023 · 0 comments
Open

Decide how to handle array interfaces #211

spencer-lunarg opened this issue Jul 20, 2023 · 0 comments

Comments

@spencer-lunarg
Copy link
Contributor

certain interface variables have "array interfaces", things like

  • all Geometry input variables
  • variables marked with PerVertexKHR
  • etc

These will look like

layout(location = 0) pervertexEXT in float a[3];
layout(location = 1) pervertexEXT in float b[3];

and then

    1:
      spirv id  : 20
      location  : 0
      type      : float
      array     : [3]
      semantic  : 
      name      : a
      qualifier : 
    2:
      spirv id  : 44
      location  : 1
      type      : float
      array     : [3]
      semantic  : 
      name      : b
      qualifier : 

these "array interface" are what makes this legal, otherwise it would be invalid as a would consume Location [0, 1, 2]

It would be nice to express this, not sure if the best thing is marking these with a qualifier or other mechanism

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant