Skip to main content

cudaResourceDesc__bindgen_ty_1

Struct cudaResourceDesc__bindgen_ty_1 

Source
#[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§

Source§

impl Default for cudaResourceDesc__bindgen_ty_1

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.