|
| DeviceContextBase (IMemoryAllocator &RawMemAllocator, IRenderDevice *pRenderDevice, bool bIsDeferred) |
|
virtual void | SetVertexBuffers (Uint32 StartSlot, Uint32 NumBuffersSet, IBuffer **ppBuffers, Uint32 *pStrides, Uint32 *pOffsets, Uint32 Flags)=0 |
| Base implementation of IDeviceContext::SetVertexBuffers(); validates parameters and caches references to the buffers.
|
|
virtual void | SetPipelineState (IPipelineState *pPipelineState)=0 |
| Base implementation of IDeviceContext::SetPipelineState(); caches references to the pipeline state object.
|
|
bool | CommitShaderResources (IShaderResourceBinding *pShaderResourceBinding, Uint32 Flags, int) |
| Base implementation of IDeviceContext::CommitShaderResources(); validates parameters.
|
|
virtual void | SetIndexBuffer (IBuffer *pIndexBuffer, Uint32 ByteOffset)=0 |
| Base implementation of IDeviceContext::SetIndexBuffer(); caches the strong reference to the index buffer.
|
|
void | SetViewports (Uint32 NumViewports, const Viewport *pViewports, Uint32 &RTWidth, Uint32 &RTHeight) |
| Caches the viewports.
|
|
void | SetScissorRects (Uint32 NumRects, const Rect *pRects, Uint32 &RTWidth, Uint32 &RTHeight) |
| Caches the scissor rects.
|
|
bool | SetRenderTargets (Uint32 NumRenderTargets, ITextureView *ppRenderTargets[], ITextureView *pDepthStencil, Uint32 Dummy=0) |
| Caches the render target and depth stencil views. Returns true if any view is different from the cached value and false otherwise.
|
|
void | SetSwapChain (ISwapChain *pSwapChain) |
| Sets the strong pointer to the swap chain.
|
|
ISwapChain * | GetSwapChain () |
| Returns the swap chain.
|
|
bool | IsDefaultFBBound () |
| Returns true if currently bound frame buffer is the default frame buffer.
|
|
void | GetPipelineState (IPipelineState **ppPSO, float *BlendFactors, Uint32 &StencilRef) |
| Returns currently bound pipeline state and blend factors.
|
|
void | GetRenderTargets (Uint32 &NumRenderTargets, ITextureView **ppRTVs, ITextureView **ppDSV) |
| Returns currently bound render targets.
|
|
void | GetViewports (Uint32 &NumViewports, Viewport *pViewports) |
| Returns currently set viewports.
|
|
IRenderDevice * | GetDevice () |
| Returns the render device.
|
|
template<typename BaseInterface>
class Diligent::DeviceContextBase< BaseInterface >
Base implementation of the device context.
- Template Parameters
-
BaseInterface | - base interface that this class will inheret. |