<!--
{
  "availability" : [
    "iOS: 3.0.0 - 12.0.0",
    "iPadOS: 3.0.0 - 12.0.0",
    "macCatalyst: 3.0.0 - 12.0.0",
    "tvOS: 9.0.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "OpenGLES",
  "identifier" : "/documentation/OpenGLES/glCompressedTexImage2D(_:_:_:_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "OpenGL ES"
    ],
    "preciseIdentifier" : "c:@F@glCompressedTexImage2D"
  },
  "title" : "glCompressedTexImage2D(_:_:_:_:_:_:_:_:)"
}
-->

# glCompressedTexImage2D(_:_:_:_:_:_:_:_:)

```
func glCompressedTexImage2D(_ target: GLenum, _ level: GLint, _ internalformat: GLenum, _ width: GLsizei, _ height: GLsizei, _ border: GLint, _ imageSize: GLsizei, _ data: UnsafeRawPointer!)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)