/// Adds a command that clears a color image with a specific value.
///
/// # Panic
///
/// Panics if color is not a color value.
Adds a command that clears a color image with a specific value.
Adds a command that clears a color image with a specific value .
pub fn clear_color_image_dimensions<I>(
        self,
        image: I,
        first_layer: u32,
        num_layers: u32,
        first_mipmap: u32,
        num_mipmaps: u32,
        color: vk::ClearValue,
    ) -> Result<Self, ClearColorImageError>
    where
        I: vk::ImageAccess + Send + Sync + 'static,
    {
        self.map_cb(move |cb| {
            cb.clear_color_image_dimensions(
                image,
                first_layer,
                num_layers,
                first_mipmap,
                num_mipmaps,
                color,
            )
        })
    }
pub fn clear_color_image_dimensions < I > ( self , image : I , first_layer : u32 , num_layers : u32 , first_mipmap : u32 , num_mipmaps : u32 , color : vk :: ClearValue , ) -> Result < Self , ClearColorImageError > where I : vk :: ImageAccess + Send + Sync + ' static , { self . map_cb ( move | cb | { cb . clear_color_image_dimensions ( image , first_layer , num_layers , first_mipmap , num_mipmaps , color , ) } ) }
Adds a command that clears a color image with a specific value.
Adds a command that clears a color image with a specific value .
self
image
I
first_layer
u32
num_layers
u32
first_mipmap
u32
num_mipmaps
u32
color
vk::ClearValue
panic
Panics if color is not a color value.
Panics if color is not a color value .