# GpuPrimitiveState

`import { GpuPrimitiveState } from "destack:gpu/binding";`

Primitive-state descriptor.

```ds title="GpuPrimitiveState"
export struct GpuPrimitiveState {
    topology: GpuPrimitiveTopology;
    stripIndexFormat: GpuIndexFormat;
    frontFace: GpuFrontFace;
    cullMode: GpuCullMode;
    unclippedDepth: boolean;
    polygonMode: GpuPolygonMode;
    conservative: boolean;
}
```

[language/library/src/gpu/binding/pipeline.ds:347:362](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/pipeline.ds#L347-L362)

## Members

### `topology: GpuPrimitiveTopology`

Primitive topology selector.

### `stripIndexFormat: GpuIndexFormat`

Strip index format selector when one strip topology uses indices.

### `frontFace: GpuFrontFace`

Front-face winding selector.

### `cullMode: GpuCullMode`

Face-culling selector.

### `unclippedDepth: boolean`

Whether unclipped depth is enabled.

### `polygonMode: GpuPolygonMode`

Polygon rasterization selector.

### `conservative: boolean`

Whether conservative rasterization is enabled.
