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

# glUniform2f(_:_:_:)

## Declaration

```swift
func glUniform2f(_ location: GLint, _ x: GLfloat, _ y: GLfloat)
```
