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
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for ImageLayout
impl Debug for ImageLayout
sourceimpl Default for ImageLayout
impl Default for ImageLayout
sourcefn default() -> ImageLayout
fn default() -> ImageLayout
sourceimpl Hash for ImageLayout
impl Hash for ImageLayout
sourceimpl Ord for ImageLayout
impl Ord for ImageLayout
sourcefn cmp(&self, other: &ImageLayout) -> Ordering
fn cmp(&self, other: &ImageLayout) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
sourceimpl PartialEq<ImageLayout> for ImageLayout
impl PartialEq<ImageLayout> for ImageLayout
sourcefn eq(&self, other: &ImageLayout) -> bool
fn eq(&self, other: &ImageLayout) -> bool
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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more