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 castable_formats: &'a [DXGI_FORMAT],
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
§castable_formats: &'a [DXGI_FORMAT]
§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> Freeze for ResourceCreateDesc<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)