Struct gpu_allocator::d3d12::Allocation [−][src]
pub struct Allocation { /* fields omitted */ }Implementations
Returns the d3d12::ID3D12Heap object that is backing this allocation.
This heap object can be shared with multiple other allocations and shouldn’t be freed (or allocated from)
without this library, because that will lead to undefined behavior.
Safety
The result of this function can safely be used to pass into d3d12::ID3D12Device::CreatePlacedResource().
It’s exposed for this reason. Keep in mind to also pass Self::offset() along to it.
Returns the offset of the allocation on the d3d12::ID3D12Heap.
When creating a placed resources, this offset needs to be supplied as well.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more