Struct hip_sys::hiprt::hipResourceViewDesc
source · #[repr(C)]pub struct hipResourceViewDesc {
pub format: hipResourceViewFormat,
pub width: usize,
pub height: usize,
pub depth: usize,
pub firstMipmapLevel: u32,
pub lastMipmapLevel: u32,
pub firstLayer: u32,
pub lastLayer: u32,
}Expand description
hip resource view descriptor
Fields§
§format: hipResourceViewFormat§width: usize§height: usize§depth: usize§firstMipmapLevel: u32§lastMipmapLevel: u32§firstLayer: u32§lastLayer: u32Trait Implementations§
source§impl Clone for hipResourceViewDesc
impl Clone for hipResourceViewDesc
source§fn clone(&self) -> hipResourceViewDesc
fn clone(&self) -> hipResourceViewDesc
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 hipResourceViewDesc
impl Debug for hipResourceViewDesc
source§impl Default for hipResourceViewDesc
impl Default for hipResourceViewDesc
source§fn default() -> hipResourceViewDesc
fn default() -> hipResourceViewDesc
Returns the “default value” for a type. Read more
source§impl Hash for hipResourceViewDesc
impl Hash for hipResourceViewDesc
source§impl Ord for hipResourceViewDesc
impl Ord for hipResourceViewDesc
source§fn cmp(&self, other: &hipResourceViewDesc) -> Ordering
fn cmp(&self, other: &hipResourceViewDesc) -> 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<hipResourceViewDesc> for hipResourceViewDesc
impl PartialEq<hipResourceViewDesc> for hipResourceViewDesc
source§fn eq(&self, other: &hipResourceViewDesc) -> bool
fn eq(&self, other: &hipResourceViewDesc) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<hipResourceViewDesc> for hipResourceViewDesc
impl PartialOrd<hipResourceViewDesc> for hipResourceViewDesc
source§fn partial_cmp(&self, other: &hipResourceViewDesc) -> Option<Ordering>
fn partial_cmp(&self, other: &hipResourceViewDesc) -> 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 hipResourceViewDesc
impl Eq for hipResourceViewDesc
impl StructuralEq for hipResourceViewDesc
impl StructuralPartialEq for hipResourceViewDesc
Auto Trait Implementations§
impl RefUnwindSafe for hipResourceViewDesc
impl Send for hipResourceViewDesc
impl Sync for hipResourceViewDesc
impl Unpin for hipResourceViewDesc
impl UnwindSafe for hipResourceViewDesc
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