# GPUPrimitiveState

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

*** ** * ** ***


```
class GPUPrimitiveState
```

<br />

*** ** * ** ***

Describes the primitive assembly and rasterization state for a render pipeline.

## Summary

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

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPrimitiveState#GPUPrimitiveState(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Boolean)( topology: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, stripIndexFormat: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, frontFace: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, cullMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, unclippedDepth: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPrimitiveState#cullMode()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPrimitiveState#frontFace()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPrimitiveState#stripIndexFormat()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPrimitiveState#topology()` The primitive topology. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/GPUPrimitiveState#unclippedDepth()` |

## Public constructors

### GPUPrimitiveState

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

```
GPUPrimitiveState(
    topology: Int = PrimitiveTopology.TriangleList,
    stripIndexFormat: Int = IndexFormat.Undefined,
    frontFace: Int = FrontFace.CCW,
    cullMode: Int = CullMode.None,
    unclippedDepth: Boolean = false
)
```

## Public properties

### cullMode

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

```
var cullMode: Int
```

Value is one of the following:

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

<br />

### frontFace

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

```
var frontFace: Int
```

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### stripIndexFormat

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

```
var stripIndexFormat: Int
```

Value is one of the following:

- `0`
- `1`
- `2`

<br />

### topology

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

```
var topology: Int
```

The primitive topology. Defaults to @see `https://developer.android.com/reference/kotlin/androidx/webgpu/PrimitiveTopology#TriangleList()` if `undefined`.

Value is one of the following:

- `0`
- `1`
- `2`
- `3`
- `4`
- `5`

<br />

### unclippedDepth

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

```
var unclippedDepth: Boolean
```