WebGPU Headers: WGPURequestAdapterWebXROptions Struct Reference

Data Fields

WGPUChainedStruct chain
 
WGPUBool xrCompatible
 

Detailed Description

Extension providing requestAdapter options for implementations with WebXR interop (i.e. Wasm).

Default values can be set using WGPU_REQUEST_ADAPTER_WEBXR_OPTIONS_INIT as initializer.

Definition at line 2658 of file webgpu.h.

Field Documentation

◆ chain

WGPUChainedStruct WGPURequestAdapterWebXROptions::chain

Definition at line 2659 of file webgpu.h.

◆ xrCompatible

WGPUBool WGPURequestAdapterWebXROptions::xrCompatible

Sets the xrCompatible option in the JS API.

The INIT macro sets this to WGPU_FALSE.

Definition at line 2665 of file webgpu.h.