Struct DynamicAllocation
Upload buffer allocation
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/DirectX/DX12/UploadBufferDX12.h
Syntax
public struct DynamicAllocation
Constructors
DynamicAllocation()
Init
Declaration
public DynamicAllocation()
DynamicAllocation(void* address, uint64 offset, uint64 size, D3D12_GPU_VIRTUAL_ADDRESS gpuAddress, UploadBufferPageDX12* page, uint64 generation)
Init
Declaration
public DynamicAllocation(void* address, uint64 offset, uint64 size, D3D12_GPU_VIRTUAL_ADDRESS gpuAddress, UploadBufferPageDX12* page, uint64 generation)
Parameters
void
address
CPU memory address |
uint64
offset
Offset in byes |
uint64
size
Size in byes |
D3D12_GPU_VIRTUAL_ADDRESS
gpuAddress
GPU memory address |
Upload Parent page |
uint64
generation
Generation |
Fields
CPUAddress
CPU memory address of the allocation start.
Declaration
public void* CPUAddress
Field Value
void
|
Generation
Generation number of that allocation (generally allocation is invalid after one or two generations)
Declaration
public uint64 Generation
Field Value
uint64
|
GPUAddress
GPU virtual memory address of the allocation start.
Declaration
public D3D12_GPU_VIRTUAL_ADDRESS GPUAddress
Field Value
D3D12_GPU_VIRTUAL_ADDRESS
|
Offset
Allocation offset in bytes (from the start of the heap buffer).
Declaration
public uint64 Offset
Field Value
uint64
|
Page
Upload buffer page that owns that allocation
Declaration
public UploadBufferPageDX12* Page
Field Value
Size
Allocation size in bytes
Declaration
public uint64 Size
Field Value
uint64
|
Methods
IsInvalid()
Returns true if allocation is invalid.
Declaration
public bool IsInvalid() const
Returns
bool
|