fix(iced): wait for the real surface format before building pipelines #1062

Merged
SakulFlee merged 1 commit from fix/android-iced-format into main 2026-11-06 20:20:11 +00:00
Owner

The Android log shows iced_wgpu.quad.solid.pipeline being rejected as an invalid resource. The new mobile debug toggle is visible on the very first update, so iced can initialize before SurfaceFormatResource exists and previously fell back to Bgra8UnormSrgb. On Android that can produce pipelines for a format the surface cannot use.

This makes IcedLayerRenderer require the configured surface format before creating any iced renderer or building a UI. It also tracks format changes across surface recreation and drops/recreates the iced renderer when the format changes, instead of reusing pipelines built for the old target.

Adds a unit test for the missing-format and format-change cases.

Refs #1061. Needs Android confirmation; if it still fails, please attach the full adb logcat around Selected format / pipeline creation.

The Android log shows `iced_wgpu.quad.solid.pipeline` being rejected as an invalid resource. The new mobile debug toggle is visible on the very first update, so iced can initialize before `SurfaceFormatResource` exists and previously fell back to `Bgra8UnormSrgb`. On Android that can produce pipelines for a format the surface cannot use. This makes `IcedLayerRenderer` require the configured surface format before creating any iced renderer or building a UI. It also tracks format changes across surface recreation and drops/recreates the iced renderer when the format changes, instead of reusing pipelines built for the old target. Adds a unit test for the missing-format and format-change cases. Refs #1061. Needs Android confirmation; if it still fails, please attach the full `adb logcat` around `Selected format` / pipeline creation.
fix(iced): wait for the real surface format before building pipelines
All checks were successful
Lint / lint (pull_request) Successful in 5m8s
PR / test (pull_request) Successful in 7m21s
1b4d9369b0

Smart test results

Result: PASS

Scope: orbital_iced

Reason: directly changed crates

Elapsed: 6m 27s

Workflow run

Overall: 26 tests, 26 passed, 0 failed, 0 skipped

Nextest: 26 tests, 26 passed, 0 failed, 0 skipped
Doctests: no tests reported

Crate Nextest Passed Failed Skipped Doctests Time
orbital_iced 26 26 0 0 - 0.34s
pie showData
    title Nextest outcomes
    "Passed" : 26
<!-- orbital-ci-test-results --> ## Smart test results **Result:** PASS **Scope:** orbital_iced **Reason:** directly changed crates **Elapsed:** 6m 27s [Workflow run](https://forgejo.sakul-flee.de/SakulFlee/Orbital/actions/runs/1170) **Overall:** 26 tests, 26 passed, 0 failed, 0 skipped **Nextest:** 26 tests, 26 passed, 0 failed, 0 skipped **Doctests:** no tests reported | Crate | Nextest | Passed | Failed | Skipped | Doctests | Time | | --- | ---: | ---: | ---: | ---: | ---: | ---: | | orbital_iced | 26 | 26 | 0 | 0 | - | 0.34s | ```mermaid pie showData title Nextest outcomes "Passed" : 26 ```
SakulFlee deleted branch fix/android-iced-format 2026-11-06 20:20:11 +00:00
Sign in to join this conversation.
No description provided.