#[repr(transparent)]pub struct ImageLayout(_);Expand description
Implementations
sourceimpl ImageLayout
impl ImageLayout
sourceimpl ImageLayout
impl ImageLayout
sourcepub const UNDEFINED: ImageLayout = Self(0)
pub const UNDEFINED: ImageLayout = Self(0)
Implicit layout an image is when its contents are undefined due to various reasons (e.g. right after creation)
sourcepub const GENERAL: ImageLayout = Self(1)
pub const GENERAL: ImageLayout = Self(1)
General layout when image can be used for any kind of access
sourcepub const COLOR_ATTACHMENT_OPTIMAL: ImageLayout = Self(2)
pub const COLOR_ATTACHMENT_OPTIMAL: ImageLayout = Self(2)
Optimal layout when image is only used for color attachment read/write
sourcepub const DEPTH_STENCIL_ATTACHMENT_OPTIMAL: ImageLayout = Self(3)
pub const DEPTH_STENCIL_ATTACHMENT_OPTIMAL: ImageLayout = Self(3)
Optimal layout when image is only used for depth/stencil attachment read/write
sourcepub const DEPTH_STENCIL_READ_ONLY_OPTIMAL: ImageLayout = Self(4)
pub const DEPTH_STENCIL_READ_ONLY_OPTIMAL: ImageLayout = Self(4)
Optimal layout when image is used for read only depth/stencil attachment and shader access
sourcepub const SHADER_READ_ONLY_OPTIMAL: ImageLayout = Self(5)
pub const SHADER_READ_ONLY_OPTIMAL: ImageLayout = Self(5)
Optimal layout when image is used for read only shader access
sourcepub const TRANSFER_SRC_OPTIMAL: ImageLayout = Self(6)
pub const TRANSFER_SRC_OPTIMAL: ImageLayout = Self(6)
Optimal layout when image is used only as source of transfer operations
sourcepub const TRANSFER_DST_OPTIMAL: ImageLayout = Self(7)
pub const TRANSFER_DST_OPTIMAL: ImageLayout = Self(7)
Optimal layout when image is used only as destination of transfer operations
sourcepub const PREINITIALIZED: ImageLayout = Self(8)
pub const PREINITIALIZED: ImageLayout = Self(8)
Initial layout used when the data is populated by the CPU
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_KHR_swapchain’
pub const PRESENT_SRC_KHR: ImageLayout = Self(1000001002)
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_KHR_video_decode_queue’
pub const VIDEO_DECODE_DST_KHR: ImageLayout = Self(1000024000)
pub const VIDEO_DECODE_SRC_KHR: ImageLayout = Self(1000024001)
pub const VIDEO_DECODE_DPB_KHR: ImageLayout = Self(1000024002)
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_KHR_shared_presentable_image’
pub const SHARED_PRESENT_KHR: ImageLayout = Self(1000111000)
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_KHR_maintenance2’
pub const DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL_KHR: ImageLayout = Self::DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL
pub const DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL_KHR: ImageLayout = Self::DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_NV_shading_rate_image’
pub const SHADING_RATE_OPTIMAL_NV: ImageLayout = Self::FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_EXT_fragment_density_map’
pub const FRAGMENT_DENSITY_MAP_OPTIMAL_EXT: ImageLayout = Self(1000218000)
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_KHR_fragment_shading_rate’
pub const FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHR: ImageLayout = Self(1000164003)
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_KHR_separate_depth_stencil_layouts’
pub const DEPTH_ATTACHMENT_OPTIMAL_KHR: ImageLayout = Self::DEPTH_ATTACHMENT_OPTIMAL
pub const DEPTH_READ_ONLY_OPTIMAL_KHR: ImageLayout = Self::DEPTH_READ_ONLY_OPTIMAL
pub const STENCIL_ATTACHMENT_OPTIMAL_KHR: ImageLayout = Self::STENCIL_ATTACHMENT_OPTIMAL
pub const STENCIL_READ_ONLY_OPTIMAL_KHR: ImageLayout = Self::STENCIL_READ_ONLY_OPTIMAL
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_KHR_video_encode_queue’
pub const VIDEO_ENCODE_DST_KHR: ImageLayout = Self(1000299000)
pub const VIDEO_ENCODE_SRC_KHR: ImageLayout = Self(1000299001)
pub const VIDEO_ENCODE_DPB_KHR: ImageLayout = Self(1000299002)
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_KHR_synchronization2’
pub const READ_ONLY_OPTIMAL_KHR: ImageLayout = Self::READ_ONLY_OPTIMAL
pub const ATTACHMENT_OPTIMAL_KHR: ImageLayout = Self::ATTACHMENT_OPTIMAL
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_VERSION_1_1’
pub const DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL: ImageLayout = Self(1000117000)
pub const DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL: ImageLayout = Self(1000117001)
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_VERSION_1_2’
pub const DEPTH_ATTACHMENT_OPTIMAL: ImageLayout = Self(1000241000)
pub const DEPTH_READ_ONLY_OPTIMAL: ImageLayout = Self(1000241001)
pub const STENCIL_ATTACHMENT_OPTIMAL: ImageLayout = Self(1000241002)
pub const STENCIL_READ_ONLY_OPTIMAL: ImageLayout = Self(1000241003)
sourceimpl ImageLayout
impl ImageLayout
Generated from ‘VK_VERSION_1_3’
pub const READ_ONLY_OPTIMAL: ImageLayout = Self(1000314000)
pub const ATTACHMENT_OPTIMAL: ImageLayout = Self(1000314001)
Trait Implementations
sourceimpl Clone for ImageLayout
impl Clone for ImageLayout
sourcefn clone(&self) -> ImageLayout
fn clone(&self) -> ImageLayout
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ImageLayout
impl Debug for ImageLayout
sourceimpl Default for ImageLayout
impl Default for ImageLayout
sourcefn default() -> ImageLayout
fn default() -> ImageLayout
Returns the “default value” for a type. Read more
sourceimpl Hash for ImageLayout
impl Hash for ImageLayout
sourceimpl Ord for ImageLayout
impl Ord for ImageLayout
sourceimpl PartialEq<ImageLayout> for ImageLayout
impl PartialEq<ImageLayout> for ImageLayout
sourcefn eq(&self, other: &ImageLayout) -> bool
fn eq(&self, other: &ImageLayout) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &ImageLayout) -> bool
fn ne(&self, other: &ImageLayout) -> bool
This method tests for !=.
sourceimpl PartialOrd<ImageLayout> for ImageLayout
impl PartialOrd<ImageLayout> for ImageLayout
sourcefn partial_cmp(&self, other: &ImageLayout) -> Option<Ordering>
fn partial_cmp(&self, other: &ImageLayout) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for ImageLayout
impl Eq for ImageLayout
impl StructuralEq for ImageLayout
impl StructuralPartialEq for ImageLayout
Auto Trait Implementations
impl RefUnwindSafe for ImageLayout
impl Send for ImageLayout
impl Sync for ImageLayout
impl Unpin for ImageLayout
impl UnwindSafe for ImageLayout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more