pub struct Image {
pub device: Device,
pub memory: Memory,
pub size: Size,
pub allocation_size: u64,
pub format: Format,
}Expand description
An external dedicated Vulkan image, in GENERAL layout while being read.
The producer creates a 2D image with one mip, one array layer, one sample,
no create flags, exclusive sharing, and usage TRANSFER_DST | SAMPLED | STORAGE. It binds dedicated memory at offset zero. OpaqueFd images use
optimal tiling; DmaBuf images use DRM modifier tiling with explicit memory
planes. Format names the exact UNORM format. Importers recreate
this contract, including usage, rather than infer image creation parameters.
Fields§
§device: DeviceDevice and driver that allocated the image.
memory: MemoryMemory handle type and its import parameters.
size: SizeVisible image size.
allocation_size: u64Complete allocation size, rather than the number of visible pixel bytes.
format: FormatPacked pixel format.
Trait Implementations§
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.