Class AttributeAbstract

An input variable in a WebGL vertex shader.

Hierarchy

Constructors

Properties

activeInfo: WebGLActiveInfo

The active information of this attribute.

enabledPrivate: boolean

Whether this attribute can get data from a buffer.

gl: WebGL2RenderingContext

The rendering context of this variable.

location: number

The location of this attribute.

program: Program

The shader program that this variable belongs to.

valuePrivate?: AttributeState

The value of this attribute.

Accessors

  • get name(): string
  • The name of this variable.

    Returns string

  • get size(): number
  • The size of this variable in memory in bytes.

    Returns number

Methods

Generated using TypeDoc