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

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

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

Comments

@Shfty
Copy link
Collaborator

Shfty commented Mar 24, 2023

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

@Shfty Shfty added the upstream Issue lies with an upstream repository label Mar 24, 2023
@Shfty Shfty 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