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

GLSL backend can't handle matrix-typed globals #1811

Closed
jimblandy opened this issue Apr 8, 2022 · 1 comment · Fixed by #1823
Closed

GLSL backend can't handle matrix-typed globals #1811

jimblandy opened this issue Apr 8, 2022 · 1 comment · Fixed by #1823
Assignees
Labels
area: back-end Outputs of shader conversion kind: bug Something isn't working lang: GLSL OpenGL Shading Language

Comments

@jimblandy
Copy link
Member

When asked to produce GLSL from the following WGSL input, Naga declares the IR valid, but the GLSL back end produces the error "Non-struct type of a buffer":

@group(0)
@binding(0)
var<uniform> transform: mat4x4<f32>;

@stage(vertex)
fn main(
    @location(0) position: vec4<f32>,
) -> @builtin(position) vec4<f32> {
    return transform * position;
}
@jimblandy jimblandy added kind: bug Something isn't working area: back-end Outputs of shader conversion lang: GLSL OpenGL Shading Language labels Apr 8, 2022
@jimblandy jimblandy self-assigned this Apr 8, 2022
@jimblandy
Copy link
Member Author

I'm working on this, but it turns out there's a lot about GLSL I don't know, so it's taking a bit longer than expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: back-end Outputs of shader conversion kind: bug Something isn't working lang: GLSL OpenGL Shading Language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant