#[repr(C)]pub struct cudaResourceDesc__bindgen_ty_1 {
pub array: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_1>,
pub mipmap: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_2>,
pub linear: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_3>,
pub pitch2D: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_4>,
pub reserved: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_5>,
pub bindgen_union_field: [u64; 16],
}Expand description
Native layout of the res member of cudaResourceDesc.
Fields§
§array: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_1>CUDA array handle used for an array resource.
mipmap: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_2>CUDA mipmapped-array handle used for a mipmapped resource.
linear: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_3>Device pointer, element format, and capacity of a linear resource.
pitch2D: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_4>Device pointer, element format, dimensions, and row pitch of a two-dimensional resource.
reserved: __BindgenUnionField<cudaResourceDesc__bindgen_ty_1__bindgen_ty_5>Reserved storage in the native ABI.
bindgen_union_field: [u64; 16]Backing storage shared by the members of this bindgen-emulated C union.
Trait Implementations§
Auto Trait Implementations§
impl !Send for cudaResourceDesc__bindgen_ty_1
impl !Sync for cudaResourceDesc__bindgen_ty_1
impl Forget for cudaResourceDesc__bindgen_ty_1
impl Freeze for cudaResourceDesc__bindgen_ty_1
impl Move for cudaResourceDesc__bindgen_ty_1
impl RefUnwindSafe for cudaResourceDesc__bindgen_ty_1
impl Unpin for cudaResourceDesc__bindgen_ty_1
impl UnsafeUnpin for cudaResourceDesc__bindgen_ty_1
impl UnwindSafe for cudaResourceDesc__bindgen_ty_1
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