Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
Inheritance Hierarchy
- FRenderResource
- FStaticMeshInstanceBuffer
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/InstancedStaticMesh.h |
Include | #include "Engine/InstancedStaticMesh.h" |
Syntax
class FStaticMeshInstanceBuffer : public FRenderResource
Remarks
A vertex buffer of positions.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TSharedPtr< FStaticMeshInstanceData, ESPMode::ThreadSafe > | InstanceData | The vertex data storage type |
![]() |
bool | RequireCPUAccess | Keep CPU copy of instance data |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FStaticMeshInstanceBuffer
(
ERHIFeatureLevel::Type InFeatureLevel, |
Default constructor. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructor. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | BindInstanceVertexBuffer
(
const FVertexFactory* VertexFactory, |
|
![]() |
bool | Set flush to GPU as pending if the bDeferGPUUpload flag is true. | |
![]() |
void | FlushGPUUpload
(
FRHICommandListBase& RHICmdList |
Call to flush any pending GPU data copies, if bFlushToGPUPending is false it does nothing. |
![]() ![]() |
void | GetInstanceCustomDataValues
(
int32 InstanceIndex, |
|
![]() ![]() |
FStaticMeshInstanceData * | ||
![]() ![]() |
void | GetInstanceEditorData
(
int32 InstanceIndex, |
|
![]() |
FBufferRHIRef | ||
![]() ![]() |
void | GetInstanceLightMapData
(
int32 InstanceIndex, |
|
![]() |
FBufferRHIRef | ||
![]() ![]() |
void | GetInstanceRandomID
(
int32 InstanceIndex, |
|
![]() ![]() |
void | GetInstanceTransform
(
int32 InstanceIndex, |
|
![]() |
FBufferRHIRef | ||
![]() ![]() |
uint32 | Other accessors. | |
![]() ![]() |
SIZE_T | ||
![]() |
void | InitFromPreallocatedData
(
FStaticMeshInstanceData& Other |
Initializes the buffer with the component's data. |
![]() |
void | UpdateFromCommandBuffer_Concurrent
(
FInstanceUpdateCmdBuffer& CmdBuffer |
Overridden from FRenderResource
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
FString | ||
![]() ![]() |
void | InitResource
(
FRHICommandListBase& RHICmdList |
Initializes the resource. This is only called by the rendering thread. |
![]() ![]() |
void | InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. |
![]() ![]() |
void | Prepares the resource for deletion. This is only called by the rendering thread. | |
![]() ![]() |
void | ReleaseRHI () |
Releases the RHI resources used by this resource. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
void | operator=
(
const FStaticMeshInstanceBuffer& Other |
Specialized assignment operator, only used when importing LOD's. |