Skip to main content

D3D12Context

The D3D12Context class is a Direct3D12-specific implementation of the Context class. It allows initialization of the rendering context using an externally provided ID3D12Device and command queue. The class also provides access to the underlying DXGI factory, device, command queue, and command list.

#include <platform/TellusimContext.h>

Inheritance

Constructors

D3D12Context()

Methods

Create context.

bool create(ID3D12Device *device, ID3D12CommandQueue *queue)

Current device.

IDXGIFactory4 *getFactory() const
ID3D12Device *getDevice() const
ID3D12CommandQueue *getQueue() const
ID3D12GraphicsCommandList *getCommand() const

Direct3D12 functions.

static void *getProcAddress(const char *name)

Check Direct3D12 errors.

static bool error(uint32_t result)