Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/IRHICommandContext
Description
Similar to RHIDrawIndexedPrimitiveIndirect, but allows many draw arguments to be provided at once. GRHIGlobals.SupportsDrawIndirect must be checked to detect support on the current machine. @ param IndexBuffer Buffer containing primitive indices @ param ArgumentsBuffer Buffer containing FRHIDrawIndexedIndirectParameters structures @ param ArgumentOffset Offset in bytes of the first element in ArgumentsBuffer that will be used for drawing @ param CountBuffer Buffer containing uint32 count of valid draw arguments that should be consumed (may be nullptr, indicating that only MaxDrawArguments value should be used) @ param CountBuffeOffset Offset in bytes for the CountBuffer element that will be used to source the draw argument count @ param MaxDrawArguments How many draw arguments should be processed at most, i.e. NumDrawArguments = min(MaxDrawArguments, ValueFromCountBuffer)
| Name | RHIMultiDrawIndexedPrimitiveIndirect |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/RHIContext.h |
| Include Path | #include "RHIContext.h" |
virtual void RHIMultiDrawIndexedPrimitiveIndirect
(
FRHIBuffer * IndexBuffer,
FRHIBuffer * ArgumentBuffer,
uint32 ArgumentOffset,
FRHIBuffer * CountBuffer,
uint32 CountBuffeOffset,
uint32 MaxDrawArguments
)