Skip to content

Required shader definitions are inaccessible by Material in mainline bevy #19

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

Open
ProfLander opened this issue Mar 24, 2023 · 0 comments
Labels
upstream Issue lies with an upstream repository

Comments

@ProfLander
Copy link
Collaborator

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 ProfLander added the upstream Issue lies with an upstream repository label Mar 24, 2023
@ProfLander ProfLander added this to the Stable Release milestone Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Issue lies with an upstream repository
Projects
None yet
Development

No branches or pull requests

1 participant