IRHICommandContext::RHIBeginDrawIndexedPrimitiveUP

Override Hierarchy

Syntax

void RHIBeginDrawIndexedPrimitiveUP
(
    uint32 NumPrimitives,
    uint32 NumVertices,
    uint32 VertexDataStride,
    void *& OutVertexData,
    uint32 MinVertexIndex,
    uint32 NumIndices,
    uint32 IndexDataStride,
    void *& OutIndexData
)

Remarks

Preallocate memory or get a direct command stream pointer to fill up for immediate rendering . This avoids memcpys below in DrawIndexedPrimitiveUP

Parameters

Parameter

Description

NumPrimitives

The number of primitives in the VertexData buffer

NumVertices

The number of vertices to be written

VertexDataStride

Size of each vertex

OutVertexData

Reference to the allocated vertex memory

MinVertexIndex

The lowest vertex index used by the index buffer

NumIndices

Number of indices to be written

IndexDataStride

Size of each index (either 2 or 4 bytes)

OutIndexData

Reference to the allocated index memory

References

Module

RHI

Header

Runtime/RHI/Public/RHIContext.h