webgpu-headers: Handling invalid/not-enabled chained structs on extensible Out-structs

WebGPU’s limits don’t seem to be optional, so it doesn’t make much sense why wgpuAdapterGetLimits() returns a bool.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19

Commits related to this issue

Most upvoted comments

We never bikeshed the name of the status enum. Here’s a suggestion.


typedef enum WGPUStatus {
    WGPUStatus_Success = 0x00000000,
    WGPUStatus_Error = 0x00000001,
    WGPUStatus_Force32 = 0x7FFFFFFF
} WGPUStatus WGPU_ENUM_ATTRIBUTE;