Skip to main content

D3D12Buffer

The D3D12Buffer class is a Direct3D12-specific implementation of the Buffer class, providing access to internal resources and views. It allows the creation of external buffers from ID3D12Resource objects and provides methods to retrieve unordered access and shader resource views, along with the buffer memory address. This class also facilitates managing buffer state transitions and offers shared and interop handles for advanced resource handling.

#include <platform/TellusimBuffer.h>

Inheritance

Constructors

D3D12Buffer()

Methods

Create external buffer.

bool create(Flags flags, ID3D12Resource *buffer, uint32_t state)
ID3D12Resource *getD3D12Buffer() const
size_t getUnorderedAccessView() const
size_t getShaderResourceView() const
uint64_t getBufferAddress() const
void setBufferState(uint32_t state)
uint32_t getBufferState() const
void *getSharedHandle() const
void *getInteropHandle() const