Class UploadBufferPageDX12
Single page for the upload buffer
Inherited Members
UploadBufferPageDX12
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/DirectX/DX12/UploadBufferDX12.h
Syntax
public class UploadBufferPageDX12 : public GPUResourceDX12, public ResourceOwnerDX12
Constructors
UploadBufferPageDX12(GPUDeviceDX12* device, uint64 size)
Init
Declaration
public UploadBufferPageDX12(GPUDeviceDX12* device, uint64 size)
Parameters
GPUDeviceDX12
device
Graphics Device |
uint64
size
Page size |
Fields
CPUAddress
CPU memory address of the page
Declaration
public void* CPUAddress
Field Value
void
|
GPUAddress
GPU memory address of the page
Declaration
public D3D12_GPU_VIRTUAL_ADDRESS GPUAddress
Field Value
D3D12_GPU_VIRTUAL_ADDRESS
|
LastGen
Last generation that has been using that page
Declaration
public uint64 LastGen
Field Value
uint64
|
Size
Page size in bytes
Declaration
public uint64 Size
Field Value
uint64
|
Methods
AsGPUResource()
Gets resource owner object as a GPUResource type or returns null if cannot perform cast.
Declaration
public virtual GPUResource* AsGPUResource() const override
Returns
GPUResource
|
Overrides
GetResourceType()
Gets the GPU resource type.
Declaration
public virtual GPUResourceType GetResourceType() const final override
Returns
GPUResourceType
|
Overrides
OnReleaseGPU()
Releases GPU resource data (implementation).
Declaration
protected virtual void OnReleaseGPU() final override