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.

Returns the size of the allocation

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.