pub struct ClearValue(/* private fields */);
Expand description
Wrapper around D3D12_CLEAR_VALUE structure
Implementations§
Source§impl ClearValue
impl ClearValue
pub fn set_format(&mut self, format: Format) -> &mut Self
pub fn with_format(self, format: Format) -> Self
pub fn format(&self) -> Format
pub fn set_color(&mut self, color: [f32; 4]) -> &mut Self
pub fn with_color(self, color: [f32; 4]) -> Self
Sourcepub unsafe fn color(&self) -> [f32; 4]
pub unsafe fn color(&self) -> [f32; 4]
§Safety
This function doesn’t verify the current union variant
pub fn set_depth_stencil( &mut self, depth_stencil: &DepthStencilValue, ) -> &mut Self
pub fn with_depth_stencil(self, depth_stencil: &DepthStencilValue) -> Self
Sourcepub unsafe fn depth_stencil(&self) -> DepthStencilValue
pub unsafe fn depth_stencil(&self) -> DepthStencilValue
§Safety
This function doesn’t verify the current union variant
Trait Implementations§
Source§impl Clone for ClearValue
impl Clone for ClearValue
Source§fn clone(&self) -> ClearValue
fn clone(&self) -> ClearValue
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 ClearValue
impl Debug for ClearValue
Source§impl Default for ClearValue
impl Default for ClearValue
Source§fn default() -> ClearValue
fn default() -> ClearValue
Returns the “default value” for a type. Read more
impl Copy for ClearValue
Auto Trait Implementations§
impl Freeze for ClearValue
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