Open 3D Engine Atom Gem API Reference 26.05.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RHI::IndirectArgumentsTemplate< BufferClass, IndirectBufferViewClass > Struct Template Reference

#include <DeviceIndirectArguments.h>

Inherited by AZ::RHI::DeviceDispatchRaysIndirect, and AZ::RHI::DispatchRaysIndirect.

Public Member Functions

 IndirectArgumentsTemplate (uint32_t maxSequenceCount, const IndirectBufferViewClass &indirectBuffer, uint64_t indirectBufferByteOffset)
 
 IndirectArgumentsTemplate (uint32_t maxSequenceCount, const IndirectBufferViewClass &indirectBuffer, uint64_t indirectBufferByteOffset, const BufferClass *countBuffer, uint64_t countBufferByteOffset)
 

Public Attributes

uint32_t m_maxSequenceCount = 0
 
uint64_t m_indirectBufferByteOffset = 0
 Specifies an offset into DeviceIndirectBufferView to identify the first command argument.
 
uint64_t m_countBufferByteOffset = 0
 Specifies an offset into m_countBuffer, identifying the argument count.
 
const IndirectBufferViewClass * m_indirectBufferView = nullptr
 View over the Indirect buffer that contains the commands.
 
const BufferClass * m_countBuffer = nullptr
 Optional count buffer that contains the number of indirect commands in the indirect buffer.
 

Detailed Description

template<typename BufferClass, typename IndirectBufferViewClass>
struct AZ::RHI::IndirectArgumentsTemplate< BufferClass, IndirectBufferViewClass >

Encapsulates the arguments needed when doing an indirect call (draw or dispatch) into a command list.

Member Data Documentation

◆ m_maxSequenceCount

template<typename BufferClass , typename IndirectBufferViewClass >
uint32_t AZ::RHI::IndirectArgumentsTemplate< BufferClass, IndirectBufferViewClass >::m_maxSequenceCount = 0

There are two ways that m_maxSequenceCount can be specified: 1) If m_countBuffer is not NULL, then m_maxSequenceCount specifies the maximum number of operations which will be performed. The actual number of operations to be performed are defined by the minimum of this value, and a 32 bit unsigned integer contained in m_countBuffer(at the byte offset specified by m_countBufferByteOffset). 2) If m_countBuffer is NULL, the m_maxSequenceCount specifies the exact number of operations which will be performed.


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