Skip to content

Some enums' sentinel 0 values are indistinguishable from "undefined" defaulting #242

Closed
@kainino0x

Description

@kainino0x

Right now in webgpu.h, WGPUVertexStepMode_VertexBufferNotUsed has value 0, which we use as a sentinel value (#234) to indicate a hole in the array, where in JS the hole would be represented by a null in sequence<GPUVertexBufferLayout?>.

This means we don't have a proper WGPUVertexStepMode_Undefined, which according to the translation rules we use elsewhere would mean "use the default" (which for GPUVertexBufferLayout is "vertex").

Metadata

Metadata

Assignees

Labels

has resolutionIssue is resolved, just needs to be done

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions