Class GPUBufferDX11
GPU buffer for DirectX 11 backend.
Inherited Members
GPUBufferDX11
Assembly: FlaxEngine.dll
File: Engine/GraphicsDevice/DirectX/DX11/GPUBufferDX11.h
Syntax
public class GPUBufferDX11 : public GPUResourceDX11
Constructors
GPUBufferDX11(GPUDeviceDX11* device, const StringView& name)
Initializes a new instance of the GPUBufferDX11 class.
Declaration
public GPUBufferDX11(GPUDeviceDX11* device, const StringView& name)
Parameters
GPUDeviceDX11
device
The graphics device. |
StringView
name
The resource name. |
Methods
GetBuffer()
Gets DirectX 11 buffer object handle
Declaration
public ID3D11Buffer* GetBuffer() const
Returns
ID3D11Buffer
Buffer |
GetResource()
Gets DirectX 11 resource object handle.
Declaration
public virtual ID3D11Resource* GetResource() override
Returns
ID3D11Resource
|
Overrides
Map(GPUResourceMapMode mode)
Gets a CPU pointer to the resource by mapping its contents. Denies the GPU access to that resource.
Always call Unmap if the returned pointer is valid to release resources.
Declaration
public virtual void* Map(GPUResourceMapMode mode) override
Parameters
GPUResourceMapMode
mode
The map operation mode. |
Returns
void
The pointer of the mapped CPU buffer with resource data or null if failed. |
Overrides
OnInit()
OnReleaseGPU()
Releases GPU resource data (implementation).
Declaration
protected virtual void OnReleaseGPU() override
Overrides
Unmap()
Invalidates the mapped pointer to a resource and restores the GPU's access to that resource.
Declaration
public virtual void Unmap() override
Overrides
View()
Gets the view for the whole buffer.
Declaration
public virtual GPUBufferView* View() const override
Returns
GPUBufferView
|