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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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