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 2437 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUPrimitiveState::nextInChain

Definition at line 2438 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 2445 of file webgpu.h.

◆ stripIndexFormat

WGPUIndexFormat WGPUPrimitiveState::stripIndexFormat

The INIT macro sets this to (WGPUIndexFormat)0.

Definition at line 2449 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 2456 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 2463 of file webgpu.h.

◆ unclippedDepth

WGPUBool WGPUPrimitiveState::unclippedDepth

The INIT macro sets this to 0.

Definition at line 2467 of file webgpu.h.