pub fn sampled(
        allocator: &Rc<RefCell<vk_mem::Allocator>>,
        width: u32,
        height: u32,
        format: vk::Format,
    ) -> Self {
        Self::new(
            allocator,
            width,
            height,
            format,
            vk::ImageUsageFlags::TRANSFER_DST | vk::ImageUsageFlags::SAMPLED,
        )
    }
/// Create an image that can be used to upload data from disk and sampled from a fragment shader
Create an image that can be used to upload data from disk and sampled from a fragment shader
Create an image that can be used to upload data from disk and sampled from a fragment shader
pub fn sampled(
        allocator: &Rc<RefCell<vk_mem::Allocator>>,
        width: u32,
        height: u32,
        format: vk::Format,
    ) -> Self {
        Self::new(
            allocator,
            width,
            height,
            format,
            vk::ImageUsageFlags::TRANSFER_DST | vk::ImageUsageFlags::SAMPLED,
        )
    }
pub fn sampled ( allocator : & Rc < RefCell < vk_mem :: Allocator > > , width : u32 , height : u32 , format : vk :: Format , ) -> Self { Self :: new ( allocator , width , height , format , vk :: ImageUsageFlags :: TRANSFER_DST | vk :: ImageUsageFlags :: SAMPLED , ) }
Create an image that can be used to upload data from disk and sampled from a fragment shader
Create an image that can be used to upload data from disk and sampled from a fragment shader
allocator
&Rc<RefCell<vk_mem::Allocator>>
width
u32
height
u32
format
vk::Format
allocator
&Rc<RefCell<vk_mem::Allocator>>
width
u32
height
u32
format
vk::Format