# 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)

*** ** * ** ***


```
class GPUTexelCopyBufferLayout
```

<br />

*** ** * ** ***

Describes the layout of texel data within a buffer.

## Summary

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

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

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyBufferLayout#bytesPerRow()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyBufferLayout#offset()` The offset in bytes from the beginning of the buffer. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUTexelCopyBufferLayout#rowsPerImage()` |

## Public constructors

### GPUTexelCopyBufferLayout

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

```
GPUTexelCopyBufferLayout(
    offset: Long = 0,
    bytesPerRow: Int = Constants.COPY_STRIDE_UNDEFINED,
    rowsPerImage: Int = Constants.COPY_STRIDE_UNDEFINED
)
```

## Public properties

### bytesPerRow

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

```
var bytesPerRow: Int
```

### offset

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

```
var offset: Long
```

The offset in bytes from the beginning of the buffer.

### rowsPerImage

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

```
var rowsPerImage: Int
```