Skip to content

Class: GeometryVertexBuffer

Constructors

Properties

Accessors

Methods

Constructors

constructor

new GeometryVertexBuffer(): GeometryVertexBuffer

Returns

GeometryVertexBuffer

Defined in

src/core/geometry/GeometryVertexBuffer.ts:19

Properties

vertexCount

vertexCount: number = 0

Defined in

src/core/geometry/GeometryVertexBuffer.ts:12


vertexGPUBuffer

vertexGPUBuffer: VertexGPUBuffer

Defined in

src/core/geometry/GeometryVertexBuffer.ts:13


geometryType

geometryType: GeometryVertexType = GeometryVertexType.compose

Defined in

src/core/geometry/GeometryVertexBuffer.ts:14

Accessors

vertexBufferLayouts

get vertexBufferLayouts(): VertexBufferLayout[]

Returns

VertexBufferLayout[]

Defined in

src/core/geometry/GeometryVertexBuffer.ts:25

Methods

createVertexBuffer

createVertexBuffer(vertexDataInfos, shaderReflection): void

Parameters

NameType
vertexDataInfosMap<string, VertexAttributeData>
shaderReflectionShaderReflection

Returns

void

Defined in

src/core/geometry/GeometryVertexBuffer.ts:29


upload

upload(attribute, vertexDataInfo): void

Parameters

NameType
attributestring
vertexDataInfoVertexAttributeData

Returns

void

Defined in

src/core/geometry/GeometryVertexBuffer.ts:193


updateAttributes

updateAttributes(vertexDataInfos): void

Parameters

NameType
vertexDataInfosMap<string, VertexAttributeData>

Returns

void

Defined in

src/core/geometry/GeometryVertexBuffer.ts:222


compute

compute(): void

Returns

void

Defined in

src/core/geometry/GeometryVertexBuffer.ts:261


destroy

destroy(force?): void

Parameters

NameType
force?boolean

Returns

void

Defined in

src/core/geometry/GeometryVertexBuffer.ts:265

Released under the MIT License