# GPUCompilationMessage

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

*** ** * ** ***


```
class GPUCompilationMessage
```

<br />

*** ** * ** ***

Describes a single message generated during shader compilation.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationMessage#GPUCompilationMessage(kotlin.String,kotlin.Int,kotlin.Long,kotlin.Long,kotlin.Long,kotlin.Long)( message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, type: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, lineNum: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, linePos: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, offset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, length: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationMessage#length()` The length in bytes of the source code related to the message. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationMessage#lineNum()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationMessage#linePos()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationMessage#message()` The compilation message string. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationMessage#offset()` The byte offset from the beginning of the shader source. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUCompilationMessage#type()` The severity of the message (error, warning, or info). |

## Public constructors

### GPUCompilationMessage

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

```
GPUCompilationMessage(
    message: String,
    type: Int,
    lineNum: Long,
    linePos: Long,
    offset: Long,
    length: Long
)
```

## Public properties

### length

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

```
var length: Long
```

The length in bytes of the source code related to the message.

### lineNum

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

```
var lineNum: Long
```

### linePos

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

```
var linePos: Long
```

### message

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

```
var message: String
```

The compilation message string.

### offset

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

```
var offset: Long
```

The byte offset from the beginning of the shader source.

### type

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

```
var type: Int
```

The severity of the message (error, warning, or info).

Value is one of the following:

- `1`
- `2`
- `3`

<br />