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

Naga (Metal conversion) crash if we use "vertex" variable name in VertexOutput #5588

Open
tpisto opened this issue Apr 23, 2024 · 1 comment

Comments

@tpisto
Copy link

tpisto commented Apr 23, 2024

The shader code that causes Naga error is working with Chrome, so I assume it's valid shader code.

Description

This shader code works:

struct VertexOutput {
    @builtin(position) position: vec4f,
    @location(1) @interpolate(flat) instance: u32,
    @location(2) @interpolate(linear) my_vertex: vec2f
}

Please note the "my_vertex" name

This causes naga errors:

struct VertexOutput {
    @builtin(position) position: vec4f,
    @location(1) @interpolate(flat) instance: u32,
    @location(2) @interpolate(linear) vertex: vec2f
}

Please note the "vertex" name

Platform
OS X, M1

@tpisto tpisto changed the title Naga (metal conversion) crash if we use "vertex" variable name in VertexOutput Naga (Metal conversion) crash if we use "vertex" variable name in VertexOutput Apr 23, 2024
@teoxoy
Copy link
Member

teoxoy commented Apr 23, 2024

I'm not seeing any errors on trunk. Could you provide more details? naga/wgpu version would be a good start.

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

2 participants