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
sourceimpl Clone for ClearValue
impl Clone for ClearValue
sourcefn clone(&self) -> ClearValue
fn clone(&self) -> ClearValue
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 moresourceimpl Debug for ClearValue
impl Debug for ClearValue
sourceimpl From<[f32; 1]> for ClearValue
impl From<[f32; 1]> for ClearValue
sourceimpl From<[f32; 2]> for ClearValue
impl From<[f32; 2]> for ClearValue
sourceimpl From<[f32; 3]> for ClearValue
impl From<[f32; 3]> for ClearValue
sourceimpl From<[f32; 4]> for ClearValue
impl From<[f32; 4]> for ClearValue
sourceimpl From<[i32; 1]> for ClearValue
impl From<[i32; 1]> for ClearValue
sourceimpl From<[i32; 2]> for ClearValue
impl From<[i32; 2]> for ClearValue
sourceimpl From<[i32; 3]> for ClearValue
impl From<[i32; 3]> for ClearValue
sourceimpl From<[i32; 4]> for ClearValue
impl From<[i32; 4]> for ClearValue
sourceimpl From<[u32; 1]> for ClearValue
impl From<[u32; 1]> for ClearValue
sourceimpl From<[u32; 2]> for ClearValue
impl From<[u32; 2]> for ClearValue
sourceimpl From<[u32; 3]> for ClearValue
impl From<[u32; 3]> for ClearValue
sourceimpl From<[u32; 4]> for ClearValue
impl From<[u32; 4]> for ClearValue
sourceimpl From<(f32, u32)> for ClearValue
impl From<(f32, u32)> for ClearValue
sourceimpl From<ClearColorValue> for ClearValue
impl From<ClearColorValue> for ClearValue
sourcefn from(val: ClearColorValue) -> Self
fn from(val: ClearColorValue) -> Self
Converts to this type from the input type.
sourceimpl From<ClearValue> for ClearValue
impl From<ClearValue> for ClearValue
sourcefn from(val: ClearValue) -> Self
fn from(val: ClearValue) -> Self
Converts to this type from the input type.
sourceimpl From<f32> for ClearValue
impl From<f32> for ClearValue
sourceimpl From<u32> for ClearValue
impl From<u32> for ClearValue
sourceimpl PartialEq<ClearValue> for ClearValue
impl PartialEq<ClearValue> for ClearValue
sourcefn eq(&self, other: &ClearValue) -> bool
fn eq(&self, other: &ClearValue) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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