Cargo Features

phobos = { version = "0.10.0", default-features = false, features = ["log-objects", "debug-markers", "shader-reflection", "shaderc", "hlsl", "rayon", "fsr2", "winit"] }
default = debug-markers, shader-reflection, winit

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


Logs creation and destruction of all Vulkan objects. Useful for debugging.

debug-markers default

Automatically insert debug markers at pass begin and end.

shader-reflection default

Allow using shader reflecting using SPIRV-Cross to automatically fill out pipeline layout information.

Enables spv-cross

Affects shader_reflection::ReflectionInfo

shaderc build

Enables shaderc


Use hlsl instead of glsl for shader reflection


Enables rayon


Enable support for FSR2 integration

Enables fsr2-sys and widestring

Affects app_info::Fsr2Settings, app_info::AppSettings.fsr2_settings, pass::Fsr2DispatchVirtualResources, phobos::fsr2

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

winit default

Enables winit ^0.28.1