mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-15 19:51:48 +00:00
3591e02758
- Allocation checks never take an unanswered error scope as success: native backends block on the verdict; the browser's WebGPU answers later, so the full-size texture waits beside the bound placeholder (tiles go into it under discarded scopes) and Renderer::prepare installs it on success, or keeps the placeholder and reports the set on failure. The UI keeps drawing frames while a verdict is pending. - The GPU side wakes the UI when it records an uncaptured error or an allocation failure, so the notice shows even when the app is idle; failures are collected after prepare, where late verdicts land. - Sets the GPU could not hold share one sticky notice (dismissible, listing them) instead of a six-second toast each, since they are not retried. - The out-of-memory error is reported as the cause rather than the follow-on invalid-texture error. - The notice no longer uses "▸", which the UI fonts lack (egui panics on a missing glyph). Tests: a late texture stays unbound until accepted; a late rejection keeps the placeholder and is reported once; a verdict that never comes counts as a failure. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
907 B
TOML
32 lines
907 B
TOML
[package]
|
|
name = "texturecraft-render"
|
|
description = "TextureCraft wgpu viewport renderer: PBR, image-based lighting, debug views, UV view"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
texturecraft-core = { workspace = true }
|
|
texturecraft-texel = { workspace = true }
|
|
texturecraft-geom = { workspace = true }
|
|
texturecraft-compose = { workspace = true }
|
|
texturecraft-bake = { workspace = true }
|
|
wgpu = { workspace = true }
|
|
bytemuck = { workspace = true }
|
|
half = { workspace = true }
|
|
log = { workspace = true }
|
|
rayon = { workspace = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
pollster = "0.4"
|
|
|
|
# The browser's WebGPU resolves error scopes later: their results are awaited on the page.
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
wasm-bindgen-futures = "0.4"
|
|
|
|
[dev-dependencies]
|
|
image = { workspace = true }
|