Skip to content

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

Description

@ProfLander

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamIssue lies with an upstream repository

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions