pub struct ImageLayout(/* private fields */);Expand description
Implementations§
Source§impl ImageLayout
impl ImageLayout
Sourcepub const UNDEFINED: Self
pub const UNDEFINED: Self
Implicit layout an image is when its contents are undefined due to various reasons (e.g. right after creation)
Sourcepub const COLOR_ATTACHMENT_OPTIMAL: Self
pub const COLOR_ATTACHMENT_OPTIMAL: Self
Optimal layout when image is only used for color attachment read/write
Sourcepub const DEPTH_STENCIL_ATTACHMENT_OPTIMAL: Self
pub const DEPTH_STENCIL_ATTACHMENT_OPTIMAL: Self
Optimal layout when image is only used for depth/stencil attachment read/write
Sourcepub const DEPTH_STENCIL_READ_ONLY_OPTIMAL: Self
pub const DEPTH_STENCIL_READ_ONLY_OPTIMAL: Self
Optimal layout when image is used for read only depth/stencil attachment and shader access
Sourcepub const SHADER_READ_ONLY_OPTIMAL: Self
pub const SHADER_READ_ONLY_OPTIMAL: Self
Optimal layout when image is used for read only shader access
Sourcepub const TRANSFER_SRC_OPTIMAL: Self
pub const TRANSFER_SRC_OPTIMAL: Self
Optimal layout when image is used only as source of transfer operations
Sourcepub const TRANSFER_DST_OPTIMAL: Self
pub const TRANSFER_DST_OPTIMAL: Self
Optimal layout when image is used only as destination of transfer operations
Sourcepub const PREINITIALIZED: Self
pub const PREINITIALIZED: Self
Initial layout used when the data is populated by the CPU
pub const DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL: Self
pub const DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL: Self
pub const DEPTH_ATTACHMENT_OPTIMAL: Self
pub const DEPTH_READ_ONLY_OPTIMAL: Self
pub const STENCIL_ATTACHMENT_OPTIMAL: Self
pub const STENCIL_READ_ONLY_OPTIMAL: Self
pub const READ_ONLY_OPTIMAL: Self
pub const ATTACHMENT_OPTIMAL: Self
pub const RENDERING_LOCAL_READ: Self
pub const PRESENT_SRC: Self
pub const VIDEO_DECODE_DST: Self
pub const VIDEO_DECODE_SRC: Self
pub const VIDEO_DECODE_DPB: Self
pub const SHARED_PRESENT: Self
pub const SHADING_RATE_OPTIMAL: Self = Self::FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL
pub const FRAGMENT_DENSITY_MAP_OPTIMAL: Self
pub const FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL: Self
pub const VIDEO_ENCODE_DST: Self
pub const VIDEO_ENCODE_SRC: Self
pub const VIDEO_ENCODE_DPB: Self
pub const ATTACHMENT_FEEDBACK_LOOP_OPTIMAL: Self
pub const TENSOR_ALIASING: Self
pub const VIDEO_ENCODE_QUANTIZATION_MAP: Self
pub const ZERO_INITIALIZED: Self
pub const fn from_raw(value: i32) -> Self
pub const fn as_raw(self) -> i32
Trait Implementations§
Source§impl Clone for ImageLayout
impl Clone for ImageLayout
Source§fn clone(&self) -> ImageLayout
fn clone(&self) -> ImageLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageLayout
impl Debug for ImageLayout
Source§impl Default for ImageLayout
impl Default for ImageLayout
Source§fn default() -> ImageLayout
fn default() -> ImageLayout
Returns the “default value” for a type. Read more
Source§impl Display for ImageLayout
impl Display for ImageLayout
Source§impl Error for ImageLayout
impl Error for ImageLayout
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl Hash for ImageLayout
impl Hash for ImageLayout
Source§impl Ord for ImageLayout
impl Ord for ImageLayout
Source§fn cmp(&self, other: &ImageLayout) -> Ordering
fn cmp(&self, other: &ImageLayout) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ImageLayout
impl PartialEq for ImageLayout
Source§impl PartialOrd for ImageLayout
impl PartialOrd for ImageLayout
impl Copy for ImageLayout
impl Eq for ImageLayout
impl StructuralPartialEq for ImageLayout
Auto Trait Implementations§
impl Freeze for ImageLayout
impl RefUnwindSafe for ImageLayout
impl Send for ImageLayout
impl Sync for ImageLayout
impl Unpin for ImageLayout
impl UnsafeUnpin for ImageLayout
impl UnwindSafe for ImageLayout
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