Struct gpu_allocator::d3d12::AllocationCreateDesc [−][src]
pub struct AllocationCreateDesc<'a> {
pub name: &'a str,
pub location: MemoryLocation,
pub size: u64,
pub alignment: u64,
pub resource_category: ResourceCategory,
}Fields
name: &'a strName of the allocation, for tracking and debugging purposes
location: MemoryLocationLocation where the memory allocation should be stored
size: u64Size of allocation, should be queried using d3d12::ID3D12Device::GetResourceAllocationInfo()
alignment: u64Alignment of allocation, should be queried using d3d12::ID3D12Device::GetResourceAllocationInfo()
resource_category: ResourceCategoryResource category based on resource dimension and flags. Can be created from a d3d12::D3D12_RESOURCE_DESC
using the helper into function. The resource category is ignored when Resource Heap Tier 2 or higher
is supported.
Implementations
pub fn from_d3d12_resource_desc(
device: Dx12DevicePtr,
desc: &D3D12_RESOURCE_DESC,
name: &'a str,
location: MemoryLocation
) -> AllocationCreateDesc<'a>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for AllocationCreateDesc<'a>
impl<'a> Send for AllocationCreateDesc<'a>
impl<'a> Sync for AllocationCreateDesc<'a>
impl<'a> Unpin for AllocationCreateDesc<'a>
impl<'a> UnwindSafe for AllocationCreateDesc<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more