Enum gpu_allocator::d3d12::ResourceCategory
source · pub enum ResourceCategory {
Buffer,
RtvDsvTexture,
OtherTexture,
}
Expand description
ResourceCategory
is used for supporting [D3D12_RESOURCE_HEAP_TIER_1
].
ResourceCategory
will be ignored if device supports [D3D12_RESOURCE_HEAP_TIER_2
].
Variants§
Trait Implementations§
source§impl Clone for ResourceCategory
impl Clone for ResourceCategory
source§fn clone(&self) -> ResourceCategory
fn clone(&self) -> ResourceCategory
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 ResourceCategory
impl Debug for ResourceCategory
source§impl From<&D3D12_RESOURCE_DESC> for ResourceCategory
impl From<&D3D12_RESOURCE_DESC> for ResourceCategory
source§fn from(desc: &D3D12_RESOURCE_DESC) -> Self
fn from(desc: &D3D12_RESOURCE_DESC) -> Self
Converts to this type from the input type.
source§impl From<&D3D12_RESOURCE_DESC> for ResourceCategory
impl From<&D3D12_RESOURCE_DESC> for ResourceCategory
source§impl PartialEq for ResourceCategory
impl PartialEq for ResourceCategory
source§fn eq(&self, other: &ResourceCategory) -> bool
fn eq(&self, other: &ResourceCategory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ResourceCategory
impl Eq for ResourceCategory
impl StructuralPartialEq for ResourceCategory
Auto Trait Implementations§
impl Freeze for ResourceCategory
impl RefUnwindSafe for ResourceCategory
impl Send for ResourceCategory
impl Sync for ResourceCategory
impl Unpin for ResourceCategory
impl UnwindSafe for ResourceCategory
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
)