Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MeshBatch.h |
| Include | #include "MeshBatch.h" |
Syntax
struct FMeshBatchDynamicPrimitiveData
Remarks
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| FGPUSceneWriteDelegate | DataWriterGPU | ||
| EGPUSceneGPUWritePass | DataWriterGPUPass | ||
| TConstArrayView< float > | InstanceCustomData | ||
| TConstArrayView< FInstanceDynamicData > | InstanceDynamicData | ||
| TConstArrayView< FRenderBounds > | InstanceLocalBounds | ||
| TConstArrayView< FInstanceSceneData > | InstanceSceneData | ||
| uint32 | NumInstanceCustomDataFloats | ||
| uint16 | PayloadDataFlags |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | EnableInstanceDynamicData
(
bool bEnable |
||
| void | EnableInstanceLocalBounds
(
bool bEnable |
||
| uint32 | Computes the full float4 stride of the instance's payload data. | ||
| void | SetNumInstanceCustomDataFloats
(
uint32 NumFloats |
||
| void | SetPayloadDataFlags
(
uint16 Flags, |
||
| void | Validate
(
uint32 NumInstances |