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

Data Fields

WGPUChainedStruct const * nextInChain
 
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 2248 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct const* WGPUPrimitiveState::nextInChain

Definition at line 2249 of file webgpu.h.

◆ topology

WGPUPrimitiveTopology WGPUPrimitiveState::topology

Defaults to WGPUPrimitiveTopology_TriangleList.

Definition at line 2253 of file webgpu.h.

◆ stripIndexFormat

WGPUIndexFormat WGPUPrimitiveState::stripIndexFormat

Defaults to (WGPUIndexFormat)0.

Definition at line 2257 of file webgpu.h.

◆ frontFace

WGPUFrontFace WGPUPrimitiveState::frontFace

Defaults to WGPUFrontFace_CCW.

Definition at line 2261 of file webgpu.h.

◆ cullMode

WGPUCullMode WGPUPrimitiveState::cullMode

Defaults to WGPUCullMode_None.

Definition at line 2265 of file webgpu.h.

◆ unclippedDepth

WGPUBool WGPUPrimitiveState::unclippedDepth

Defaults to 0.

Definition at line 2269 of file webgpu.h.