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

# glGenSamplers(_:_:)

## Declaration

```swift
func glGenSamplers(_ count: GLsizei, _ samplers: UnsafeMutablePointer<GLuint>!)
```
