How many uniforms does bevy support with GLSL? #10432
Unanswered
david4shure
asked this question in
Q&A
Replies: 1 comment 15 replies
-
I'm not super familiar with GLSL, but your bind group indices and binding indices don't seem to match the bind group layout you specified. Also, the settings binding should be one big struct in binding 4 of whatever bind group this layout is used for not a bunch of separate uniforms |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to write an atmosphere shader and integrate it with a bevy project as a post processing effect, and I have run into many issues. Lemme first start out by showing my bind group, I have 5 of them.
The atmosphere settings type referenced in the last element there is a struct that looks like the following
Now, when I bind these pieces of information to the pipeline, it looks like this
I have written a bevy system that syncs out the following fields to the AtmosphereSettings struct
My question is the following, when I try to run this program (of which I've tried to include as much relevant detail here as I can), I get the following error:
It's saying the group 1, binding 2 is not available in the layout pipeline layout, IE its missing. I'm a little lost here and could use some help, the example on post processing shaders wasn't up to date, and doesn't really show you how to do much. I've so far been able to write out the screen texture, screen Texture Sampler, the depth texture, and depth Texture Sampler to a post processing shader, and it worked just fine with these bindings, so I don't think thats really the issue. I suspect this error has something to do with my AtmosphereSettings uniform struct.
Beta Was this translation helpful? Give feedback.
All reactions