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

[glsl-in] naga rejects .length() unconditionally #2016

Closed
SpaceCat-Chan opened this issue Jul 27, 2022 · 0 comments · Fixed by #2017
Closed

[glsl-in] naga rejects .length() unconditionally #2016

SpaceCat-Chan opened this issue Jul 27, 2022 · 0 comments · Fixed by #2017
Labels
area: front-end Input formats for conversion kind: feature New feature or request lang: GLSL OpenGL Shading Language

Comments

@SpaceCat-Chan
Copy link
Contributor

minimal example:

#version 440 core

layout(std430, binding = 0) buffer something_buf {
    uint something[];
};

void main() {
    uint test = uint(something.length());
}

naga-cli rejects this with the following error

error: Expected Comma or RightParen, found LeftParen
  ┌─ minimal.comp:8:38
  │
8 │     uint test = uint(something.length());
  │                                      ^
@SpaceCat-Chan SpaceCat-Chan changed the title [glsl-in] naga rejects .length unconditionally [glsl-in] naga rejects .length() unconditionally Jul 27, 2022
@JCapucho JCapucho added kind: feature New feature or request area: front-end Input formats for conversion lang: GLSL OpenGL Shading Language labels Aug 6, 2022
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 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