# GPUTexelCopyBufferLayout

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

*** ** * ** ***


```
public final class GPUTexelCopyBufferLayout
```

<br />

*** ** * ** ***

Describes the layout of texel data within a buffer.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyBufferLayout.Builder` Builder for `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyBufferLayout`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyBufferLayout#GPUTexelCopyBufferLayout(kotlin.Long,kotlin.Int,kotlin.Int)(long offset, int bytesPerRow, int rowsPerImage)` |

| ### Public methods |
|---|---|
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyBufferLayout#getBytesPerRow()()` |
| `final long` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyBufferLayout#getOffset()()` The offset in bytes from the beginning of the buffer. |
| `final int` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyBufferLayout#getRowsPerImage()()` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyBufferLayout#setBytesPerRow(kotlin.Int)(int value)` |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyBufferLayout#setOffset(kotlin.Long)(long value)` The offset in bytes from the beginning of the buffer. |
| `final void` | `https://developer.android.com/reference/androidx/webgpu/GPUTexelCopyBufferLayout#setRowsPerImage(kotlin.Int)(int value)` |

## Public constructors

### GPUTexelCopyBufferLayout

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

```
public GPUTexelCopyBufferLayout(long offset, int bytesPerRow, int rowsPerImage)
```

## Public methods

### getBytesPerRow

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

```
public final int getBytesPerRow()
```

### getOffset

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

```
public final long getOffset()
```

The offset in bytes from the beginning of the buffer.

### getRowsPerImage

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

```
public final int getRowsPerImage()
```

### setBytesPerRow

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

```
public final void setBytesPerRow(int value)
```

### setOffset

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

```
public final void setOffset(long value)
```

The offset in bytes from the beginning of the buffer.

### setRowsPerImage

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

```
public final void setRowsPerImage(int value)
```