XII Release 0.1.0
Loading...
Searching...
No Matches
xiiGALDrawMeshIndirectDescription Struct Reference

#include <CommandList.h>

Public Member Functions

 XII_DECLARE_POD_TYPE ()
XII_ALWAYS_INLINE xiiGALDrawMeshIndirectDescription ()=default
 Default-initialized indirect mesh draw description.
XII_ALWAYS_INLINE xiiGALDrawMeshIndirectDescription (xiiGALBuffer *pBuffer, xiiUInt32 uiCommandCount, xiiUInt64 uiDrawArgumentOffset=0U, xiiEnum< xiiGALStateTransitionMode > bufferStateTransition=xiiGALStateTransitionMode::None, xiiGALBuffer *pCounterBuffer=nullptr, xiiUInt64 uiCounterOffset=0U, xiiEnum< xiiGALStateTransitionMode > counterBufferStateTransition=xiiGALStateTransitionMode::None)

Public Attributes

xiiGALBuffer * m_pBuffer = nullptr
 Buffer containing mesh dispatch arguments.
xiiUInt64 m_uiDrawArgumentOffset = 0U
 Byte offset to the first mesh dispatch argument.
xiiUInt32 m_uiCommandCount = 1U
 Number of draws to execute.
xiiEnum< xiiGALStateTransitionMode > m_BufferStateTransition = xiiGALStateTransitionMode::None
 State transition mode.
xiiGALBuffer * m_pCounterBuffer = nullptr
 Optional buffer containing draw count.
xiiUInt64 m_uiCounterOffset = 0U
 Byte offset to the draw count value.
xiiEnum< xiiGALStateTransitionMode > m_CounterBufferStateTransition = xiiGALStateTransitionMode::None
 State transition mode.

Detailed Description

Describes parameters for issuing indirect mesh shader draw calls.

Pulls mesh dispatch arguments from a GPU buffer, with optional draw count via counter buffer.

See also
xiiGALCommandList::DrawMeshIndirect

Constructor & Destructor Documentation

◆ xiiGALDrawMeshIndirectDescription()

XII_ALWAYS_INLINE xiiGALDrawMeshIndirectDescription::xiiGALDrawMeshIndirectDescription ( xiiGALBuffer * pBuffer,
xiiUInt32 uiCommandCount,
xiiUInt64 uiDrawArgumentOffset = 0U,
xiiEnum< xiiGALStateTransitionMode > bufferStateTransition = xiiGALStateTransitionMode::None,
xiiGALBuffer * pCounterBuffer = nullptr,
xiiUInt64 uiCounterOffset = 0U,
xiiEnum< xiiGALStateTransitionMode > counterBufferStateTransition = xiiGALStateTransitionMode::None )
inline

Constructs an indirect mesh draw description with specified parameters.

Parameters
pBuffer- Buffer containing mesh dispatch arguments.
uiCommandCount- Number of draws to execute.
uiDrawArgumentOffset- Byte offset to the first mesh dispatch argument.
bufferStateTransition- Resource state transition mode for the draw buffer.
pCounterBuffer- Optional buffer containing draw count.
uiCounterOffset- Byte offset to the draw count value.
counterBufferStateTransition- Resource state transition mode for the counter buffer.

The documentation for this struct was generated from the following file:
  • /home/runner/work/XII/XII/Source/Engine/GraphicsFoundation/CommandEncoder/CommandList.h