pub struct ResourceDesc(/* private fields */);
Expand description
Wrapper around D3D12_RESOURCE_DESC structure
Implementations§
Source§impl ResourceDesc
impl ResourceDesc
pub fn set_dimension(&mut self, dimension: ResourceDimension) -> &mut Self
pub fn with_dimension(self, dimension: ResourceDimension) -> Self
pub fn dimension(&self) -> ResourceDimension
pub fn set_alignment(&mut self, alignment: u64) -> &mut Self
pub fn with_alignment(self, alignment: u64) -> Self
pub fn alignment(&self) -> u64
pub fn set_width(&mut self, width: u64) -> &mut Self
pub fn with_width(self, width: u64) -> Self
pub fn width(&self) -> u64
pub fn set_height(&mut self, height: u32) -> &mut Self
pub fn with_height(self, height: u32) -> Self
pub fn height(&self) -> u32
pub fn set_depth_or_array_size(&mut self, depth_or_array_size: u16) -> &mut Self
pub fn with_depth_or_array_size(self, depth_or_array_size: u16) -> Self
pub fn depth_or_array_size(&self) -> u16
pub fn set_mip_levels(&mut self, mip_levels: u16) -> &mut Self
pub fn with_mip_levels(self, mip_levels: u16) -> Self
pub fn mip_levels(&self) -> u16
pub fn set_format(&mut self, format: Format) -> &mut Self
pub fn with_format(self, format: Format) -> Self
pub fn format(&self) -> Format
pub fn set_sample_desc(&mut self, sample_desc: SampleDesc) -> &mut Self
pub fn with_sample_desc(self, sample_desc: SampleDesc) -> Self
pub fn sample_desc(&self) -> SampleDesc
pub fn set_layout(&mut self, layout: TextureLayout) -> &mut Self
pub fn with_layout(self, layout: TextureLayout) -> Self
pub fn layout(&self) -> TextureLayout
pub fn set_flags(&mut self, flags: ResourceFlags) -> &mut Self
pub fn with_flags(self, flags: ResourceFlags) -> Self
pub fn flags(&self) -> ResourceFlags
Trait Implementations§
Source§impl Clone for ResourceDesc
impl Clone for ResourceDesc
Source§fn clone(&self) -> ResourceDesc
fn clone(&self) -> ResourceDesc
Returns a duplicate 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 ResourceDesc
impl Debug for ResourceDesc
Source§impl Default for ResourceDesc
impl Default for ResourceDesc
Source§impl Hash for ResourceDesc
impl Hash for ResourceDesc
Source§impl Ord for ResourceDesc
impl Ord for ResourceDesc
Source§fn cmp(&self, other: &ResourceDesc) -> Ordering
fn cmp(&self, other: &ResourceDesc) -> 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 for ResourceDesc
impl PartialEq for ResourceDesc
Source§impl PartialOrd for ResourceDesc
impl PartialOrd for ResourceDesc
impl Eq for ResourceDesc
impl StructuralPartialEq for ResourceDesc
Auto Trait Implementations§
impl Freeze for ResourceDesc
impl RefUnwindSafe for ResourceDesc
impl Send for ResourceDesc
impl Sync for ResourceDesc
impl Unpin for ResourceDesc
impl UnwindSafe for ResourceDesc
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