Navigation
API > API/Runtime > API/Runtime/Engine
Dynamic primitive/instance data for a mesh batch element.
NOTES:
- When applied to a FMeshBatchElement, data provided to the TConstArrayView members are expected to live until the end of the frame on the render thread
- If `DataWriterGPU_ is bound and the TConstArrayView members are left empty, the delegate is expected to write any missing data, as it will not be uploaded
| Name | FMeshBatchDynamicPrimitiveData |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/MeshBatch.h |
| Include Path | #include "MeshBatch.h" |
Syntax
struct FMeshBatchDynamicPrimitiveData
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DataWriterGPU | FGPUSceneWriteDelegateRef | MeshBatch.h | ||
| DataWriterGPUPass | EGPUSceneGPUWritePass | MeshBatch.h | ||
| InstanceCustomData | TConstArrayView< float > | MeshBatch.h | ||
| InstanceDynamicData | TConstArrayView< FInstanceDynamicData > | MeshBatch.h | ||
| InstanceLocalBounds | TConstArrayView< FRenderBounds > | MeshBatch.h | ||
| InstanceSceneData | TConstArrayView< FInstanceSceneData > | MeshBatch.h | ||
| NumInstanceCustomDataFloats | uint32 | MeshBatch.h | ||
| PayloadDataFlags | uint16 | MeshBatch.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void EnableInstanceDynamicData
(
bool bEnable |
MeshBatch.h | ||
void EnableInstanceLocalBounds
(
bool bEnable |
MeshBatch.h | ||
void EnableInstanceSkinningData
(
bool bEnable |
MeshBatch.h | ||
uint32 GetPayloadFloat4Stride () |
Computes the full float4 stride of the instance's payload data. | MeshBatch.h | |
void SetNumInstanceCustomDataFloats
(
uint32 NumFloats |
MeshBatch.h | ||
void SetPayloadDataFlags
(
uint16 Flags, |
MeshBatch.h | ||
void Validate
(
uint32 NumInstances |
MeshBatch.h |