menu

GpuPrimitiveState

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

Primitive-state descriptor.

language/library/src/gpu/binding/pipeline.ds:347:362
1export struct GpuPrimitiveState {2    topology: GpuPrimitiveTopology;3    stripIndexFormat: GpuIndexFormat;4    frontFace: GpuFrontFace;5    cullMode: GpuCullMode;6    unclippedDepth: boolean;7    polygonMode: GpuPolygonMode;8    conservative: boolean;9}

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.