summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorazhirnov <zh1dron@gmail.com>2020-08-19 21:05:09 +0000
committerazhirnov <zh1dron@gmail.com>2020-08-19 21:05:09 +0000
commit34b7aa2e14de38e0b6b705950eec519ff40104e7 (patch)
tree25301dacb98bbd6ccddb45f35b66c2c8aec3adad /Graphics/GraphicsEngine
parentUpdate DXIL shader compilation (diff)
downloadDiligentCore-34b7aa2e14de38e0b6b705950eec519ff40104e7.tar.gz
DiligentCore-34b7aa2e14de38e0b6b705950eec519ff40104e7.zip
Updated description of DrawMeshIndirect command
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/DeviceContext.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h
index 3d79ecd0..a66470c5 100644
--- a/Graphics/GraphicsEngine/interface/DeviceContext.h
+++ b/Graphics/GraphicsEngine/interface/DeviceContext.h
@@ -1071,6 +1071,14 @@ DILIGENT_BEGIN_INTERFACE(IDeviceContext, IObject)
/// \param [in] Attribs - Structure describing the command attributes, see Diligent::DrawMeshIndirectAttribs for details.
/// \param [in] pAttribsBuffer - Pointer to the buffer, from which indirect draw attributes will be read.
+ /// The buffer must contain the following arguments at the specified offset:
+ /// for Direct3D12:
+ /// Uint32 ThreadGroupCountX; // should be same as TaskCount for compatibility with Vulkan
+ /// Uint32 ThreadGroupCountY; // should be 1 for compatibility with Vulkan
+ /// Uint32 ThreadGroupCountZ; // should be 1 for compatibility with Vulkan
+ /// for Vulkan:
+ /// Uint32 TaskCount; // should be same as ThreadGroupCountX for compatibility with D3D12
+ /// Uint32 FirstTask; // should be 0 for compatibility with D3D12
///
/// \remarks If IndirectAttribsBufferStateTransitionMode member is Diligent::RESOURCE_STATE_TRANSITION_MODE_TRANSITION,
/// the method may transition the state of the indirect draw arguments buffer. This is not a thread safe operation,