Cargo Features

[dependencies]
bevy_oxr = { version = "0.3.0", default-features = false, features = ["force-link", "vulkan", "d3d12"] }
default = d3d12, vulkan

These default features are set whenever bevy_oxr is added without default-features = false somewhere in the dependency tree.

Enables linked of openxr ^0.18

vulkan default

Enables vulkan of wgpu-core ^0.21

wgpu-core:

Vulkan backend, only available on Windows, Linux, Android

Affects resources::VulkanOXrSessionSetupInfo

d3d12 default

Enables d3d12 ^0.20, winapi and dx12 of wgpu-core ^0.21

wgpu-core:

Target Conditional Features


Look to wgpu-hal's Cargo.toml for explaination how these features and the wgpu-core platform crates collude to provide platform-specific behavior.

DX12 backend

Affects resources::D3D12OXrSessionSetupInfo