This repository has been archived by the owner on Jan 29, 2025. It is now read-only.
pipeline that reuse the same binding group between vertex and fragment crash on Safari #1617
Labels
area: back-end
Outputs of shader conversion
kind: bug
Something isn't working
lang: GLSL
OpenGL Shading Language
Using Bevy pbr pipeline because I'm not really up to write my own pipelines.
Bevy is using the same shader for both fragment and vertex stages, and sharing some of the data structures between both. There are also two binding groups that are shared:
In the shader in wsgl:
In the vertex shader in glsl:
In the fragment shader in glsl:
This works under Firefox and Chrome, but gives an error with Safari:
If I change the glsl back in naga by removing the ID and stage from:
naga/src/back/glsl/mod.rs
Lines 895 to 900 in c2328fe
It works again with Safari, and also Firefox and Chrome.
I can submit a PR, but I'm not sure if this is the right fix, or other impacts that it may have
The text was updated successfully, but these errors were encountered: