Skip to main content

create_image

Function create_image 

Source
pub unsafe fn create_image(
    allocator: &mut Allocator<'_>,
    info: &ImageCreateInfo<'_>,
    required: MemoryPropertyFlags,
    preferred: MemoryPropertyFlags,
) -> Result<(Image, Allocation), AllocError>
Expand description

Create an ordinary image with separate storage and explicit memory properties.

ยงSafety

Caller establishes all native image, create-chain and synchronization valid usage.