Skip to content

Investigate patching bevy to eliminate need for extra entrypoint injection #2

Closed
@ProfLander

Description

@ProfLander

Currently, NO_STORAGE_BUFFERS_SUPPORT, NO_TEXTURE_ARRAYS_SUPPORT and SIXTEEN_BYTE_ALIGNMENT are inaccessible to Material implementors through conventional methods; instead, the logic that drives them is replicated in crate::entry_point::rust_gpu_shader_defs and injected manually through the material.

This is not ideal, since changes to bevy's implementation would break it. It also introduces the need for a webgl flag on bevy-rust-gpu, which needs to be enabled manually by consuming crates.

In theory this should be fairly easy to move further up the render machinery chain, thus making those variables available to Material without a brittle workaround, so look into doing this and issuing a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions