Skip to content

Add isXrCompatible to GPUAdapter #6

@beaufortfrancois

Description

@beaufortfrancois

Following pattern in https://github.com/gpuweb/gpuweb/blob/main/proposals/compatibility-mode.md#webgpu-spec-changes, I would suggest adding isXrCompatible to GPUAdapter as a convenience to the developer.

This way, the GPU adapter returned withawait navigator.gpu.getAdapter({xrCompatible: true}) will have the isXrCompatible property set to true.

partial interface GPUAdapter {
    readonly attribute boolean isXrCompatible;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions