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

# glTexStorage2D(_:_:_:_:_:)

## Declaration

```swift
func glTexStorage2D(_ target: GLenum, _ levels: GLsizei, _ internalformat: GLenum, _ width: GLsizei, _ height: GLsizei)
```
