Enum vulkano::format::ClearValue
source · pub enum ClearValue {
Float([f32; 4]),
Int([i32; 4]),
Uint([u32; 4]),
Depth(f32),
Stencil(u32),
DepthStencil((f32, u32)),
}
Expand description
Describes a uniform value that will be used to fill an image.
Variants§
Float([f32; 4])
Value for floating-point attachments, including UNORM
, SNORM
, SFLOAT
.
Int([i32; 4])
Value for integer attachments, including SINT
.
Uint([u32; 4])
Value for unsigned integer attachments, including UINT
.
Depth(f32)
Value for depth attachments.
Stencil(u32)
Value for stencil attachments.
DepthStencil((f32, u32))
Value for depth and stencil attachments.
Trait Implementations§
source§impl Clone for ClearValue
impl Clone for ClearValue
source§fn clone(&self) -> ClearValue
fn clone(&self) -> ClearValue
Returns a copy 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 ClearValue
impl Debug for ClearValue
source§impl From<ClearColorValue> for ClearValue
impl From<ClearColorValue> for ClearValue
source§fn from(val: ClearColorValue) -> Self
fn from(val: ClearColorValue) -> Self
Converts to this type from the input type.
source§impl From<ClearValue> for ClearValue
impl From<ClearValue> for ClearValue
source§fn from(val: ClearValue) -> Self
fn from(val: ClearValue) -> Self
Converts to this type from the input type.
source§impl From<f32> for ClearValue
impl From<f32> for ClearValue
source§impl From<u32> for ClearValue
impl From<u32> for ClearValue
source§impl PartialEq for ClearValue
impl PartialEq for ClearValue
source§fn eq(&self, other: &ClearValue) -> bool
fn eq(&self, other: &ClearValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ClearValue
impl StructuralPartialEq for ClearValue
Auto Trait Implementations§
impl RefUnwindSafe for ClearValue
impl Send for ClearValue
impl Sync for ClearValue
impl Unpin for ClearValue
impl UnwindSafe for ClearValue
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