FOpenGLDynamicRHI::RHIBeginDrawPrimitiveUP

Override Hierarchy

IRHICommandContext::RHIBeginDrawPrimitiveUP()

FOpenGLDynamicRHI::RHIBeginDrawPrimitiveUP()

Syntax

virtual void RHIBeginDrawPrimitiveUP
(
    uint32 NumPrimitives,
    uint32 NumVertices,
    uint32 VertexDataStride,
    void *& OutVertexData
)

Remarks

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

Parameters

Parameter

Description

PrimitiveType

The type (triangles, lineloop, etc) of primitive to draw

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

References

Module

OpenGLDrv

Header

Runtime/OpenGLDrv/Public/OpenGLDrv.h

Source

Runtime/OpenGLDrv/Private/OpenGLCommands.cpp