GetVertexCountForPrimitiveCount

Computes the vertex count for a given number of primitives of the specified type.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/RHIUtilities.h

Include

#include "RHIUtilities.h"

Syntax

uint32 GetVertexCountForPrimitiveCount
(
    uint32 NumPrimitives,
    uint32 PrimitiveType
)

Remarks

Computes the vertex count for a given number of primitives of the specified type.

Returns

The number of vertices.

Parameters

Parameter

Description

NumPrimitives

The number of primitives.

PrimitiveType

The type of primitives.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss