Skip to content

@orillusion/core


Class: VertexAttribute

Defined in: src/core/geometry/VertexAttribute.ts:21

Describes a single vertex attribute, including its format, offset and shader binding location within a vertex buffer.

Implements

  • GPUVertexAttribute

Constructors

Constructor

new VertexAttribute(): VertexAttribute

Returns

VertexAttribute

Properties

name

name: string

Defined in: src/core/geometry/VertexAttribute.ts:22


format

format: GPUVertexFormat

Defined in: src/core/geometry/VertexAttribute.ts:23

The GPUVertexFormat of the attribute.

Implementation of

GPUVertexAttribute.format


offset

offset: number

Defined in: src/core/geometry/VertexAttribute.ts:24

The offset, in bytes, from the beginning of the element to the data for the attribute.

Implementation of

GPUVertexAttribute.offset


shaderLocation

shaderLocation: number

Defined in: src/core/geometry/VertexAttribute.ts:25

The numeric location associated with this attribute, which will correspond with a "@location" attribute declared in the GPURenderPipelineDescriptor#vertex.GPUProgrammableStage#module | module.

Implementation of

GPUVertexAttribute.shaderLocation


stride

stride: number

Defined in: src/core/geometry/VertexAttribute.ts:26

Released under the MIT License