pub fn new_2d(format: vk::Format, dimension: vk::Extent2D) -> ImageCI {

        let extent = vk::Extent3D {
            width : dimension.width,
            height: dimension.height,
            depth : 1, // depth is always 1 for vk::ImageType::TYPE_2D.
        };

        ImageCI::new(vk::ImageType::TYPE_2D, format, extent)
    }
/// Convenient method to create a 2D `ImageCI`.
///
/// `format` specifies the texel format of this image.
///
/// `dimension` specifies dimension of the base level.
Convenient method to create a 2D `ImageCI`.
`format` specifies the texel format of this image.

`dimension` specifies dimension of the base level.
Convenient method to create a 2D ` ImageCI ` . ` format ` specifies the texel format of this image . ` dimension ` specifies dimension of the base level .
pub fn new_2d(format: vk::Format, dimension: vk::Extent2D) -> ImageCI {
        let extent = vk::Extent3D {
            width : dimension.width,
            height: dimension.height,
            depth : 1, // depth is always 1 for vk::ImageType::TYPE_2D.
        };
        ImageCI::new(vk::ImageType::TYPE_2D, format, extent)
    }
pub fn new_2d ( format : vk :: Format , dimension : vk :: Extent2D ) -> ImageCI { let extent = vk :: Extent3D { width : dimension . width , height : dimension . height , depth : 1 , // depth is always 1 for vk::ImageType::TYPE_2D. } ; ImageCI :: new ( vk :: ImageType :: TYPE_2D , format , extent ) }
Convenient method to create a 2D `ImageCI`.
Convenient method to create a 2D ` ImageCI ` .
format
vk::Format
dimension
vk::Extent2D
format
vk::Format
dimension
vk::Extent2D