pub struct ImageLayout(/* private fields */);Expand description
Implementations§
Source§impl ImageLayout
impl ImageLayout
Sourcepub const UNDEFINED: ImageLayout
pub const UNDEFINED: ImageLayout
Implicit layout an image is when its contents are undefined due to various reasons (e.g. right after creation)
Sourcepub const GENERAL: ImageLayout
pub const GENERAL: ImageLayout
General layout when image can be used for any kind of access
Sourcepub const COLOR_ATTACHMENT_OPTIMAL: ImageLayout
pub const COLOR_ATTACHMENT_OPTIMAL: ImageLayout
Optimal layout when image is only used for color attachment read/write
Sourcepub const DEPTH_STENCIL_ATTACHMENT_OPTIMAL: ImageLayout
pub const DEPTH_STENCIL_ATTACHMENT_OPTIMAL: ImageLayout
Optimal layout when image is only used for depth/stencil attachment read/write
Sourcepub const DEPTH_STENCIL_READ_ONLY_OPTIMAL: ImageLayout
pub const DEPTH_STENCIL_READ_ONLY_OPTIMAL: ImageLayout
Optimal layout when image is used for read only depth/stencil attachment and shader access
Sourcepub const SHADER_READ_ONLY_OPTIMAL: ImageLayout
pub const SHADER_READ_ONLY_OPTIMAL: ImageLayout
Optimal layout when image is used for read only shader access
Sourcepub const TRANSFER_SRC_OPTIMAL: ImageLayout
pub const TRANSFER_SRC_OPTIMAL: ImageLayout
Optimal layout when image is used only as source of transfer operations
Sourcepub const TRANSFER_DST_OPTIMAL: ImageLayout
pub const TRANSFER_DST_OPTIMAL: ImageLayout
Optimal layout when image is used only as destination of transfer operations
Sourcepub const PREINITIALIZED: ImageLayout
pub const PREINITIALIZED: ImageLayout
Initial layout used when the data is populated by the CPU
pub const DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL: ImageLayout
pub const DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL: ImageLayout
pub const DEPTH_ATTACHMENT_OPTIMAL: ImageLayout
pub const DEPTH_READ_ONLY_OPTIMAL: ImageLayout
pub const STENCIL_ATTACHMENT_OPTIMAL: ImageLayout
pub const STENCIL_READ_ONLY_OPTIMAL: ImageLayout
pub const READ_ONLY_OPTIMAL: ImageLayout
pub const ATTACHMENT_OPTIMAL: ImageLayout
pub const RENDERING_LOCAL_READ: ImageLayout
pub const PRESENT_SRC: ImageLayout
pub const VIDEO_DECODE_DST: ImageLayout
pub const VIDEO_DECODE_SRC: ImageLayout
pub const VIDEO_DECODE_DPB: ImageLayout
pub const SHARED_PRESENT: ImageLayout
pub const SHADING_RATE_OPTIMAL: ImageLayout = Self::FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL
pub const FRAGMENT_DENSITY_MAP_OPTIMAL: ImageLayout
pub const FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL: ImageLayout
pub const VIDEO_ENCODE_DST: ImageLayout
pub const VIDEO_ENCODE_SRC: ImageLayout
pub const VIDEO_ENCODE_DPB: ImageLayout
pub const ATTACHMENT_FEEDBACK_LOOP_OPTIMAL: ImageLayout
pub const TENSOR_ALIASING: ImageLayout
pub const VIDEO_ENCODE_QUANTIZATION_MAP: ImageLayout
pub const ZERO_INITIALIZED: ImageLayout
pub const fn from_raw(value: i32) -> ImageLayout
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