bevyengine / bevyengine/bevy

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

Open
#15,081 2 comments 1 reaction 0 assignees View on GitHub
A-Rendering C-Bug P-High S-Needs-Investigation
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.