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 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 more
sourceimpl Debug for ClearValue
impl Debug for ClearValue
sourceimpl From<f32> for ClearValue
impl From<f32> for ClearValue
sourcefn from(val: f32) -> ClearValue
fn from(val: f32) -> ClearValue
Performs the conversion.
sourceimpl From<u32> for ClearValue
impl From<u32> for ClearValue
sourcefn from(val: u32) -> ClearValue
fn from(val: u32) -> ClearValue
Performs the conversion.
sourceimpl<A> ImageClearValue<ClearValue> for AttachmentImage<A> where
A: MemoryPoolAlloc,
impl<A> ImageClearValue<ClearValue> for AttachmentImage<A> where
A: MemoryPoolAlloc,
fn decode(&self, value: ClearValue) -> Option<ClearValue>
sourceimpl<A> ImageClearValue<ClearValue> for StorageImage<A> where
A: MemoryPool,
impl<A> ImageClearValue<ClearValue> for StorageImage<A> where
A: MemoryPool,
fn decode(&self, value: ClearValue) -> Option<ClearValue>
sourceimpl<W> ImageClearValue<ClearValue> for SwapchainImage<W> where
W: Send + Sync,
impl<W> ImageClearValue<ClearValue> for SwapchainImage<W> where
W: Send + Sync,
fn decode(&self, value: ClearValue) -> Option<ClearValue>
sourceimpl PartialEq<ClearValue> for ClearValue
impl PartialEq<ClearValue> for ClearValue
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ClearValue) -> bool
fn ne(&self, other: &ClearValue) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more