WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
WGPUPrimitiveState Struct Reference

Data Fields

WGPUChainedStructnextInChain
 
WGPUPrimitiveTopology topology
 
WGPUIndexFormat stripIndexFormat
 
WGPUFrontFace frontFace
 
WGPUCullMode cullMode
 
WGPUBool unclippedDepth
 

Detailed Description

Default values can be set using WGPU_PRIMITIVE_STATE_INIT as initializer.

Definition at line 2488 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUPrimitiveState::nextInChain

Definition at line 2489 of file webgpu.h.

◆ topology

WGPUPrimitiveTopology WGPUPrimitiveState::topology

If set to WGPUPrimitiveTopology_Undefined, defaults to WGPUPrimitiveTopology_TriangleList.

The INIT macro sets this to WGPUPrimitiveTopology_Undefined.

Definition at line 2496 of file webgpu.h.

◆ stripIndexFormat

WGPUIndexFormat WGPUPrimitiveState::stripIndexFormat

The INIT macro sets this to WGPUIndexFormat_Undefined.

Definition at line 2500 of file webgpu.h.

◆ frontFace

WGPUFrontFace WGPUPrimitiveState::frontFace

If set to WGPUFrontFace_Undefined, defaults to WGPUFrontFace_CCW.

The INIT macro sets this to WGPUFrontFace_Undefined.

Definition at line 2507 of file webgpu.h.

◆ cullMode

WGPUCullMode WGPUPrimitiveState::cullMode

If set to WGPUCullMode_Undefined, defaults to WGPUCullMode_None.

The INIT macro sets this to WGPUCullMode_Undefined.

Definition at line 2514 of file webgpu.h.

◆ unclippedDepth

WGPUBool WGPUPrimitiveState::unclippedDepth

The INIT macro sets this to WGPU_FALSE.

Definition at line 2518 of file webgpu.h.