---
title: "glGetFragDataLocation(_:_:)"
framework: OpenGL ES
role: symbol
role_heading: Function
platforms: [iOS 7.0+, iPadOS 7.0+, Mac Catalyst 7.0+, tvOS 9.0+]
path: "opengles/glgetfragdatalocation(_:_:)"
---

# glGetFragDataLocation(_:_:)

## Declaration

```swift
func glGetFragDataLocation(_ program: GLuint, _ name: UnsafePointer<GLchar>!) -> GLint
```
