Skip to main content

optional_device_features

Function optional_device_features 

Source
pub fn optional_device_features(adapter: &Adapter) -> Features
Expand description

The optional device features the renderer exploits when the adapter offers them: pipeline caching (see pipeline_disk_cache) and the timestamp queries behind CRANPOSE_GPU_PASS_TIMING. Every platform’s request_device passes this so a profiling toggle never needs a rebuilt binary; intersecting with the adapter’s own features keeps the request valid on adapters without them.