Skip to content

Materials with slow loading textures never update the bind group after loading #15081

@JMS55

Description

@JMS55

Bevy version

0.15-dev

What you did

Use a material with a large (in bytes) texture.

What went wrong

Mesh does not render with the texture showing. Renderdoc shows there's a dummy 1x1 texture bound in the bind group.

Issue (probably):

  1. Texture is slow to load
  2. When preparing the material, the texture is not yet ready
  3. A dummy texture is slotted into the bind group instead
  4. When the texture finishes loading, the bind group is never updated

This probably applies to all types that use AsBindGroup with asset handles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorP-HighThis is particularly urgent, and deserves immediate attentionS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions