Cargo Features

librashader-common has no features set by default.

librashader-common = { version = "0.2.7", features = ["opengl", "d3d9", "d3d11", "d3d12", "dxgi", "vulkan", "wgpu", "metal"] }
opengl = gl

Affects librashader-common::gl

d3d9 = windows

Affects librashader-common::d3d9

d3d11 = dxgi, windows

Affects librashader-common::d3d11

d3d12 = dxgi, windows

Affects librashader-common::d3d12

dxgi d3d11? d3d12? = windows

Affects librashader-common::dxgi

vulkan = ash

Affects librashader-common::vk

wgpu = wgpu-types

Affects librashader-common::wgpu

metal = icrate

Affects librashader-common::metal

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

gl opengl?
ash vulkan?

Enables ash ^0.37

wgpu-types wgpu?

Enables wgpu-types ^0.19.2

icrate apple metal?
windows win d3d11? d3d12? d3d9? dxgi?

Enables windows ^0.52.0