<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macOS: 10.8.0 -",
    "tvOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/GLKVertexAttrib",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "GLKit"
    ],
    "preciseIdentifier" : "c:@E@GLKVertexAttrib"
  },
  "title" : "GLKVertexAttrib"
}
-->

# GLKVertexAttrib

Values used as indices in OpenGL code to associate vertex data with an attribute in a named shader effect.

```
enum GLKVertexAttrib
```

## Topics

### Constants

[`GLKVertexAttribPosition`](/documentation/GLKit/GLKVertexAttrib/position)

This index is used to provide the vertex position to a shader.

[`GLKVertexAttribNormal`](/documentation/GLKit/GLKVertexAttrib/normal)

This index is used to provide the vertex normal to a shader.

[`GLKVertexAttribColor`](/documentation/GLKit/GLKVertexAttrib/color)

This index is used to provide the vertex color to a shader.

[`GLKVertexAttribTexCoord0`](/documentation/GLKit/GLKVertexAttrib/texCoord0)

This index is used to provide a set of texture coordinates to a shader.

[`GLKVertexAttribTexCoord1`](/documentation/GLKit/GLKVertexAttrib/texCoord1)

This index is used to provide the second set of texture coordinates to a shader.

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)