pub struct ResourceAllocationInfo(/* private fields */);
Expand description
Wrapper around D3D12_RESOURCE_ALLOCATION_INFO structure
Implementations§
Source§impl ResourceAllocationInfo
impl ResourceAllocationInfo
pub fn set_size_in_bytes(&mut self, size_in_bytes: ByteCount) -> &mut Self
pub fn with_size_in_bytes(self, size_in_bytes: ByteCount) -> Self
pub fn size_in_bytes(&self) -> ByteCount
pub fn set_alignment(&mut self, alignment: ByteCount) -> &mut Self
pub fn with_alignment(self, alignment: ByteCount) -> Self
pub fn alignment(&self) -> ByteCount
Trait Implementations§
Source§impl Clone for ResourceAllocationInfo
impl Clone for ResourceAllocationInfo
Source§fn clone(&self) -> ResourceAllocationInfo
fn clone(&self) -> ResourceAllocationInfo
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 ResourceAllocationInfo
impl Debug for ResourceAllocationInfo
Source§impl Default for ResourceAllocationInfo
impl Default for ResourceAllocationInfo
Source§fn default() -> ResourceAllocationInfo
fn default() -> ResourceAllocationInfo
Returns the “default value” for a type. Read more
Source§impl Hash for ResourceAllocationInfo
impl Hash for ResourceAllocationInfo
Source§impl Ord for ResourceAllocationInfo
impl Ord for ResourceAllocationInfo
Source§fn cmp(&self, other: &ResourceAllocationInfo) -> Ordering
fn cmp(&self, other: &ResourceAllocationInfo) -> 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 ResourceAllocationInfo
impl PartialEq for ResourceAllocationInfo
Source§impl PartialOrd for ResourceAllocationInfo
impl PartialOrd for ResourceAllocationInfo
impl Copy for ResourceAllocationInfo
impl Eq for ResourceAllocationInfo
impl StructuralPartialEq for ResourceAllocationInfo
Auto Trait Implementations§
impl Freeze for ResourceAllocationInfo
impl RefUnwindSafe for ResourceAllocationInfo
impl Send for ResourceAllocationInfo
impl Sync for ResourceAllocationInfo
impl Unpin for ResourceAllocationInfo
impl UnwindSafe for ResourceAllocationInfo
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