Struct cudarc::driver::sys::CUDA_RESOURCE_VIEW_DESC_st
source · #[repr(C)]pub struct CUDA_RESOURCE_VIEW_DESC_st {
pub format: CUresourceViewFormat,
pub width: usize,
pub height: usize,
pub depth: usize,
pub firstMipmapLevel: c_uint,
pub lastMipmapLevel: c_uint,
pub firstLayer: c_uint,
pub lastLayer: c_uint,
pub reserved: [c_uint; 16],
}
Fields§
§format: CUresourceViewFormat
§width: usize
§height: usize
§depth: usize
§firstMipmapLevel: c_uint
§lastMipmapLevel: c_uint
§firstLayer: c_uint
§lastLayer: c_uint
§reserved: [c_uint; 16]
Trait Implementations§
source§impl Clone for CUDA_RESOURCE_VIEW_DESC_st
impl Clone for CUDA_RESOURCE_VIEW_DESC_st
source§fn clone(&self) -> CUDA_RESOURCE_VIEW_DESC_st
fn clone(&self) -> CUDA_RESOURCE_VIEW_DESC_st
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 CUDA_RESOURCE_VIEW_DESC_st
impl Debug for CUDA_RESOURCE_VIEW_DESC_st
source§impl Default for CUDA_RESOURCE_VIEW_DESC_st
impl Default for CUDA_RESOURCE_VIEW_DESC_st
source§impl Hash for CUDA_RESOURCE_VIEW_DESC_st
impl Hash for CUDA_RESOURCE_VIEW_DESC_st
source§impl Ord for CUDA_RESOURCE_VIEW_DESC_st
impl Ord for CUDA_RESOURCE_VIEW_DESC_st
source§fn cmp(&self, other: &CUDA_RESOURCE_VIEW_DESC_st) -> Ordering
fn cmp(&self, other: &CUDA_RESOURCE_VIEW_DESC_st) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<CUDA_RESOURCE_VIEW_DESC_st> for CUDA_RESOURCE_VIEW_DESC_st
impl PartialEq<CUDA_RESOURCE_VIEW_DESC_st> for CUDA_RESOURCE_VIEW_DESC_st
source§fn eq(&self, other: &CUDA_RESOURCE_VIEW_DESC_st) -> bool
fn eq(&self, other: &CUDA_RESOURCE_VIEW_DESC_st) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<CUDA_RESOURCE_VIEW_DESC_st> for CUDA_RESOURCE_VIEW_DESC_st
impl PartialOrd<CUDA_RESOURCE_VIEW_DESC_st> for CUDA_RESOURCE_VIEW_DESC_st
source§fn partial_cmp(&self, other: &CUDA_RESOURCE_VIEW_DESC_st) -> Option<Ordering>
fn partial_cmp(&self, other: &CUDA_RESOURCE_VIEW_DESC_st) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CUDA_RESOURCE_VIEW_DESC_st
impl Eq for CUDA_RESOURCE_VIEW_DESC_st
impl StructuralEq for CUDA_RESOURCE_VIEW_DESC_st
impl StructuralPartialEq for CUDA_RESOURCE_VIEW_DESC_st
Auto Trait Implementations§
impl RefUnwindSafe for CUDA_RESOURCE_VIEW_DESC_st
impl Send for CUDA_RESOURCE_VIEW_DESC_st
impl Sync for CUDA_RESOURCE_VIEW_DESC_st
impl Unpin for CUDA_RESOURCE_VIEW_DESC_st
impl UnwindSafe for CUDA_RESOURCE_VIEW_DESC_st
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