Skip to content

Add DeviceDescriptor.default_queue #4014

@ErichDonGubler

Description

@ErichDonGubler

Description
A clear and concise description of what the bug is.

  • The WebGPU spec. specifies that GPUDeviceDescriptor (viz., our DeviceDescriptor type) should contain a field called defaultQueue of type GPUBufferDescriptor, with default value set to {}.
  • GPUBufferDescriptor inherits from GPUObjectDescriptorBase, which means that a label can be specified.

☝🏻 We don't implement this yet. It's a relatively recent addition to the spec., so that's not a surprise, but we need it to fully implement the WebGPU spec.

Repro steps
Ideally, a runnable example we can check out.

TODO

Expected vs observed behavior
Clearly describe what you get, and how it goes across your expectations.

TODO

Extra materials
Screenshots to help explain your problem.
Validation logs can be attached in case there are warnings and errors.
Zip-compressed API traces and GPU captures can also land here.

It looks like the easiest way to implement this is to add the new field as the spec. specifies to DeviceDescriptor, and then use the label here.

Platform
Information about your OS, version of wgpu, your tech stack, etc.

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: apiIssues related to API surfacearea: correctnessWe're behaving incorrectlyarea: validationIssues related to validation, diagnostics, and error handling

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions