Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Rendering
Inheritance Hierarchy
- FRenderResource
- FStaticMeshVertexBuffer
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Rendering/StaticMeshVertexBuffer.h |
| Include | #include "Rendering/StaticMeshVertexBuffer.h" |
Syntax
class FStaticMeshVertexBuffer : public FRenderResource
Remarks
Vertex buffer for a static mesh LOD
Variables
| Type | Name | Description | |
|---|---|---|---|
| FStaticMeshVertexBuffer::FTangentsVertexBuffer | TangentsVertexBuffer | ||
| FStaticMeshVertexBuffer::FTexcoordVertexBuffer | TexCoordVertexBuffer |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendVertices
(
const FStaticMeshBuildVertex* Vertices, |
Appends the specified vertices to the end of the buffer | |
| void | BindLightMapVertexBuffer
(
const FVertexFactory* VertexFactory, |
||
| void | BindPackedTexCoordVertexBuffer
(
const FVertexFactory* VertexFactory, |
||
| void | BindTangentVertexBuffer
(
const FVertexFactory* VertexFactory, |
||
| void | BindTexCoordVertexBuffer
(
const FVertexFactory* VertexFactory, |
||
| void | CleanUp () |
Delete existing resources | |
| void | |||
| FBufferRHIRef | CreateTangentsRHIBuffer
(
FRHICommandListBase& RHICmdList |
Create an RHI vertex buffer with CPU data. | |
| FBufferRHIRef | |||
| FBufferRHIRef | |||
| FBufferRHIRef | CreateTexCoordRHIBuffer
(
FRHICommandListBase& RHICmdList |
||
| FBufferRHIRef | |||
| FBufferRHIRef | |||
| FORCEINLINE_DEBUGGABLE bool | |||
| FORCEINLINE_DEBUGGABLEuint32 | |||
| FORCEINLINE_DEBUGGABLEuint32 | |||
| FORCEINLINE_DEBUGGABLEuint32 | |||
| FORCEINLINE_DEBUGGABLE const void * | |||
| FORCEINLINE_DEBUGGABLE void * | |||
| int | |||
| FRHIShaderResourceView * | |||
| FORCEINLINE_DEBUGGABLE const void * | |||
| FORCEINLINE_DEBUGGABLE void * | |||
| int | |||
| FRHIShaderResourceView * | |||
| FORCEINLINE_DEBUGGABLE bool | |||
| FORCEINLINE_DEBUGGABLE bool | |||
| FORCEINLINE_DEBUGGABLEFVector2f | GetVertexUV
(
uint32 VertexIndex, |
Set the vertex UV values at the given index in the vertex buffer | |
| FORCEINLINE_DEBUGGABLEFVector2f | GetVertexUV_Typed
(
uint32 VertexIndex, |
||
| void | |||
| void | Init
(
const FStaticMeshVertexBuffer& InVertexBuffer, |
Initializes this vertex buffer with the contents of the given vertex buffer. | |
| void | Init
(
const FConstMeshBuildVertexView& InVertices, |
Initializes the buffer with the given vertices. | |
| void | Init
(
const FConstMeshBuildVertexView& InVertices, |
Initializes the buffer with the given vertex view. | |
| void | Init
(
const TArray< FStaticMeshBuildVertex >& InVertices, |
||
| void | Init
(
const TArray< FStaticMeshBuildVertex >& InVertices, |
Initializes the buffer with the given vertices. Initializes the buffer with the given vertices. | |
| void | InitRHIForStreaming
(
FRHIBuffer* IntermediateTangentsBuffer, |
Similar to Init/ReleaseRHI but only update existing SRV so references to the SRV stays valid | |
| bool | IsValid () |
||
| void | ReleaseRHIForStreaming
(
FRHIResourceUpdateBatcher& Batcher |
||
| void | Serializer | ||
| void | SerializeMetaData
(
FArchive& Ar |
||
| FORCEINLINE_DEBUGGABLE void | SetUseFullPrecisionUVs
(
bool UseFull |
||
| FORCEINLINE_DEBUGGABLE void | SetUseHighPrecisionTangentBasis
(
bool bUseHighPrecision |
||
| FORCEINLINE_DEBUGGABLE void | SetVertexTangents
(
uint32 VertexIndex, |
||
| FORCEINLINE_DEBUGGABLE void | SetVertexUV
(
uint32 VertexIndex, |
Set the vertex UV values at the given index in the vertex buffer | |
| FORCEINLINE_DEBUGGABLEFVector4f | VertexTangentX
(
uint32 VertexIndex |
||
| FORCEINLINE_DEBUGGABLEFVector4f | VertexTangentX_Typed
(
uint32 VertexIndex |
||
| FORCEINLINE_DEBUGGABLEFVector3f | VertexTangentY
(
uint32 VertexIndex |
Calculate the binormal (TangentY) vector using the normal,tangent vectors | |
| FORCEINLINE_DEBUGGABLEFVector4f | VertexTangentY_Typed
(
uint32 VertexIndex |
||
| FORCEINLINE_DEBUGGABLEFVector4f | VertexTangentZ
(
uint32 VertexIndex |
||
| FORCEINLINE_DEBUGGABLEFVector4f | VertexTangentZ_Typed
(
uint32 VertexIndex |
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 FStaticMeshVertexBuffer& Other |
Specialized assignment operator, only used when importing LOD's. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FTangentsVertexBuffer | |||
| FTexcoordVertexBuffer |