Skip to main content

presentable_root_usages

Function presentable_root_usages 

Source
pub fn presentable_root_usages(supported: TextureUsages) -> TextureUsages
Expand description

The usages a presentable image needs to serve as the frame’s root target: rendering plus the capture usages the composition target has. Callers configuring a surface ask for them when the surface offers them all; a partial set falls back to the composition copy, so nothing is requested in that case beyond rendering.