pub fn load(dev: &Dev, path: &str) -> Self {
        let mut png = Png::open(path);
        let staging = Buffer::load(&dev.allocator, &mut png);
        let mut image = Image::sampled(
            &dev.allocator,
            png.info.width,
            png.info.height,
            vk::Format::R8G8B8A8_SRGB,
        );
        image.copy_from(&staging, dev);
        image
    }
/// Loads a PNG image from file and uploads it into a sampled image
Loads a PNG image from file and uploads it into a sampled image
Loads a PNG image from file and uploads it into a sampled image
pub fn load(dev: &Dev, path: &str) -> Self {
        let mut png = Png::open(path);
        let staging = Buffer::load(&dev.allocator, &mut png);
        let mut image = Image::sampled(
            &dev.allocator,
            png.info.width,
            png.info.height,
            vk::Format::R8G8B8A8_SRGB,
        );
        image.copy_from(&staging, dev);
        image
    }
pub fn load ( dev : & Dev , path : & str ) -> Self { let mut png = Png :: open ( path ) ; let staging = Buffer :: load ( & dev . allocator , & mut png ) ; let mut image = Image :: sampled ( & dev . allocator , png . info . width , png . info . height , vk :: Format :: R8G8B8A8_SRGB , ) ; image . copy_from ( & staging , dev ) ; image }
Loads a PNG image from file and uploads it into a sampled image
Loads a PNG image from file and uploads it into a sampled image
dev
&Dev
path
&str
dev
&Dev
path
&str