WebXR-WebGPU-Binding icon indicating copy to clipboard operation
WebXR-WebGPU-Binding copied to clipboard

Add isXrCompatible to GPUAdapter

Open beaufortfrancois opened this issue 1 year ago • 4 comments

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;
}

beaufortfrancois avatar Aug 19 '24 11:08 beaufortfrancois

/tpac to make sure this gets discussed at TPAC

AdaRoseCannon avatar Aug 20 '24 02:08 AdaRoseCannon

https://www.w3.org/2024/09/26-immersive-web-minutes.html#t01

Yonet avatar Sep 26 '24 23:09 Yonet

Removing the agenda label because I think we discussed this, let me know if that is an error.

AdaRoseCannon avatar Oct 28 '24 20:10 AdaRoseCannon

Reviewed the xrCompatible flag with the WebGPU WG during their October F2F and they were fine adding it to the spec. I'll put up a PR against the WebGPU spec in the coming days.

toji avatar Oct 30 '24 17:10 toji