Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Rendering
Inheritance Hierarchy
- FRenderResource
- FVertexBuffer
- FColorVertexBuffer
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Rendering/ColorVertexBuffer.h |
| Include | #include "Rendering/ColorVertexBuffer.h" |
Syntax
class FColorVertexBuffer : public FVertexBuffer
Remarks
A vertex buffer of colors.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Destructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AppendVertices
(
const FStaticMeshBuildVertex* Vertices, |
Appends the specified vertices to the end of the buffer | |
| void | BindColorVertexBuffer
(
const FVertexFactory* VertexFactory, |
||
| void | BindDefaultColorVertexBuffer
(
const FVertexFactory* VertexFactory, |
||
| void | CleanUp () |
Delete existing resources | |
| void | |||
| FBufferRHIRef | |||
| FBufferRHIRef | Create an RHI vertex buffer with CPU data. | ||
| void | ExportText
(
FString& ValueStr |
Export the data to a string, used for editor Copy&Paste. | |
| uint32 | Useful for memory profiling. | ||
| bool | |||
| FRHIShaderResourceView * | |||
| uint32 | |||
| uint32 | GetStride () |
Other accessors. | |
| void | GetVertexColors
(
TArray< FColor >& OutColors |
Gets all vertex colors in the buffer | |
| void * | |||
| const void * | |||
| void | ImportText
(
const TCHAR* SourceText |
Export the data from a string, used for editor Copy&Paste. | |
| void | Init
(
const FColorVertexBuffer& InVertexBuffer, |
Initializes this vertex buffer with the contents of the given vertex buffer. | |
| void | Init
(
const FConstMeshBuildVertexView& InVertices, |
||
| void | Init
(
const TArray< FStaticMeshBuildVertex >& InVertices, |
Initializes the buffer with the given vertices, used to convert legacy layouts. | |
| void | Init
(
uint32 InNumVertices, |
||
| void | InitFromColorArray
(
const FColor* InColors, |
Load from a array of colors Load from raw color array | |
| void | InitFromColorArray
(
const TArray< FColor >& InColors |
Load from raw color array. | |
| void | InitFromSingleColor
(
const FColor& InColor, |
Load from single color. | |
| void | InitRHIForStreaming
(
FRHIBuffer* IntermediateBuffer, |
Similar to Init/ReleaseRHI but only update existing SRV so references to the SRV stays valid | |
| void | ReleaseRHIForStreaming
(
FRHIResourceUpdateBatcher& Batcher |
||
| void | SerializerSerializer | ||
| void | SerializeMetaData
(
FArchive& Ar |
||
| FColor & | VertexColor
(
uint32 VertexIndex |
||
| const FColor & | VertexColor
(
uint32 VertexIndex |
Overridden from FRenderResource
| Type | Name | Description | |
|---|---|---|---|
| FString | |||
| void | InitRHI
(
FRHICommandListBase& RHICmdList |
Initializes the RHI resources used by this resource. | |
| void | ReleaseRHI () |
Releases the RHI resources used by this resource. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| void | operator=
(
const FColorVertexBuffer& Other |
Specialized assignment operator, only used when importing LOD's. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| NullBindStride |