<!--
{
  "documentType" : "article",
  "framework" : "GLKit",
  "identifier" : "/documentation/GLKit/glkit-effects-constants",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "GLKit Effects Constants"
}
-->

# GLKit Effects Constants

## Overview

GLKit effects implement shaders to perform their calculations. These shaders require vertex data to be provided by your application. All of the effects provided by GLKit use a consistent set of indices to reference vertex data provided by your application. When your application enables a vertex attribute array by calling the `glEnableVertexAttribArray` function, or specifies the vertex attribute pointer by calling the `glVertexAttribPointer` function, it uses one of these constants to specify the `index` parameter.

## Topics

### Constants

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

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



---

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)