Skip to content
This repository has been archived by the owner on Jan 29, 2025. It is now read-only.

[glsl-in] Arrays as attributes do not seem to be supported #1233

Closed
StephanvanSchaik opened this issue Aug 19, 2021 · 0 comments · Fixed by #1759
Closed

[glsl-in] Arrays as attributes do not seem to be supported #1233

StephanvanSchaik opened this issue Aug 19, 2021 · 0 comments · Fixed by #1759
Labels
area: front-end Input formats for conversion help wanted Extra attention is needed kind: feature New feature or request lang: GLSL OpenGL Shading Language

Comments

@StephanvanSchaik
Copy link

In GLSL, it is possible to specify structs and arrays as attributes (see https://www.khronos.org/opengl/wiki/Layout_Qualifier_(GLSL)), in which case they may consume multiple attribute locations for each element in the array or field in the struct. However, naga 0.6 does not seem to support them (arrays in vertex shaders, at least):

Examples are:

layout(location = 0) in vec4 in_foo[2];
layout(location = 0) out vec4 out_foo[2];
@JCapucho JCapucho added area: front-end Input formats for conversion kind: feature New feature or request lang: GLSL OpenGL Shading Language help wanted Extra attention is needed labels Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: front-end Input formats for conversion help wanted Extra attention is needed kind: feature New feature or request lang: GLSL OpenGL Shading Language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants