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

# glGetUniformLocation(_:_:)

## Declaration

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