#[non_exhaustive]#[repr(u32)]pub enum cudaGraphicsRegisterFlags {
cudaGraphicsRegisterFlagsNone = 0,
cudaGraphicsRegisterFlagsReadOnly = 1,
cudaGraphicsRegisterFlagsWriteDiscard = 2,
cudaGraphicsRegisterFlagsSurfaceLoadStore = 4,
cudaGraphicsRegisterFlagsTextureGather = 8,
}Expand description
CUDA graphics interop register 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.
cudaGraphicsRegisterFlagsNone = 0
< Default
cudaGraphicsRegisterFlagsReadOnly = 1
< CUDA will not write to this resource
cudaGraphicsRegisterFlagsWriteDiscard = 2
< CUDA will only write to and will not read from this resource
cudaGraphicsRegisterFlagsSurfaceLoadStore = 4
< CUDA will bind this resource to a surface reference
cudaGraphicsRegisterFlagsTextureGather = 8
< CUDA will perform texture gather operations on this resource
Trait Implementations§
Source§impl Clone for cudaGraphicsRegisterFlags
impl Clone for cudaGraphicsRegisterFlags
Source§fn clone(&self) -> cudaGraphicsRegisterFlags
fn clone(&self) -> cudaGraphicsRegisterFlags
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 cudaGraphicsRegisterFlags
impl Debug for cudaGraphicsRegisterFlags
Source§impl Hash for cudaGraphicsRegisterFlags
impl Hash for cudaGraphicsRegisterFlags
impl Copy for cudaGraphicsRegisterFlags
impl Eq for cudaGraphicsRegisterFlags
impl StructuralPartialEq for cudaGraphicsRegisterFlags
Auto Trait Implementations§
impl Freeze for cudaGraphicsRegisterFlags
impl RefUnwindSafe for cudaGraphicsRegisterFlags
impl Send for cudaGraphicsRegisterFlags
impl Sync for cudaGraphicsRegisterFlags
impl Unpin for cudaGraphicsRegisterFlags
impl UnwindSafe for cudaGraphicsRegisterFlags
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