#[repr(C)]pub struct HIP_RESOURCE_VIEW_DESC_st {
pub format: HIPresourceViewFormat,
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],
}
Expand description
Resource view descriptor
Fields§
§format: HIPresourceViewFormat
< Resource view format
width: usize
< Width of the resource view
height: usize
< Height of the resource view
depth: usize
< Depth of the resource view
firstMipmapLevel: c_uint
< First defined mipmap level
lastMipmapLevel: c_uint
< Last defined mipmap level
firstLayer: c_uint
< First layer index
lastLayer: c_uint
< Last layer index
reserved: [c_uint; 16]
Trait Implementations§
Source§impl Clone for HIP_RESOURCE_VIEW_DESC_st
impl Clone for HIP_RESOURCE_VIEW_DESC_st
Source§fn clone(&self) -> HIP_RESOURCE_VIEW_DESC_st
fn clone(&self) -> HIP_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 HIP_RESOURCE_VIEW_DESC_st
impl Debug for HIP_RESOURCE_VIEW_DESC_st
impl Copy for HIP_RESOURCE_VIEW_DESC_st
Auto Trait Implementations§
impl Freeze for HIP_RESOURCE_VIEW_DESC_st
impl RefUnwindSafe for HIP_RESOURCE_VIEW_DESC_st
impl Send for HIP_RESOURCE_VIEW_DESC_st
impl Sync for HIP_RESOURCE_VIEW_DESC_st
impl Unpin for HIP_RESOURCE_VIEW_DESC_st
impl UnwindSafe for HIP_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