Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::ContextD3D11 Struct Reference
Inheritance diagram for Cogs::ContextD3D11:
Cogs::ContextCommon Cogs::IContext

Public Member Functions

void initialize (GraphicsDeviceD3D11 *graphicsDevice, BuffersD3D11 *buffers, TexturesD3D11 *textures, EffectsD3D11 *effects, RenderTargetsD3D11 *renderTargets, SyncObjectsD3D11 *sync)
 
void setDefaults ()
 
void pushCommandGroupAnnotation (const StringView &name) override
 Begin to tag a sequence of commands as a group in graphics debugger.
 
void popCommandGroupAnnotation () override
 End to tag a sequence of commands as a group in graphics debugger.
 
void setAnnotationMarker (const StringView &name) override
 Add a tag in the sequence of commands in graphics debugger.
 
void setEffect (EffectHandle handle)
 Set the current effect.
 
void signal (FenceHandle fenceHandle) override
 Insert a fence in the command stream that will signal when all commands before the fence are completed.
 
void beginRenderPass (const RenderPassInfo &info) override
 Begin a render pass.
 
void endRenderPass () override
 End a render pass.
 
void setRenderTarget (const RenderTargetHandle handle, const DepthStencilHandle depthStencilHandle) override
 Sets the current render target and an associated depth stencil target.
 
void setViewport (const float x, const float y, const float width, const float height)
 Sets the current viewport to the given location and dimensions.
 
void setScissor (const int x, const int y, const int width, const int height)
 Sets the current scissor rectangle.
 
void clearRenderTarget (const float *value)
 Clear the currently set render target to the given value (4 component floating point RGBA).
 
void clearRenderTarget (const float **values, const int numValue)
 Clear the currently set render target, setting the individual render target views to the given values (4 component floating point RGBA).
 
void clearDepth (const float depth=1.0f)
 Clear the currently set depth/stencil target to the given depth.
 
void setDepthStencilState (const DepthStencilStateHandle handle)
 Set the current depth stencil state.
 
void setRasterizerState (const RasterizerStateHandle handle)
 Set the current rasterizer state.
 
void setBlendState (const BlendStateHandle handle, const float *constant) override
 Set the current blend state.
 
void resolveResource (TextureHandle sourceTexture, TextureHandle destination)
 Resolves the given source resource target into the given destination texture.
 
void setInputLayout (const InputLayoutHandle inputLayoutHandle)
 Sets the current input layout.
 
void setVertexBuffers (const VertexBufferHandle *vertexBufferHandles, const size_t count, const uint32_t *strides, const uint32_t *offsets)
 Sets the current vertex buffers.
 
void setVertexBuffers (const VertexBufferHandle *vertexBufferHandles, const size_t count)
 Overload provided to support transitioning.
 
void setIndexBuffer (IndexBufferHandle indexBufferHandle, uint32_t stride, uint32_t offset)
 Sets the current index buffer.
 
void setConstantBuffer (const ConstantBufferBindingHandle bufferBinding, const BufferHandle bufferHandle, const uint32_t offset, const uint32_t size)
 Sets a constant buffer to the given constant buffer binding.
 
void setupConstantBuffers ()
 
void endFrame ()
 
void draw (PrimitiveType primitiveType, const size_t startVertex, const size_t numVertexes)
 Draws non-indexed, non-instanced primitives.
 
void drawIndexed (PrimitiveType primitiveType, const size_t startIndex, const size_t numIndexes, const size_t startVertex=0)
 Draws indexed, non-instanced primitives.
 
void drawInstanced (PrimitiveType primitiveType, const size_t startVertex, const size_t numVertexes, const size_t startInstance, const size_t numInstances)
 Draws non-indexed, instanced primitives.
 
void drawInstancedIndexed (PrimitiveType primitiveType, const size_t startInstance, const size_t numInstances, const size_t startIndex, const size_t numIndexes)
 Draws indexed, instanced primitives.
 
void dispatchCompute (const unsigned int threadGroupsX, const unsigned int threadGroupsY, const unsigned int threadGroupsZ)
 Dispatch computing work on the graphics device using the desired thread group count.
 
void readDepthBuffer (BufferHandle bufferHandle, int x, int y, int width, int height, Framebuffer framebuffer)
 Reads data from the current depth target into the given bufferHandle.
 
void readColorBuffer (BufferHandle bufferHandle, int x, int y, int width, int height, Framebuffer framebuffer)
 Reads data from the current render target into the given bufferHandle.
 
void * map (BufferHandle bufferHandle, MapMode::EMapMode accessMode, uint32_t *stride)
 Maps the given buffer so it can be accessed.
 
void unmap (BufferHandle bufferHandle)
 Unmaps the given buffer, applying any synchronization necessary to reflect changes in the mapped memory.
 
void * map (TextureHandle textureHandle, MapMode::EMapMode accessMode, uint32_t *rowPitch, uint32_t *depthPitch) override
 Create host mapping of a staging texture.
 
void unmap (TextureHandle textureHandle) override
 Release a host mapping of a staging texture.
 
void updateSubTexture (TextureHandle textureHandle, const size_t level, const void *data)
 Update the data of a level in the given texture.
 
void updateSubBuffer (BufferHandle bufferHandle, const size_t offset, const size_t size, const void *data) override
 Update a region of data in a buffer.
 
void copyResource (BufferHandle destinationHandle, BufferHandle sourceHandle)
 
void copyResource (TextureHandle destinationHandle, TextureHandle sourceHandle)
 
void copyTexture (TextureHandle dstHandle, unsigned dstSub, unsigned dstX, unsigned dstY, unsigned dstZ, TextureHandle sourceHandle, unsigned srcSub) override
 
void clearResource (BufferHandle destinationHandle, uint32_t *Values)
 
void clearResource (BufferHandle destinationHandle, float *Values)
 
void setTexture (const TextureBindingHandle textureBindingHandle, const TextureHandle textureHandle)
 Sets the texture given to the binding given by textureBindingHandle.
 
void setTexture (const TextureBindingHandle textureBindingHandle, TextureViewHandle textureViewHandle) override
 
void setSamplerState (const SamplerStateBindingHandle samplerStateBindingHandle, const SamplerStateHandle samplerStateHandle)
 Sets the sampler state binding given to the given sampler state.
 
void setBuffer (const BufferBindingHandle bufferBindingHandle, BufferHandle bufferHandle)
 Sets a buffer to bind to the given binding.
 
void setBufferCounter (BufferHandle bufferHandle, uint32_t value)
 Set the associated counter of a buffer.
 
void setBufferCounter (BufferHandle bufferHandle, BufferHandle sourceBufferHandle)
 Set the associated counter of a buffer.
 
void getBufferCounter (BufferHandle bufferHandle, BufferHandle destinationBufferHandle)
 Get the associated counter of a buffer.
 
void setShaderResources (uint32_t *slots, ID3D11ShaderResourceView *const *ppShaderResourceViews)
 
uint32_t getBufferCounter (BufferHandle bufferHandle)
 Get the associated counter of a buffer.
 
void setDevice (ResourcePointer< ID3D11Device > &device, ResourcePointer< ID3D11Device1 > &device1)
 
void resetSRVBindings ()
 
void updateRenderTargets ()
 
InputAssemblerStateCommongetIAState () override
 
EffectHandle getCurrentEffect () override
 
IEffectsgetEffects () override
 
- Public Member Functions inherited from Cogs::ContextCommon
virtual InputAssemblerStateCommongetIAState ()=0
 
virtual EffectHandle getCurrentEffect ()=0
 
virtual IEffectsgetEffects ()=0
 
const Cogs::FrameStatisticsgetLastFrameStatistics () override
 
const Cogs::UploadStatisticsgetLastUploadStatistics () override
 
void frameStatisticsConfigure (bool enable) override
 
void setConstantBuffer (const StringView &name, const BufferHandle bufferHandle, const uint32_t offset, const uint32_t size) final
 Sets a constant buffer to be bound to the given name and slot.
 
void setBuffer (const StringView &name, BufferHandle bufferHandle) final
 Sets the given buffer to the buffer binding slot with the given name.
 
void setTexture (const StringView &name, unsigned int unit, TextureHandle textureHandle) final
 Sets the texture slot given by unit with the given name to contain the given texture.
 
void setTexture (const StringView &name, TextureViewHandle textureViewHandle) final
 
void setSamplerState (const StringView &name, unsigned int unit, SamplerStateHandle handle) final
 Sets the sampler slot given by unit with the given name to contain the given sampler state.
 
void setVertexArrayObject (VertexArrayObjectHandle vertexArrayObject) override
 
virtual void signal (FenceHandle) override
 Insert a fence in the command stream that will signal when all commands before the fence are completed.
 
void updateBuffer (BufferHandle bufferHandle, const void *data, size_t size) override
 Replace contents of buffer with new data.
 
void frameStatisticsBeginFrame ()
 
virtual void setConstantBuffer (const StringView &name, const BufferHandle bufferHandle, const uint32_t offset=0, const uint32_t size=~0u)=0
 Sets a constant buffer to be bound to the given name and slot.
 
virtual void setConstantBuffer (const ConstantBufferBindingHandle bufferBindingHandle, const BufferHandle bufferHandle, const uint32_t offset=0, const uint32_t size=~0u)=0
 Sets a constant buffer to the given constant buffer binding.
 
virtual void setBuffer (const StringView &name, BufferHandle bufferHandle)=0
 Sets the given buffer to the buffer binding slot with the given name.
 
virtual void setBuffer (const BufferBindingHandle bufferBindingHandle, BufferHandle bufferHandle)=0
 Sets a buffer to bind to the given binding.
 
virtual void setTexture (const StringView &name, unsigned int unit, TextureHandle textureHandle)=0
 Sets the texture slot given by unit with the given name to contain the given texture.
 
virtual void setTexture (const TextureBindingHandle textureBindingHandle, const TextureHandle textureHandle)=0
 Sets the texture given to the binding given by textureBindingHandle.
 
virtual void setTexture (const StringView &name, TextureViewHandle textureViewHandle)=0
 
virtual void setTexture (const TextureBindingHandle textureBindingHandle, TextureViewHandle textureViewHandle)=0
 
virtual void setSamplerState (const StringView &name, unsigned int unit, SamplerStateHandle samplerStateHandle)=0
 Sets the sampler slot given by unit with the given name to contain the given sampler state.
 
virtual void setSamplerState (const SamplerStateBindingHandle samplerStateBindingHandle, const SamplerStateHandle samplerStateHandle)=0
 Sets the sampler state binding given to the given sampler state.
 
- Public Member Functions inherited from Cogs::IContext
virtual const Cogs::FrameStatisticsgetLastFrameStatistics ()=0
 
virtual const Cogs::UploadStatisticsgetLastUploadStatistics ()=0
 
virtual void frameStatisticsConfigure (bool enable)=0
 
virtual void clearCachedState ()
 Prepare context for external manipulation of graphics device.
 
virtual void pushCommandGroupAnnotation (const StringView &name)
 Begin to tag a sequence of commands as a group in graphics debugger.
 
virtual void popCommandGroupAnnotation ()
 End to tag a sequence of commands as a group in graphics debugger.
 
virtual void setAnnotationMarker (const StringView &name)
 Add a tag in the sequence of commands in graphics debugger.
 
virtual void beginRenderPass (const RenderPassInfo &info)=0
 Begin a render pass.
 
virtual void endRenderPass ()=0
 End a render pass.
 
virtual void setRenderTarget (const RenderTargetHandle handle, const DepthStencilHandle depthStencilHandle)=0
 Sets the current render target and an associated depth stencil target.
 
virtual void setViewport (const float x, const float y, const float width, const float height)=0
 Sets the current viewport to the given location and dimensions.
 
virtual void setScissor (const int x, const int y, const int width, const int height)=0
 Sets the current scissor rectangle.
 
virtual void clearRenderTarget (const float *value)=0
 Clear the currently set render target to the given value (4 component floating point RGBA).
 
virtual void clearRenderTarget (const float **values, const int numvalues)=0
 Clear the currently set render target, setting the individual render target views to the given values (4 component floating point RGBA).
 
virtual void clearDepth (const float depth=1.0f)=0
 Clear the currently set depth/stencil target to the given depth.
 
virtual void setDepthStencilState (const DepthStencilStateHandle handle)=0
 Set the current depth stencil state.
 
virtual void setBlendState (const BlendStateHandle handle, const float *constant=nullptr)=0
 Set the current blend state.
 
virtual void setRasterizerState (const RasterizerStateHandle handle)=0
 Set the current rasterizer state.
 
virtual void setEffect (EffectHandle handle)=0
 Set the current effect.
 
virtual void setTexture (const StringView &name, unsigned int unit, TextureHandle textureHandle)=0
 Sets the texture slot given by unit with the given name to contain the given texture.
 
virtual void setTexture (const TextureBindingHandle textureBindingHandle, const TextureHandle textureHandle)=0
 Sets the texture given to the binding given by textureBindingHandle.
 
virtual void setTexture (const StringView &name, TextureViewHandle textureViewHandle)=0
 
virtual void setTexture (const TextureBindingHandle textureBindingHandle, TextureViewHandle textureViewHandle)=0
 
virtual void setSamplerState (const StringView &name, unsigned int unit, SamplerStateHandle samplerStateHandle)=0
 Sets the sampler slot given by unit with the given name to contain the given sampler state.
 
virtual void setSamplerState (const SamplerStateBindingHandle samplerStateBindingHandle, const SamplerStateHandle samplerStateHandle)=0
 Sets the sampler state binding given to the given sampler state.
 
virtual void setInputLayout (const InputLayoutHandle inputLayoutHandle)=0
 Sets the current input layout.
 
virtual void setVertexBuffers (const VertexBufferHandle *vertexBufferHandles, const size_t count, const uint32_t *strides, const uint32_t *offsets)=0
 Sets the current vertex buffers.
 
virtual void setVertexBuffers (const VertexBufferHandle *vertexBufferHandles, const size_t count)=0
 Overload provided to support transitioning.
 
virtual void setIndexBuffer (IndexBufferHandle bufferHandle, uint32_t stride=4, uint32_t offset=0)=0
 Sets the current index buffer.
 
virtual void setVertexArrayObject (VertexArrayObjectHandle vertexArrayObject)=0
 Sets vertexBuffers and index buffers using a prevalidated vertex array object.
 
virtual void setConstantBuffer (const StringView &name, const BufferHandle bufferHandle, const uint32_t offset=0, const uint32_t size=~0u)=0
 Sets a constant buffer to be bound to the given name and slot.
 
virtual void setConstantBuffer (const ConstantBufferBindingHandle bufferBindingHandle, const BufferHandle bufferHandle, const uint32_t offset=0, const uint32_t size=~0u)=0
 Sets a constant buffer to the given constant buffer binding.
 
virtual void setBuffer (const StringView &name, BufferHandle bufferHandle)=0
 Sets the given buffer to the buffer binding slot with the given name.
 
virtual void setBuffer (const BufferBindingHandle bufferBindingHandle, BufferHandle bufferHandle)=0
 Sets a buffer to bind to the given binding.
 
virtual void setBufferCounter (BufferHandle bufferHandle, uint32_t value)=0
 Set the associated counter of a buffer.
 
virtual void setBufferCounter (BufferHandle bufferHandle, BufferHandle sourceBufferHandle)=0
 Set the associated counter of a buffer.
 
virtual void getBufferCounter (BufferHandle bufferHandle, BufferHandle destinationBufferHandle)=0
 Get the associated counter of a buffer.
 
virtual uint32_t getBufferCounter (BufferHandle bufferHandle)=0
 Get the associated counter of a buffer.
 
virtual void draw (PrimitiveType primitiveType, const size_t startVertex, const size_t numVertexes)=0
 Draws non-indexed, non-instanced primitives.
 
virtual void drawIndexed (PrimitiveType primitiveType, const size_t startIndex, const size_t numIndexes, const size_t startVertex=0)=0
 Draws indexed, non-instanced primitives.
 
virtual void drawInstanced (PrimitiveType primitiveType, const size_t startVertex, const size_t numVertexes, const size_t startInstance, const size_t numInstances)=0
 Draws non-indexed, instanced primitives.
 
virtual void drawInstancedIndexed (PrimitiveType primitiveType, const size_t startInstance, const size_t numInstances, const size_t startIndex, const size_t numIndexes)=0
 Draws indexed, instanced primitives.
 
virtual void dispatchCompute (const unsigned int threadGroupsX, const unsigned int threadGroupsY, const unsigned int threadGroupsZ)=0
 Dispatch computing work on the graphics device using the desired thread group count.
 
virtual void resolveResource (TextureHandle source, TextureHandle destination)=0
 Resolves the given source resource target into the given destination texture.
 
virtual void readDepthBuffer (BufferHandle bufferHandle, int x, int y, int width, int height, Framebuffer framebuffer)=0
 Reads data from the current depth target into the given bufferHandle.
 
virtual void readColorBuffer (BufferHandle bufferHandle, int x, int y, int width, int height, Framebuffer framebuffer)=0
 Reads data from the current render target into the given bufferHandle.
 
virtual void * map (BufferHandle bufferHandle, MapMode::EMapMode mapMode, uint32_t *stride=nullptr)=0
 Maps the given buffer so it can be accessed.
 
virtual void unmap (BufferHandle bufferHandle)=0
 Unmaps the given buffer, applying any synchronization necessary to reflect changes in the mapped memory.
 
virtual void updateBuffer (BufferHandle bufferHandle, const void *data, size_t size)=0
 Replace contents of buffer with new data.
 
virtual void * map (TextureHandle textureHandle, MapMode::EMapMode accessMode, uint32_t *rowPitch, uint32_t *depthPitch)=0
 Create host mapping of a staging texture.
 
virtual void unmap (TextureHandle textureHandle)=0
 Release a host mapping of a staging texture.
 
virtual void signal (FenceHandle fenceHandle)=0
 Insert a fence in the command stream that will signal when all commands before the fence are completed.
 
virtual void updateSubTexture (TextureHandle textureHandle, const size_t level, const void *data)=0
 Update the data of a level in the given texture.
 
virtual void updateSubBuffer (BufferHandle bufferHandle, const size_t offset, const size_t size, const void *data)=0
 Update a region of data in a buffer.
 
virtual void copyResource (BufferHandle destinationHandle, BufferHandle sourceHandle)=0
 
virtual void copyResource (TextureHandle destinationHandle, TextureHandle sourceHandle)=0
 
virtual void copyTexture (TextureHandle dstHandle, unsigned dstSub, unsigned dstX, unsigned dstY, unsigned dstZ, TextureHandle sourceHandle, unsigned srcSub)=0
 
virtual void clearResource (BufferHandle destinationHandle, uint32_t *Values)=0
 
virtual void clearResource (BufferHandle destinationHandle, float *Values)=0
 
virtual void reset ()
 Resets all state changes made to the GPU since the last call to beginFrame.
 

Public Attributes

EffectHandle currentEffect
 
bool isCompute
 
ResourcePointer< ID3D11Device > device
 
ResourcePointer< ID3D11Device1 > device1
 
ResourcePointer< ID3D11DeviceContext > immediateContext
 
ResourcePointer< ID3D11DeviceContext1 > immediateContext1
 
ResourcePointer< ID3D11DeviceContext4 > immediateContext4
 
ResourcePointer< ID3DUserDefinedAnnotation > annotationInterface
 
InputAssemblerStateD3D11 iaState
 
ID3D11UnorderedAccessView * uavs [D3D11_PS_CS_UAV_REGISTER_COUNT] = {}
 
uint32_t uavCounts [16] = {}
 
uint32_t minUavSlot = ~0u
 
uint32_t maxUavSlot = 0
 
bool uavDirty = false
 
GraphicsDeviceD3D11graphicsDevice = nullptr
 
BuffersD3D11buffers = nullptr
 
TexturesD3D11textures = nullptr
 
EffectsD3D11effects = nullptr
 
RenderTargetsD3D11renderTargets = nullptr
 
SyncObjectsD3D11syncObjects = nullptr
 
DepthStencilStateHandle defaultDepthStencilState
 
RasterizerStateHandle defaultRasterizerState
 
BlendStateHandle defaultBlendState
 
SamplerStateHandle defaultSamplerState
 
bool inRenderPass = false
 
RenderPassInfo renderPassInfo = {}
 
RenderTargetHandle currentRenderTarget
 
DepthStencilHandle currentDepthStencil
 
InputLayoutHandle currentInputLayout
 

Additional Inherited Members

- Protected Member Functions inherited from Cogs::ContextCommon
void setCurrentEffect (Effect *currentEffect)
 
void updateConstantBuffers ()
 
void frameStatisticsAccountDrawCall (size_t count, bool indexed)
 
void uploadStatisticsBufferUpload (size_t size)
 
void uploadStatisticsTextureUpload (size_t size)
 
- Protected Attributes inherited from Cogs::ContextCommon
FrameStatistics prevStats {}
 
FrameStatistics currStats {}
 
UploadStatistics prevUploadStats {}
 
UploadStatistics currUploadStats {}
 
struct Cogs::ContextCommon::TrackedState state
 
Effecteffect = nullptr
 
bool constantBuffersUpdated = true
 
bool frameStatisticsEnabled = false
 
bool uploadStatisticsEnabled = true
 

Detailed Description

Definition at line 25 of file ContextD3D11.h.

Constructor & Destructor Documentation

◆ ContextD3D11()

Cogs::ContextD3D11::ContextD3D11 ( )

Definition at line 51 of file ContextD3D11.cpp.

◆ ~ContextD3D11()

Cogs::ContextD3D11::~ContextD3D11 ( )

Definition at line 63 of file ContextD3D11.cpp.

Member Function Documentation

◆ beginRenderPass()

void Cogs::ContextD3D11::beginRenderPass ( const RenderPassInfo info)
overridevirtual

Begin a render pass.

Render passes encapsulate binding render targets, multisample resolve and load and store operations.

While in a render pass do NOT use setRenderTarget(), clearRenderTarget(), clearDepth().

Check GraphicsDeviceCapabilities::RenderPass for support.

Implements Cogs::IContext.

Definition at line 501 of file ContextD3D11.cpp.

◆ clearDepth()

void Cogs::ContextD3D11::clearDepth ( const float  depth = 1.0f)
virtual

Clear the currently set depth/stencil target to the given depth.

Implements Cogs::IContext.

Definition at line 594 of file ContextD3D11.cpp.

◆ clearRenderTarget() [1/2]

void Cogs::ContextD3D11::clearRenderTarget ( const float **  values,
const int  numvalues 
)
virtual

Clear the currently set render target, setting the individual render target views to the given values (4 component floating point RGBA).

Implements Cogs::IContext.

Definition at line 583 of file ContextD3D11.cpp.

◆ clearRenderTarget() [2/2]

void Cogs::ContextD3D11::clearRenderTarget ( const float *  value)
virtual

Clear the currently set render target to the given value (4 component floating point RGBA).

If the render target has less than 4 components, only the first n components need to be intended values.

Implements Cogs::IContext.

Definition at line 578 of file ContextD3D11.cpp.

◆ clearResource() [1/2]

void Cogs::ContextD3D11::clearResource ( BufferHandle  destinationHandle,
float *  Values 
)
virtual

Implements Cogs::IContext.

Definition at line 1063 of file ContextD3D11.cpp.

◆ clearResource() [2/2]

void Cogs::ContextD3D11::clearResource ( BufferHandle  destinationHandle,
uint32_t *  Values 
)
virtual

Implements Cogs::IContext.

Definition at line 1057 of file ContextD3D11.cpp.

◆ copyResource() [1/2]

void Cogs::ContextD3D11::copyResource ( BufferHandle  destinationHandle,
BufferHandle  sourceHandle 
)
virtual

Implements Cogs::IContext.

Definition at line 1032 of file ContextD3D11.cpp.

◆ copyResource() [2/2]

void Cogs::ContextD3D11::copyResource ( TextureHandle  destinationHandle,
TextureHandle  sourceHandle 
)
virtual

Implements Cogs::IContext.

Definition at line 1040 of file ContextD3D11.cpp.

◆ copyTexture()

void Cogs::ContextD3D11::copyTexture ( TextureHandle  dstHandle,
unsigned  dstSub,
unsigned  dstX,
unsigned  dstY,
unsigned  dstZ,
TextureHandle  sourceHandle,
unsigned  srcSub 
)
overridevirtual

Implements Cogs::IContext.

Definition at line 1048 of file ContextD3D11.cpp.

◆ dispatchCompute()

void Cogs::ContextD3D11::dispatchCompute ( const unsigned int  threadGroupsX,
const unsigned int  threadGroupsY,
const unsigned int  threadGroupsZ 
)
virtual

Dispatch computing work on the graphics device using the desired thread group count.

Parameters
threadGroupsXNumber of work groups spawned in the X dimension.
threadGroupsYNumber of work groups spawned in the Y dimension.
threadGroupsZNumber of work groups spawned in the Z dimension.

Implements Cogs::IContext.

Definition at line 1358 of file ContextD3D11.cpp.

◆ draw()

void Cogs::ContextD3D11::draw ( PrimitiveType  primitiveType,
const size_t  startVertex,
const size_t  numVertexes 
)
virtual

Draws non-indexed, non-instanced primitives.

Parameters
primitiveTypePrimitive type to assemble from the bound vertex buffers.
startVertexIndex of the first vertex in the bound vertex buffers to start at when drawing.
numVertexesNumber of vertexes to draw.

Implements Cogs::IContext.

Definition at line 431 of file ContextD3D11.cpp.

◆ drawIndexed()

void Cogs::ContextD3D11::drawIndexed ( PrimitiveType  primitiveType,
const size_t  startIndex,
const size_t  numIndexes,
const size_t  startVertex = 0 
)
virtual

Draws indexed, non-instanced primitives.

Parameters
primitiveTypePrimitive type to assemble from the bound vertex buffers.
startIndexIndex of the first item in the index buffer to start at when drawing.
numIndexesNumber of indexes to draw.
startVertexIndex of the base vertex in the vertex buffer to index from.

Implements Cogs::IContext.

Definition at line 449 of file ContextD3D11.cpp.

◆ drawInstanced()

void Cogs::ContextD3D11::drawInstanced ( PrimitiveType  primitiveType,
const size_t  startVertex,
const size_t  numVertexes,
const size_t  startInstance,
const size_t  numInstances 
)
virtual

Draws non-indexed, instanced primitives.

Parameters
primitiveTypePrimitive type to assemble from the bound vertex buffers.
startVertexIndex of the first vertex in the bound vertex buffers to start at when drawing each instance.
numVertexesNumber of vertexes to draw per instance.
startInstanceIndex of the first instance to start drawing at.
numInstancesNumber of instances to draw.

Implements Cogs::IContext.

Definition at line 703 of file ContextD3D11.cpp.

◆ drawInstancedIndexed()

void Cogs::ContextD3D11::drawInstancedIndexed ( PrimitiveType  primitiveType,
const size_t  startInstance,
const size_t  numInstances,
const size_t  startIndex,
const size_t  numIndexes 
)
virtual

Draws indexed, instanced primitives.

Parameters
primitiveTypePrimitive type to assemble from the bound vertex buffers.
startInstanceIndex of the first instance to start drawing at.
numInstancesNumber of instances to draw.
startIndexIndex of the first item in the index buffer to start at when drawing each instance.
numIndexesNumber of indexes to draw per instance.

Implements Cogs::IContext.

Definition at line 720 of file ContextD3D11.cpp.

◆ endFrame()

void Cogs::ContextD3D11::endFrame ( )

Definition at line 553 of file ContextD3D11.cpp.

◆ endRenderPass()

void Cogs::ContextD3D11::endRenderPass ( )
overridevirtual

End a render pass.

Implements Cogs::IContext.

Definition at line 520 of file ContextD3D11.cpp.

◆ getBufferCounter() [1/2]

uint32_t Cogs::ContextD3D11::getBufferCounter ( BufferHandle  bufferHandle)
virtual

Get the associated counter of a buffer.

Returns
The value of the counter.

Implements Cogs::IContext.

Definition at line 1243 of file ContextD3D11.cpp.

References Cogs::Usage::Dynamic, Cogs::BindFlags::None, and Cogs::AccessMode::Read.

◆ getBufferCounter() [2/2]

void Cogs::ContextD3D11::getBufferCounter ( BufferHandle  bufferHandle,
BufferHandle  destinationBufferHandle 
)
virtual

Get the associated counter of a buffer.

Parameters
bufferHandleHandle to the buffer to get the counter from. This buffer must have been created with the StructuredBufferWithCounter bind flag.
destinationBufferHandleHandle to a buffer to copy the counter value to.

Implements Cogs::IContext.

Definition at line 1235 of file ContextD3D11.cpp.

◆ getCurrentEffect()

EffectHandle Cogs::ContextD3D11::getCurrentEffect ( )
inlineoverridevirtual

Implements Cogs::ContextCommon.

Definition at line 128 of file ContextD3D11.h.

◆ getEffects()

IEffects * Cogs::ContextD3D11::getEffects ( )
inlineoverridevirtual

Implements Cogs::ContextCommon.

Definition at line 129 of file ContextD3D11.h.

◆ getIAState()

InputAssemblerStateCommon * Cogs::ContextD3D11::getIAState ( )
inlineoverridevirtual

Implements Cogs::ContextCommon.

Definition at line 127 of file ContextD3D11.h.

◆ initialize()

void Cogs::ContextD3D11::initialize ( GraphicsDeviceD3D11 graphicsDevice,
BuffersD3D11 buffers,
TexturesD3D11 textures,
EffectsD3D11 effects,
RenderTargetsD3D11 renderTargets,
SyncObjectsD3D11 sync 
)

Definition at line 71 of file ContextD3D11.cpp.

◆ map() [1/2]

void * Cogs::ContextD3D11::map ( BufferHandle  bufferHandle,
MapMode::EMapMode  mapMode,
uint32_t *  stride 
)
virtual

Maps the given buffer so it can be accessed.

Parameters
bufferHandleValid handle to a buffer containing data to be read.
mapModeMapping mode to apply when mapping the buffer.
strideOptional pointer to a stride value. Must be set for aliased buffer texture resources.
Returns
A pointer to the memory mapped from the buffer. If the operation failed, returns nullptr.
See also
MapMode

Implements Cogs::IContext.

Definition at line 921 of file ContextD3D11.cpp.

References Cogs::MapMode::Read.

◆ map() [2/2]

void * Cogs::ContextD3D11::map ( TextureHandle  textureHandle,
MapMode::EMapMode  accessMode,
uint32_t *  rowPitch,
uint32_t *  depthPitch 
)
overridevirtual

Create host mapping of a staging texture.

Parameters
textureHandleStaging texture.
accessModeMapMode::Write (requires TextureFlags::UsageWriteStaging) or MapMode::Read (requires TextureFlags::UsageReadStaging).
[out]rowPitchNumber of bytes between successive rows in the mapping.
[out]depthPitchNumber of bytes between successive slices in the mapping.
Returns
A pointer to the start of the memory range of the mapping.
See also
unmap

Implements Cogs::IContext.

Definition at line 960 of file ContextD3D11.cpp.

◆ popCommandGroupAnnotation()

void Cogs::ContextD3D11::popCommandGroupAnnotation ( )
overridevirtual

End to tag a sequence of commands as a group in graphics debugger.

Reimplemented from Cogs::IContext.

Definition at line 185 of file ContextD3D11.cpp.

◆ pushCommandGroupAnnotation()

void Cogs::ContextD3D11::pushCommandGroupAnnotation ( const StringView name)
overridevirtual

Begin to tag a sequence of commands as a group in graphics debugger.

Groups can be strictly nested, and a push must always be paired with a pop.

Reimplemented from Cogs::IContext.

Definition at line 172 of file ContextD3D11.cpp.

References Cogs::StringView::begin(), and Cogs::StringView::end().

◆ readColorBuffer()

void Cogs::ContextD3D11::readColorBuffer ( BufferHandle  bufferHandle,
int  x,
int  y,
int  width,
int  height,
Framebuffer  framebuffer 
)
virtual

Reads data from the current render target into the given bufferHandle.

Parameters
bufferHandleBuffer to read the data into. Must be at least of size (width * height * sizeof(ColorFormat)).
xAddress of the first pixel on the x-axis to read from.
yAddress of the first pixel on the y-axis to read from.
widthWidth of the data to read in pixels.
heightHeight of the data to read in pixels.
framebufferFrame buffer to read from. Applicable when e.g reading from the default double-buffered render target.

Implements Cogs::IContext.

Definition at line 844 of file ContextD3D11.cpp.

References Cogs::EnableTraceLogging.

◆ readDepthBuffer()

void Cogs::ContextD3D11::readDepthBuffer ( BufferHandle  bufferHandle,
int  x,
int  y,
int  width,
int  height,
Framebuffer  framebuffer 
)
virtual

Reads data from the current depth target into the given bufferHandle.

Parameters
bufferHandleBuffer to read the data into. Must be at least of size (width * height * sizeof(DepthFormat)).
xAddress of the first pixel on the x-axis to read from.
yAddress of the first pixel on the y-axis to read from.
widthWidth of the data to read in pixels.
heightHeight of the data to read in pixels.
framebufferFrame buffer to read from. Applicable when e.g reading from the default double-buffered depth target.

Implements Cogs::IContext.

Definition at line 739 of file ContextD3D11.cpp.

References Cogs::EnableTraceLogging.

◆ resetSRVBindings()

void Cogs::ContextD3D11::resetSRVBindings ( )

Definition at line 1254 of file ContextD3D11.cpp.

◆ resolveResource()

void Cogs::ContextD3D11::resolveResource ( TextureHandle  source,
TextureHandle  destination 
)
virtual

Resolves the given source resource target into the given destination texture.

The source texture is assumed to be a multisample format handled by the GPU internally. This method can be used to resolve such a texture so that it may later be used as a regular texture data (multisampled textures cannot be read by standard samplers).

If using multisample samplers in shaders, this step is not necessary to perform.

Implements Cogs::IContext.

Definition at line 693 of file ContextD3D11.cpp.

References Cogs::Direct3D11::Formats.

◆ setAnnotationMarker()

void Cogs::ContextD3D11::setAnnotationMarker ( const StringView name)
overridevirtual

Add a tag in the sequence of commands in graphics debugger.

Reimplemented from Cogs::IContext.

Definition at line 194 of file ContextD3D11.cpp.

References Cogs::StringView::begin(), and Cogs::StringView::end().

◆ setBlendState()

void Cogs::ContextD3D11::setBlendState ( const BlendStateHandle  handle,
const float *  constant 
)
overridevirtual

Set the current blend state.

Implements Cogs::IContext.

Definition at line 481 of file ContextD3D11.cpp.

References Cogs::Handle_t< struct BlendState >::NoHandle.

◆ setBuffer()

void Cogs::ContextD3D11::setBuffer ( const BufferBindingHandle  bufferBindingHandle,
BufferHandle  bufferHandle 
)
virtual

Sets a buffer to bind to the given binding.

Parameters
bufferBindingHandleHandle to a buffer binding.
bufferHandleHandle to a buffer to set.

Implements Cogs::IContext.

Definition at line 1172 of file ContextD3D11.cpp.

◆ setBufferCounter() [1/2]

void Cogs::ContextD3D11::setBufferCounter ( BufferHandle  bufferHandle,
BufferHandle  sourceBufferHandle 
)
virtual

Set the associated counter of a buffer.

Parameters
bufferHandleHandle to the buffer to set the counter for. This buffer must have been created with the StructuredBufferWithCounter bind flag.
sourceBufferHandleHandle to a buffer to copy the counter value from.

Implements Cogs::IContext.

Definition at line 1230 of file ContextD3D11.cpp.

◆ setBufferCounter() [2/2]

void Cogs::ContextD3D11::setBufferCounter ( BufferHandle  bufferHandle,
uint32_t  value 
)
virtual

Set the associated counter of a buffer.

Parameters
bufferHandleHandle to the buffer to set the counter for. This buffer must have been created with the StructuredBufferWithCounter bind flag.
valueThe new value of the counter.

Implements Cogs::IContext.

Definition at line 1223 of file ContextD3D11.cpp.

◆ setConstantBuffer()

void Cogs::ContextD3D11::setConstantBuffer ( const ConstantBufferBindingHandle  bufferBindingHandle,
const BufferHandle  bufferHandle,
const uint32_t  offset,
const uint32_t  size 
)
virtual

Sets a constant buffer to the given constant buffer binding.

Parameters
bufferBindingHandleValid handle to a buffer binding previously created.
bufferHandleHandle to a buffer created with the BindFlags::ConstantBuffer flag, or NoHandle to remove any existing buffer from the binding.
See also
IEffects::getConstantBufferBinding

Implements Cogs::IContext.

Definition at line 267 of file ContextD3D11.cpp.

References Cogs::Handle_t< Type, Convertible >::handle.

◆ setDefaults()

void Cogs::ContextD3D11::setDefaults ( )

Definition at line 126 of file ContextD3D11.cpp.

◆ setDepthStencilState()

void Cogs::ContextD3D11::setDepthStencilState ( const DepthStencilStateHandle  handle)
virtual

Set the current depth stencil state.

Implements Cogs::IContext.

Definition at line 491 of file ContextD3D11.cpp.

References Cogs::Handle_t< struct DepthStencilState >::NoHandle.

◆ setDevice()

void Cogs::ContextD3D11::setDevice ( ResourcePointer< ID3D11Device > &  device,
ResourcePointer< ID3D11Device1 > &  device1 
)

Definition at line 105 of file ContextD3D11.cpp.

◆ setEffect()

void Cogs::ContextD3D11::setEffect ( EffectHandle  handle)
virtual

Set the current effect.

This sets up all shader stages included in the effect (e.g if the effect contains VS and PS shaders both the VS stage and PS stage is set up.

Implements Cogs::IContext.

Definition at line 601 of file ContextD3D11.cpp.

References Cogs::Handle_t< InputLayoutTag >::NoHandle.

◆ setIndexBuffer()

void Cogs::ContextD3D11::setIndexBuffer ( IndexBufferHandle  bufferHandle,
uint32_t  stride,
uint32_t  offset 
)
virtual

Sets the current index buffer.

Parameters
bufferHandleValid handle to an index buffer.
strideByte stride of the index data. Currently only supports 2 and 4. Setting stride to zero defaults to the buffers natural stride, if any. If no natural stride is set, no buffer will be bound.
offsetOffset in bytes from the start of the buffer to the first index to use.

Implements Cogs::IContext.

Definition at line 244 of file ContextD3D11.cpp.

References Cogs::BindFlags::IndexBuffer.

◆ setInputLayout()

void Cogs::ContextD3D11::setInputLayout ( const InputLayoutHandle  inputLayoutHandle)
virtual

Sets the current input layout.

Parameters
inputLayoutHandleValid handle to a previously created input layout.

Implements Cogs::IContext.

Definition at line 670 of file ContextD3D11.cpp.

◆ setRasterizerState()

void Cogs::ContextD3D11::setRasterizerState ( const RasterizerStateHandle  handle)
virtual

Set the current rasterizer state.

Implements Cogs::IContext.

Definition at line 471 of file ContextD3D11.cpp.

References Cogs::Handle_t< struct RasterizerState >::NoHandle.

◆ setRenderTarget()

void Cogs::ContextD3D11::setRenderTarget ( const RenderTargetHandle  handle,
const DepthStencilHandle  depthStencilHandle 
)
overridevirtual

Sets the current render target and an associated depth stencil target.

Implements Cogs::IContext.

Definition at line 535 of file ContextD3D11.cpp.

References Cogs::SwapChainD3D11::getDepthStencil(), Cogs::SwapChainD3D11::getRenderTarget(), Cogs::Handle_t< RenderTargetTag >::NoHandle, and Cogs::Handle_t< DepthStencilTag >::NoHandle.

◆ setSamplerState()

void Cogs::ContextD3D11::setSamplerState ( const SamplerStateBindingHandle  samplerStateBindingHandle,
const SamplerStateHandle  samplerStateHandle 
)
virtual

Sets the sampler state binding given to the given sampler state.

If the sampler state is set to NoHandle the default sampler state is set for the binding.

Parameters
samplerStateBindingHandleValid handle to a previously created sampler state binding object.
samplerStateHandleHandle to a valid sampler state, or NoHandle to set the default sampler state.

Implements Cogs::IContext.

Definition at line 1145 of file ContextD3D11.cpp.

References Cogs::Handle_t< Type, Convertible >::handle.

◆ setScissor()

void Cogs::ContextD3D11::setScissor ( const int  x,
const int  y,
const int  width,
const int  height 
)
virtual

Sets the current scissor rectangle.

Only used if the current rasterizer state enabled scissor testing.

See also
RasterizerState.

Implements Cogs::IContext.

Definition at line 571 of file ContextD3D11.cpp.

◆ setShaderResources()

void Cogs::ContextD3D11::setShaderResources ( uint32_t *  slots,
ID3D11ShaderResourceView *const *  ppShaderResourceViews 
)

Definition at line 1100 of file ContextD3D11.cpp.

◆ setTexture() [1/2]

void Cogs::ContextD3D11::setTexture ( const TextureBindingHandle  textureBindingHandle,
const TextureHandle  textureHandle 
)
virtual

Sets the texture given to the binding given by textureBindingHandle.

Parameters
textureBindingHandleValid handle to a previously created texture binding.
textureHandleHandle to a texture object, or NoHandle to set the default texture to the given binding.

Implements Cogs::IContext.

Definition at line 1069 of file ContextD3D11.cpp.

References Cogs::Handle_t< Type, Convertible >::handle.

◆ setTexture() [2/2]

void Cogs::ContextD3D11::setTexture ( const TextureBindingHandle  textureBindingHandle,
TextureViewHandle  textureViewHandle 
)
overridevirtual

Implements Cogs::IContext.

Definition at line 1114 of file ContextD3D11.cpp.

◆ setupConstantBuffers()

void Cogs::ContextD3D11::setupConstantBuffers ( )

Definition at line 1311 of file ContextD3D11.cpp.

◆ setVertexBuffers() [1/2]

void Cogs::ContextD3D11::setVertexBuffers ( const VertexBufferHandle vertexBufferHandles,
const size_t  count 
)
virtual

Overload provided to support transitioning.

Only supports vertex buffers created with legacy loadVertexBuffer API.

Implements Cogs::IContext.

Definition at line 227 of file ContextD3D11.cpp.

◆ setVertexBuffers() [2/2]

void Cogs::ContextD3D11::setVertexBuffers ( const VertexBufferHandle vertexBufferHandles,
const size_t  count,
const uint32_t *  strides,
const uint32_t *  offsets 
)
virtual

Sets the current vertex buffers.

Parameters
vertexBufferHandlesPointer to an array of vertex buffer handles of size at least count.
countNumber of vertex buffers to bind.
stridesPointer to array of stride values. Must be non-null and at least of size count.
offsetsOptional pointer to array of offset values. If non-null, must be at least of size count.

Implements Cogs::IContext.

Definition at line 207 of file ContextD3D11.cpp.

◆ setViewport()

void Cogs::ContextD3D11::setViewport ( const float  x,
const float  y,
const float  width,
const float  height 
)
virtual

Sets the current viewport to the given location and dimensions.

Implements Cogs::IContext.

Definition at line 558 of file ContextD3D11.cpp.

◆ signal()

void Cogs::ContextD3D11::signal ( FenceHandle  fenceHandle)
overridevirtual

Insert a fence in the command stream that will signal when all commands before the fence are completed.

Parameters
fenceHandleThe fence to signal.

Reimplemented from Cogs::ContextCommon.

Definition at line 163 of file ContextD3D11.cpp.

◆ unmap() [1/2]

void Cogs::ContextD3D11::unmap ( BufferHandle  bufferHandle)
virtual

Unmaps the given buffer, applying any synchronization necessary to reflect changes in the mapped memory.

Parameters
bufferHandleValid handle to a buffer that is currently mapped.
See also
map

Implements Cogs::IContext.

Definition at line 949 of file ContextD3D11.cpp.

◆ unmap() [2/2]

void Cogs::ContextD3D11::unmap ( TextureHandle  textureHandle)
overridevirtual

Release a host mapping of a staging texture.

Parameters
textureHandleStaging texture that is currently mapped.

Implements Cogs::IContext.

Definition at line 975 of file ContextD3D11.cpp.

◆ updateRenderTargets()

void Cogs::ContextD3D11::updateRenderTargets ( )

Definition at line 1267 of file ContextD3D11.cpp.

◆ updateSubBuffer()

void Cogs::ContextD3D11::updateSubBuffer ( BufferHandle  bufferHandle,
const size_t  offset,
const size_t  size,
const void *  data 
)
overridevirtual

Update a region of data in a buffer.

Parameters
bufferHandleValid handle to a buffer to update data in.
offsetOffset in bytes from the start of the buffer to where the new data should be written.
sizeSize of the data given. Offset + size must be inside the allocated size of the buffer.
dataPointer to the data to store at the given offset in the buffer.
invalidateInvalidate existing buffer contents before updating buffer, i.e. no need to maintain old values.

Implements Cogs::IContext.

Definition at line 1012 of file ContextD3D11.cpp.

◆ updateSubTexture()

void Cogs::ContextD3D11::updateSubTexture ( TextureHandle  textureHandle,
const size_t  level,
const void *  data 
)
virtual

Update the data of a level in the given texture.

Parameters
textureHandleValid handle to a texture to update data in.
levelIndex of the mip level to update.
dataPointer to the data to store in the indicated mip level. Must be sized according to the dimensions, format and mip level.

Implements Cogs::IContext.

Definition at line 983 of file ContextD3D11.cpp.

References Cogs::FormatInfo::blockExtent, and Cogs::FormatInfo::blockSize.

Member Data Documentation

◆ annotationInterface

ResourcePointer<ID3DUserDefinedAnnotation> Cogs::ContextD3D11::annotationInterface

Definition at line 125 of file ContextD3D11.h.

◆ buffers

BuffersD3D11* Cogs::ContextD3D11::buffers = nullptr

Definition at line 140 of file ContextD3D11.h.

◆ currentDepthStencil

DepthStencilHandle Cogs::ContextD3D11::currentDepthStencil

Definition at line 155 of file ContextD3D11.h.

◆ currentEffect

EffectHandle Cogs::ContextD3D11::currentEffect

Definition at line 116 of file ContextD3D11.h.

◆ currentInputLayout

InputLayoutHandle Cogs::ContextD3D11::currentInputLayout

Definition at line 157 of file ContextD3D11.h.

◆ currentRenderTarget

RenderTargetHandle Cogs::ContextD3D11::currentRenderTarget

Definition at line 154 of file ContextD3D11.h.

◆ defaultBlendState

BlendStateHandle Cogs::ContextD3D11::defaultBlendState

Definition at line 148 of file ContextD3D11.h.

◆ defaultDepthStencilState

DepthStencilStateHandle Cogs::ContextD3D11::defaultDepthStencilState

Definition at line 146 of file ContextD3D11.h.

◆ defaultRasterizerState

RasterizerStateHandle Cogs::ContextD3D11::defaultRasterizerState

Definition at line 147 of file ContextD3D11.h.

◆ defaultSamplerState

SamplerStateHandle Cogs::ContextD3D11::defaultSamplerState

Definition at line 149 of file ContextD3D11.h.

◆ device

ResourcePointer<ID3D11Device> Cogs::ContextD3D11::device

Definition at line 119 of file ContextD3D11.h.

◆ device1

ResourcePointer<ID3D11Device1> Cogs::ContextD3D11::device1

Definition at line 120 of file ContextD3D11.h.

◆ effects

EffectsD3D11* Cogs::ContextD3D11::effects = nullptr

Definition at line 142 of file ContextD3D11.h.

◆ graphicsDevice

GraphicsDeviceD3D11* Cogs::ContextD3D11::graphicsDevice = nullptr

Definition at line 139 of file ContextD3D11.h.

◆ iaState

InputAssemblerStateD3D11 Cogs::ContextD3D11::iaState

Definition at line 131 of file ContextD3D11.h.

◆ immediateContext

ResourcePointer<ID3D11DeviceContext> Cogs::ContextD3D11::immediateContext

Definition at line 121 of file ContextD3D11.h.

◆ immediateContext1

ResourcePointer<ID3D11DeviceContext1> Cogs::ContextD3D11::immediateContext1

Definition at line 122 of file ContextD3D11.h.

◆ immediateContext4

ResourcePointer<ID3D11DeviceContext4> Cogs::ContextD3D11::immediateContext4

Definition at line 123 of file ContextD3D11.h.

◆ inRenderPass

bool Cogs::ContextD3D11::inRenderPass = false

Definition at line 151 of file ContextD3D11.h.

◆ isCompute

bool Cogs::ContextD3D11::isCompute

Definition at line 117 of file ContextD3D11.h.

◆ maxUavSlot

uint32_t Cogs::ContextD3D11::maxUavSlot = 0

Definition at line 136 of file ContextD3D11.h.

◆ minUavSlot

uint32_t Cogs::ContextD3D11::minUavSlot = ~0u

Definition at line 135 of file ContextD3D11.h.

◆ renderPassInfo

RenderPassInfo Cogs::ContextD3D11::renderPassInfo = {}

Definition at line 152 of file ContextD3D11.h.

◆ renderTargets

RenderTargetsD3D11* Cogs::ContextD3D11::renderTargets = nullptr

Definition at line 143 of file ContextD3D11.h.

◆ syncObjects

SyncObjectsD3D11* Cogs::ContextD3D11::syncObjects = nullptr

Definition at line 144 of file ContextD3D11.h.

◆ textures

TexturesD3D11* Cogs::ContextD3D11::textures = nullptr

Definition at line 141 of file ContextD3D11.h.

◆ uavCounts

uint32_t Cogs::ContextD3D11::uavCounts[16] = {}

Definition at line 134 of file ContextD3D11.h.

◆ uavDirty

bool Cogs::ContextD3D11::uavDirty = false

Definition at line 137 of file ContextD3D11.h.

◆ uavs

ID3D11UnorderedAccessView* Cogs::ContextD3D11::uavs[D3D11_PS_CS_UAV_REGISTER_COUNT] = {}

Definition at line 133 of file ContextD3D11.h.


The documentation for this struct was generated from the following files: