Closed
Description
WGPUBindGroupLayoutEntry
which in JS is not actually a union, but a struct where we validate that exactly one member is!== undefined
. In C instead of a pointer we use a sentinel value inside the struct to determine which one is set.
Previously discussed here Some enums' sentinel 0 values are indistinguishable from "undefined" defaulting #242 (comment)WGPUBindGroupEntry
, which in JS is an actual union
Previously sorta discussed here Representation of GPUBindGroupEntry #403
Metadata
Metadata
Assignees
Labels
No labels