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

# glBufferData(_:_:_:_:)

## Declaration

```swift
func glBufferData(_ target: GLenum, _ size: GLsizeiptr, _ data: UnsafeRawPointer!, _ usage: GLenum)
```
