FOpenGLDynamicRHI::RHIBeginDrawIndexedPrimitiveUP

Preallocate memory or get a direct command stream pointer to fill up for immediate rendering .

Windows
MacOS
Linux

Override Hierarchy

IRHICommandContext::RHIBeginDrawIndexedPrimitiveUP()

FOpenGLDynamicRHI::RHIBeginDrawIndexedPrimitiveUP()

Syntax

virtual 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

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

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

OpenGLDrv

Header

Runtime/OpenGLDrv/Public/OpenGLDrv.h

Source

Runtime/OpenGLDrv/Private/OpenGLCommands.cpp

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback