Cargo Features

[dependencies]
librashader = { version = "0.5.1", default-features = false, features = ["runtime", "reflect", "preprocess", "presets", "stable", "runtime-gl", "runtime-d3d11", "runtime-d3d12", "runtime-d3d9", "runtime-vk", "runtime-wgpu", "runtime-metal", "reflect-cross", "reflect-dxil", "reflect-naga", "runtime-all", "reflect-all", "full", "internal", "docsrs", "serde", "github-ci"] }
runtime runtime-d3d11? runtime-d3d12? runtime-d3d9? runtime-gl? runtime-metal? runtime-vk? runtime-wgpu?

core features and definitions

Affects librashader::runtime

reflect reflect-cross? reflect-dxil? reflect-naga?

Affects librashader::reflect

preprocess full

Affects librashader::preprocess

presets full

Affects librashader::presets

stable

Enables stable of librashader-reflect, optional librashader-runtime-d3d11, optional librashader-runtime-d3d12, optional librashader-runtime-d3d9, optional librashader-runtime-gl, optional librashader-runtime-mtl, optional librashader-runtime-vk, and optional librashader-runtime-wgpu

runtime-gl runtime-all? = librashader-runtime-gl, reflect-cross, runtime

runtimes

Enables opengl of librashader-common

Affects librashader::runtime.gl

runtime-d3d11 runtime-all? = librashader-runtime-d3d11, reflect-cross, runtime

Enables d3d11 of librashader-common, Win32_Graphics_Direct3D11 of windows

Affects librashader::runtime.d3d11

runtime-d3d12 runtime-all? = librashader-runtime-d3d12, reflect-cross, reflect-dxil, runtime

Enables d3d12 of librashader-common, Win32_Graphics_Direct3D12 of windows

Affects librashader::runtime.d3d12

runtime-d3d9 = librashader-runtime-d3d9, reflect-cross, runtime

Enables d3d9 of librashader-common, Win32_Graphics_Direct3D9 of windows

Affects librashader::runtime.d3d9

runtime-vk runtime-all? = ash, librashader-runtime-vk, reflect-cross, runtime

Enables vulkan of librashader-common

Affects librashader::runtime.vk

runtime-wgpu runtime-all? = librashader-runtime-wgpu, reflect-naga, runtime, wgpu, wgpu-types

Enables wgpu of librashader-common

Affects librashader::runtime.wgpu

runtime-metal runtime-all? = librashader-runtime-mtl, objc2, objc2-metal, reflect-cross, reflect-naga, runtime

Enables metal of librashader-common

Affects librashader::runtime.mtl

reflect-cross reflect-all? runtime-d3d11? runtime-d3d12? runtime-d3d9? runtime-gl? runtime-metal? runtime-vk? = reflect

reflection

Enables cross of librashader-reflect

Affects librashader::reflect.cross

reflect-dxil reflect-all? runtime-d3d12? = reflect

Enables dxil of librashader-reflect

Affects librashader::reflect.dxil

reflect-naga reflect-all? runtime-metal? runtime-wgpu? = reflect

Enables naga of librashader-reflect

Affects librashader::reflect.naga

runtime-all full = runtime-d3d11, runtime-d3d12, runtime-gl, runtime-metal, runtime-vk, runtime-wgpu
reflect-all full = reflect-cross, reflect-dxil, reflect-naga
default = full

enable all features by default

full default = preprocess, presets, reflect-all, runtime-all
internal

Affects librashader::reflect.helper

docsrs

cache hack

Enables docsrs of librashader-cache

serde

Enables serde of librashader-pack, librashader-preprocess, librashader-presets, and librashader-reflect

github-ci

emits warning messages in tests

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.

librashader-runtime-d3d11 runtime-d3d11?
librashader-runtime-d3d12 runtime-d3d12?
librashader-runtime-d3d9 runtime-d3d9?
librashader-runtime-gl runtime-gl?
librashader-runtime-vk runtime-vk?
librashader-runtime-mtl runtime-metal?
librashader-runtime-wgpu runtime-wgpu?
ash runtime-vk?
wgpu runtime-wgpu?

Enables wgpu ^22

wgpu-types runtime-wgpu?

Enables wgpu-types ^22

objc2 apple runtime-metal?
objc2-metal apple runtime-metal?
windows win runtime-d3d11? runtime-d3d12? runtime-d3d9?