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

# glTexSubImage2D(_:_:_:_:_:_:_:_:_:)

## Declaration

```swift
func glTexSubImage2D(_ target: GLenum, _ level: GLint, _ xoffset: GLint, _ yoffset: GLint, _ width: GLsizei, _ height: GLsizei, _ format: GLenum, _ type: GLenum, _ pixels: UnsafeRawPointer!)
```
