Enum vulkano::format::ClearValue
source · pub enum ClearValue {
None,
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
None
Entry for attachments that aren’t cleared.
Float([f32; 4])
Value for floating-point attachments, including Unorm
, Snorm
, Sfloat
.
Int([i32; 4])
Value for integer attachments, including Int
.
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
sourcefn from(val: [f32; 1]) -> ClearValue
fn from(val: [f32; 1]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[f32; 2]> for ClearValue
impl From<[f32; 2]> for ClearValue
sourcefn from(val: [f32; 2]) -> ClearValue
fn from(val: [f32; 2]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[f32; 3]> for ClearValue
impl From<[f32; 3]> for ClearValue
sourcefn from(val: [f32; 3]) -> ClearValue
fn from(val: [f32; 3]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[f32; 4]> for ClearValue
impl From<[f32; 4]> for ClearValue
sourcefn from(val: [f32; 4]) -> ClearValue
fn from(val: [f32; 4]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[i32; 1]> for ClearValue
impl From<[i32; 1]> for ClearValue
sourcefn from(val: [i32; 1]) -> ClearValue
fn from(val: [i32; 1]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[i32; 2]> for ClearValue
impl From<[i32; 2]> for ClearValue
sourcefn from(val: [i32; 2]) -> ClearValue
fn from(val: [i32; 2]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[i32; 3]> for ClearValue
impl From<[i32; 3]> for ClearValue
sourcefn from(val: [i32; 3]) -> ClearValue
fn from(val: [i32; 3]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[i32; 4]> for ClearValue
impl From<[i32; 4]> for ClearValue
sourcefn from(val: [i32; 4]) -> ClearValue
fn from(val: [i32; 4]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[u32; 1]> for ClearValue
impl From<[u32; 1]> for ClearValue
sourcefn from(val: [u32; 1]) -> ClearValue
fn from(val: [u32; 1]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[u32; 2]> for ClearValue
impl From<[u32; 2]> for ClearValue
sourcefn from(val: [u32; 2]) -> ClearValue
fn from(val: [u32; 2]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[u32; 3]> for ClearValue
impl From<[u32; 3]> for ClearValue
sourcefn from(val: [u32; 3]) -> ClearValue
fn from(val: [u32; 3]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<[u32; 4]> for ClearValue
impl From<[u32; 4]> for ClearValue
sourcefn from(val: [u32; 4]) -> ClearValue
fn from(val: [u32; 4]) -> ClearValue
Converts to this type from the input type.
sourceimpl From<(f32, u32)> for ClearValue
impl From<(f32, u32)> for ClearValue
sourcefn from(val: (f32, u32)) -> ClearValue
fn from(val: (f32, u32)) -> ClearValue
Converts to this type from the input type.
sourceimpl From<f32> for ClearValue
impl From<f32> for ClearValue
sourcefn from(val: f32) -> ClearValue
fn from(val: f32) -> ClearValue
Converts to this type from the input type.
sourceimpl From<u32> for ClearValue
impl From<u32> for ClearValue
sourcefn from(val: u32) -> ClearValue
fn from(val: u32) -> ClearValue
Converts to this type from the input type.
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.