GPUVertexAttribute


class GPUVertexAttribute


Describes a single vertex attribute.

Summary

Public constructors

GPUVertexAttribute(format: Int, offset: Long, shaderLocation: Int)

Public properties

Int

The format of the vertex attribute data.

Long

The offset in bytes from the beginning of the vertex.

Int

Public constructors

GPUVertexAttribute

Added in 1.0.0-alpha06
GPUVertexAttribute(format: Int, offset: Long, shaderLocation: Int)

Public properties

format

Added in 1.0.0-alpha06
var format: Int

The format of the vertex attribute data.

Value is one of the following:

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42

offset

Added in 1.0.0-alpha06
var offset: Long

The offset in bytes from the beginning of the vertex.

shaderLocation

Added in 1.0.0-alpha06
var shaderLocation: Int