Skip to content

Comments

wgpu UB fixes#9256

Closed
r-lyeh wants to merge 1 commit intoocornut:masterfrom
r-lyeh-archived:master
Closed

wgpu UB fixes#9256
r-lyeh wants to merge 1 commit intoocornut:masterfrom
r-lyeh-archived:master

Conversation

@r-lyeh
Copy link
Contributor

@r-lyeh r-lyeh commented Feb 20, 2026

As discussed in #9246, this PR addresses UB bugs in the WGPU examples (note that WGPUCallbackMode is never 0). Also fixes setup regarding future/asyncs.

typedef enum WGPUCallbackMode {
    WGPUCallbackMode_WaitAnyOnly = 0x00000001,
    WGPUCallbackMode_AllowProcessEvents = 0x00000002,
    WGPUCallbackMode_AllowSpontaneous = 0x00000003,
    WGPUCallbackMode_Force32 = 0x7FFFFFFF
} WGPUCallbackMode WGPU_ENUM_ATTRIBUTE;

@ocornut
Copy link
Owner

ocornut commented Feb 20, 2026

Merged as b5ccee7, thank you!

(For next time, note that it would also work if you were split this into an individual commit as part of the exist PR. I can check selectively cherry-pick a commit even if don't merge all the PR in one go.)

@ocornut ocornut closed this Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backends web emscripten, wgpu etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants