Skip to content

@orillusion/core


Class: GeometryIndicesBuffer ​

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:10

Holds the index data of a geometry and manages its backing GPU index buffer.

Constructors ​

Constructor ​

new GeometryIndicesBuffer(): GeometryIndicesBuffer

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:17

Returns ​

GeometryIndicesBuffer

Properties ​

uuid ​

uuid: string = ''

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:12


name ​

name: string

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:13


indicesGPUBuffer ​

indicesGPUBuffer: IndicesGPUBuffer

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:14


indicesFormat ​

indicesFormat: GPUIndexFormat

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:15


indicesCount ​

indicesCount: number = 0

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:16

Methods ​

createIndicesBuffer() ​

createIndicesBuffer(indicesData): void

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:20

Parameters ​

indicesData ​

VertexAttributeData

Returns ​

void


upload() ​

upload(data): void

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:30

Parameters ​

data ​

ArrayBufferData

Returns ​

void


compute() ​

compute(): void

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:35

Returns ​

void


destroy() ​

destroy(): void

Defined in: src/core/geometry/GeometryIndicesBuffer.ts:39

Returns ​

void