examples/CustomShader does not build for wasm: DOM branch still sets UICustomBinding::_pad #158
Labels
No labels
claude:blocked
claude:done
claude:failed
claude:in-progress
claude:ready
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Catcrafts/Crafter.Graphics#158
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
examples/CustomShaderdoes not build for wasm at6aa0338:The native build of the same example is fine, and
examples/HelloUIbuilds for wasm.Root cause
097cc37(#27) replacedUICustomBinding::_padwithformat(interfaces/Crafter.Graphics-WebGPUComputeShader.cppm:66-72). The example's DOM branch (examples/CustomShader/main.cpp:59-66) still initialises._pad = 0and was not updated.The
Loaderror is most likely a follow-on from the invalid initialiser: theLoad(const std::filesystem::path&, std::span<const UICustomBinding>, bool)overload the example calls still exists (WebGPUComputeShader.cppm:105).Fix
Replace
._pad = 0with.format = 0, or drop the designator. I have not build-verified this.It would also help to build the wasm examples in CI, so an API change in the WebGPU backend cannot leave one behind again.