Skip to main content

D3D11Context

The D3D11Context class is a Direct3D11-specific implementation of the Context class. It allows initializing the rendering context using an externally provided ID3D11Device. The class also provides access to the DXGI factory, device, and device context.

#include <platform/TellusimContext.h>

Inheritance

Constructors

D3D11Context()

Methods

Create context.

bool create(ID3D11Device *device)

Current device.

IDXGIFactory *getFactory() const
ID3D11Device *getDevice() const
ID3D11DeviceContext *getD3D11Context() const

Direct3D11 functions.

static void *getProcAddress(const char *name)

Check Direct3D11 errors.

static bool error(uint32_t result)