# BufferInfo

Artifact: [androidx.graphics:graphics-core](https://developer.android.com/jetpack/androidx/releases/graphics) [View Source](https://cs.android.com/search?q=file:androidx/graphics/lowlatency/BufferInfo.kt+class:androidx.graphics.lowlatency.BufferInfo) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

*** ** * ** ***


```
public final class BufferInfo
```

<br />

*** ** * ** ***

Class that represents information about the current buffer that is target for rendered output

## Summary

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/graphics/lowlatency/BufferInfo#getFrameBufferId()()` Identifier of the destination frame buffer object that is being rendered into. |
| `final int` | `https://developer.android.com/reference/androidx/graphics/lowlatency/BufferInfo#getHeight()()` Height of the buffer that is being rendered into. |
| `final int` | `https://developer.android.com/reference/androidx/graphics/lowlatency/BufferInfo#getWidth()()` Width of the buffer that is being rendered into. |

## Public methods

### getFrameBufferId

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public final int getFrameBufferId()
```

Identifier of the destination frame buffer object that is being rendered into. This is useful for re-binding to the original target after rendering to intermediate frame buffer objects.

### getHeight

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public final int getHeight()
```

Height of the buffer that is being rendered into. This can be different than the corresponding dimensions specified as pre-rotation can occasionally swap width and height parameters in order to avoid GPU composition to rotate content. This should be used as input to `https://developer.android.com/reference/android/opengl/GLES20.html#glViewport(int, int, int, int)`.

### getWidth

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
public final int getWidth()
```

Width of the buffer that is being rendered into. This can be different than the corresponding dimensions specified as pre-rotation can occasionally swap width and height parameters in order to avoid GPU composition to rotate content. This should be used as input to `https://developer.android.com/reference/android/opengl/GLES20.html#glViewport(int, int, int, int)`.