UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FPooledDynamicMeshVertexBuffer Class Reference
+ Inheritance diagram for FPooledDynamicMeshVertexBuffer:

Public Member Functions

 FPooledDynamicMeshVertexBuffer (ERHIFeatureLevel::Type InFeatureLevel, uint32 InNumTexCoords, uint32 InLightmapCoordinateIndex, bool InUse16bitTexCoord, FDynamicMeshBufferAllocator &InDynamicMeshBufferAllocator)
 
virtual void InitRHI (FRHICommandListBase &RHICmdList) override
 
void InitResource (FRHICommandListBase &RHICmdList) override
 
void ReleaseResource () override
 
virtual void ReleaseRHI () override
 
virtual void InitPrimitiveResource (FRHICommandListBase &RHICmdList) override
 
virtual void ReleasePrimitiveResource () override
 
const uint32 GetNumTexCoords () const
 
const uint32 GetLightmapCoordinateIndex () const
 
const bool GetUse16bitTexCoords () const
 
- Public Member Functions inherited from FDynamicPrimitiveResource
ENGINE_API void InitPrimitiveResource ()
 
- Public Member Functions inherited from FRenderResource
RENDERCORE_API FRenderResource ()
 
RENDERCORE_API FRenderResource (ERHIFeatureLevel::Type InFeatureLevel)
 
RENDERCORE_API FRenderResource (const FRenderResource &)
 
RENDERCORE_API FRenderResource (FRenderResource &&)
 
RENDERCORE_API FRenderResourceoperator= (const FRenderResource &Other)
 
RENDERCORE_API FRenderResourceoperator= (FRenderResource &&Other)
 
virtual RENDERCORE_API ~FRenderResource ()
 
RENDERCORE_API void UpdateRHI (FRHICommandListBase &RHICmdList)
 
virtual FString GetFriendlyName () const
 
bool IsInitialized () const
 
int32 GetListIndex () const
 
EInitPhase GetInitPhase () const
 
void SetOwnerName (FName InOwnerName)
 
FName GetOwnerName () const
 
void SetResourceName (FName InResourceName)
 
FName GetResourceName () const
 

Public Attributes

FVertexBuffer PositionBuffer
 
FVertexBuffer TangentBuffer
 
FVertexBuffer TexCoordBuffer
 
FVertexBuffer ColorBuffer
 
FShaderResourceViewRHIRef TangentBufferSRV
 
FShaderResourceViewRHIRef TexCoordBufferSRV
 
FShaderResourceViewRHIRef ColorBufferSRV
 
FShaderResourceViewRHIRef PositionBufferSRV
 
TArray< FDynamicMeshVertexVertices
 
- Public Attributes inherited from FRenderResource
ERenderResourceState ResourceState = ERenderResourceState::Default
 

Additional Inherited Members

- Public Types inherited from FRenderResource
enum class  EInitPhase : uint8 { Pre , Default , MAX }
 
- Static Public Member Functions inherited from FRenderResource
static RENDERCORE_API void ReleaseRHIForAllResources ()
 
static RENDERCORE_API void InitPreRHIResources ()
 
static RENDERCORE_API void ChangeFeatureLevel (ERHIFeatureLevel::Type NewFeatureLevel)
 
static RENDERCORE_API FName SetScopeName (FName Name)
 
- Protected Member Functions inherited from FRenderResource
void SetFeatureLevel (const FStaticFeatureLevel InFeatureLevel)
 
const FStaticFeatureLevel GetFeatureLevel () const
 
bool HasValidFeatureLevel () const
 
template<typename T >
FBufferRHIRef CreateRHIBuffer (FRHICommandListBase &RHICmdList, T &InOutResourceObject, uint32 ResourceCount, EBufferUsageFlags InBufferUsageFlags, const TCHAR *InDebugName)
 
void SetInitPhase (EInitPhase InInitPhase)
 
- Static Protected Member Functions inherited from FRenderResource
static RENDERCORE_API FRHICommandListBaseGetImmediateCommandList ()
 

Detailed Description

The vertex buffer type used for dynamic meshes.

Constructor & Destructor Documentation

◆ FPooledDynamicMeshVertexBuffer()

FPooledDynamicMeshVertexBuffer::FPooledDynamicMeshVertexBuffer ( ERHIFeatureLevel::Type  InFeatureLevel,
uint32  InNumTexCoords,
uint32  InLightmapCoordinateIndex,
bool  InUse16bitTexCoord,
FDynamicMeshBufferAllocator InDynamicMeshBufferAllocator 
)
inline

Member Function Documentation

◆ GetLightmapCoordinateIndex()

const uint32 FPooledDynamicMeshVertexBuffer::GetLightmapCoordinateIndex ( ) const
inline

◆ GetNumTexCoords()

const uint32 FPooledDynamicMeshVertexBuffer::GetNumTexCoords ( ) const
inline

◆ GetUse16bitTexCoords()

const bool FPooledDynamicMeshVertexBuffer::GetUse16bitTexCoords ( ) const
inline

◆ InitPrimitiveResource()

virtual void FPooledDynamicMeshVertexBuffer::InitPrimitiveResource ( FRHICommandListBase RHICmdList)
inlineoverridevirtual

◆ InitResource()

void FPooledDynamicMeshVertexBuffer::InitResource ( FRHICommandListBase RHICmdList)
inlineoverridevirtual

Initializes the resource. This is only called by the rendering thread.

Reimplemented from FRenderResource.

◆ InitRHI()

virtual void FPooledDynamicMeshVertexBuffer::InitRHI ( FRHICommandListBase RHICmdList)
inlineoverridevirtual

Initializes the RHI resources used by this resource. Called when entering the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.

Reimplemented from FRenderResource.

◆ ReleasePrimitiveResource()

virtual void FPooledDynamicMeshVertexBuffer::ReleasePrimitiveResource ( )
inlineoverridevirtual

◆ ReleaseResource()

void FPooledDynamicMeshVertexBuffer::ReleaseResource ( )
inlineoverridevirtual

Prepares the resource for deletion. This is only called by the rendering thread.

Reimplemented from FRenderResource.

◆ ReleaseRHI()

virtual void FPooledDynamicMeshVertexBuffer::ReleaseRHI ( )
inlineoverridevirtual

Releases the RHI resources used by this resource. Called when leaving the state where both the resource and the RHI have been initialized. This is only called by the rendering thread.

Reimplemented from FRenderResource.

Member Data Documentation

◆ ColorBuffer

FVertexBuffer FPooledDynamicMeshVertexBuffer::ColorBuffer

◆ ColorBufferSRV

FShaderResourceViewRHIRef FPooledDynamicMeshVertexBuffer::ColorBufferSRV

◆ PositionBuffer

FVertexBuffer FPooledDynamicMeshVertexBuffer::PositionBuffer

◆ PositionBufferSRV

FShaderResourceViewRHIRef FPooledDynamicMeshVertexBuffer::PositionBufferSRV

◆ TangentBuffer

FVertexBuffer FPooledDynamicMeshVertexBuffer::TangentBuffer

◆ TangentBufferSRV

FShaderResourceViewRHIRef FPooledDynamicMeshVertexBuffer::TangentBufferSRV

◆ TexCoordBuffer

FVertexBuffer FPooledDynamicMeshVertexBuffer::TexCoordBuffer

◆ TexCoordBufferSRV

FShaderResourceViewRHIRef FPooledDynamicMeshVertexBuffer::TexCoordBufferSRV

◆ Vertices

TArray<FDynamicMeshVertex> FPooledDynamicMeshVertexBuffer::Vertices

The documentation for this class was generated from the following file: