Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Rendering > API/Runtime/Engine/Rendering/FStaticMeshVertexBuffer > API/Runtime/Engine/Rendering/FStaticMeshVertexBuffer/Init
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Rendering/StaticMeshVertexBuffer.h |
| Include | #include "Rendering/StaticMeshVertexBuffer.h" |
void Init
(
const FConstMeshBuildVertexView & InVertices,
bool bNeedsCPUAccess
)
Remarks
Initializes the buffer with the given vertices.
Parameters
| Name | Description |
|---|---|
| InVertices | The vertices to initialize the buffer with. |
| InNumTexCoords | The number of texture coordinate to store in the buffer. |
| bNeedsCPUAccess | Whether the vertex data needs to be accessed by the CPU after creation (default true) |