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 PartialEq<ResourceCategory> for ResourceCategory
impl PartialEq<ResourceCategory> 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 ==
.