bevy-rust-gpu icon indicating copy to clipboard operation
bevy-rust-gpu copied to clipboard

Required shader definitions are inaccessible by `Material` in mainline bevy

Open ProfLander opened this issue 2 years ago • 0 comments

RustGpu relies on the shader definitions passed into Material::specialize in order to assign the appropriate entrypoints to VertexState and FragmentState.

However, NO_TEXTURE_ARRAYS_SUPPORT, SIXTEEN_BYTE_ALIGNMENT and AVAILABLE_STORAGE_BUFFER_BINDINGS are omitted, as ShaderCache injects those at when a shader is retrieved via get, which occurs after Material::specialize.

This is accounted for in my development fork of bevy, but will block a stable release until resolved in mainline.

Upstream issue: bevy #8190

ProfLander avatar Mar 24 '23 06:03 ProfLander