Skip to main content

query_format_modifiers

Function query_format_modifiers 

Source
pub fn query_format_modifiers(
    instance: &Instance,
    physical_device: PhysicalDevice,
    format: PixelFormat,
) -> Option<FormatModifierSet>
Expand description

Ask the device which layouts it can use for a format.

This is the render side’s half of format negotiation. Without it the only safe assumption is linear, which works everywhere and wastes bandwidth everywhere.