D3D11Surface
The D3D11Surface class extends the Surface class to provide Direct3D11-specific functionality for managing a rendering surface. It includes methods for interacting with Direct3D11 devices, device contexts, and swap chains, enabling rendering operations in the context of Direct3D11. The class supports managing render targets, depth-stencil buffers, and render target views, which are essential for rendering operations.
#include <platform/TellusimSurface.h>
Inheritance
- Inherits from Surface
Constructors
D3D11Surface()
explicit D3D11Surface(D3D11Context &context)
Methods
Current device.
IDXGIFactory *getFactory() const
ID3D11Device *getDevice() const
ID3D11DeviceContext *getContext() const
Swap chain.
void setSwapChain(IDXGISwapChain *swap_chain)
IDXGISwapChain *getSwapChain() const
Render targets.
void setRenderTarget(ID3D11Texture2D *render_target)
void setDepthStencil(ID3D11Texture2D *depth_stencil)
ID3D11Texture2D *getRenderTarget() const
ID3D11Texture2D *getDepthStencil() const
Render target views.
void setRenderTargetView(ID3D11RenderTargetView *render_target_view)
void setDepthStencilView(ID3D11DepthStencilView *depth_stencil_view)
ID3D11RenderTargetView *getRenderTargetView() const
ID3D11DepthStencilView *getDepthStencilView() const
Surface formats.
uint32_t getColorDXGIFormat() const
uint32_t getDepthDXGIFormat() const