Struct gpu_allocator::d3d12::ResourceCreateDesc
source · pub struct ResourceCreateDesc<'a> {
pub name: &'a str,
pub memory_location: MemoryLocation,
pub resource_category: ResourceCategory,
pub resource_desc: &'a D3D12_RESOURCE_DESC,
pub clear_value: Option<&'a D3D12_CLEAR_VALUE>,
pub initial_state_or_layout: ResourceStateOrBarrierLayout,
pub resource_type: &'a ResourceType<'a>,
}
Fields§
§name: &'a str
§memory_location: MemoryLocation
§resource_category: ResourceCategory
§resource_desc: &'a D3D12_RESOURCE_DESC
§clear_value: Option<&'a D3D12_CLEAR_VALUE>
§initial_state_or_layout: ResourceStateOrBarrierLayout
§resource_type: &'a ResourceType<'a>
Trait Implementations§
source§impl<'a> Clone for ResourceCreateDesc<'a>
impl<'a> Clone for ResourceCreateDesc<'a>
source§fn clone(&self) -> ResourceCreateDesc<'a>
fn clone(&self) -> ResourceCreateDesc<'a>
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 moreimpl<'a> Copy for ResourceCreateDesc<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ResourceCreateDesc<'a>
impl<'a> Send for ResourceCreateDesc<'a>
impl<'a> Sync for ResourceCreateDesc<'a>
impl<'a> Unpin for ResourceCreateDesc<'a>
impl<'a> UnwindSafe for ResourceCreateDesc<'a>
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