pub struct LoadOpDontCare {
_private: (),
}Expand description
Token of the user agreeing to use LoadOp::DontCare.
Fields§
§_private: ()Implementations§
Source§impl LoadOpDontCare
impl LoadOpDontCare
Sourcepub const unsafe fn enabled() -> LoadOpDontCare
pub const unsafe fn enabled() -> LoadOpDontCare
Using LoadOp::DontCare will result
in the render target having undefined contents at the start of the render pass.
This may lead to undefined behavior if you read from the any of the
render target pixels without first writing to them.
Blending also becomes undefined behavior if the source pixels are undefined.
All pixels in the render target must be written to before
any blending or a StoreOp::Store occurs.
§Safety
- You acknowledge that using
LoadOp::DontCaremay lead to undefined behavior if the above conditions are not met.
Trait Implementations§
Source§impl Clone for LoadOpDontCare
impl Clone for LoadOpDontCare
Source§fn clone(&self) -> LoadOpDontCare
fn clone(&self) -> LoadOpDontCare
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 LoadOpDontCare
impl Debug for LoadOpDontCare
Source§impl Default for LoadOpDontCare
impl Default for LoadOpDontCare
Source§fn default() -> LoadOpDontCare
fn default() -> LoadOpDontCare
Returns the “default value” for a type. Read more
Source§impl Hash for LoadOpDontCare
impl Hash for LoadOpDontCare
Source§impl PartialEq for LoadOpDontCare
impl PartialEq for LoadOpDontCare
impl Copy for LoadOpDontCare
impl Eq for LoadOpDontCare
impl StructuralPartialEq for LoadOpDontCare
Auto Trait Implementations§
impl Freeze for LoadOpDontCare
impl RefUnwindSafe for LoadOpDontCare
impl Send for LoadOpDontCare
impl Sync for LoadOpDontCare
impl Unpin for LoadOpDontCare
impl UnwindSafe for LoadOpDontCare
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more