#[non_exhaustive]#[repr(u32)]pub enum cudaGraphicsMapFlags {
cudaGraphicsMapFlagsNone = 0,
cudaGraphicsMapFlagsReadOnly = 1,
cudaGraphicsMapFlagsWriteDiscard = 2,
}
Expand description
CUDA graphics interop map flags
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
cudaGraphicsMapFlagsNone = 0
< Default; Assume resource can be read/written
cudaGraphicsMapFlagsReadOnly = 1
< CUDA will not write to this resource
cudaGraphicsMapFlagsWriteDiscard = 2
< CUDA will only write to and will not read from this resource
Trait Implementations§
Source§impl Clone for cudaGraphicsMapFlags
impl Clone for cudaGraphicsMapFlags
Source§fn clone(&self) -> cudaGraphicsMapFlags
fn clone(&self) -> cudaGraphicsMapFlags
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 cudaGraphicsMapFlags
impl Debug for cudaGraphicsMapFlags
Source§impl Hash for cudaGraphicsMapFlags
impl Hash for cudaGraphicsMapFlags
Source§impl PartialEq for cudaGraphicsMapFlags
impl PartialEq for cudaGraphicsMapFlags
impl Copy for cudaGraphicsMapFlags
impl Eq for cudaGraphicsMapFlags
impl StructuralPartialEq for cudaGraphicsMapFlags
Auto Trait Implementations§
impl Freeze for cudaGraphicsMapFlags
impl RefUnwindSafe for cudaGraphicsMapFlags
impl Send for cudaGraphicsMapFlags
impl Sync for cudaGraphicsMapFlags
impl Unpin for cudaGraphicsMapFlags
impl UnwindSafe for cudaGraphicsMapFlags
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