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

Data Fields

WGPUChainedStruct const * nextInChain
 
WGPUVertexStepMode stepMode
 
uint64_t arrayStride
 
size_t attributeCount
 
WGPUVertexAttribute const * attributes
 

Detailed Description

Default values can be set using WGPU_VERTEX_BUFFER_LAYOUT_INIT as initializer.

Definition at line 3847 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct const* WGPUVertexBufferLayout::nextInChain

Definition at line 3848 of file webgpu.h.

◆ stepMode

WGPUVertexStepMode WGPUVertexBufferLayout::stepMode

The step mode for the vertex buffer. If WGPUVertexStepMode_VertexBufferNotUsed, indicates a "hole" in the parent WGPUVertexState buffers array: the pipeline does not use a vertex buffer at this location.

Defaults to WGPUVertexStepMode_VertexBufferNotUsed.

Definition at line 3856 of file webgpu.h.

◆ arrayStride

uint64_t WGPUVertexBufferLayout::arrayStride

Defaults to 0.

Definition at line 3860 of file webgpu.h.

◆ attributeCount

size_t WGPUVertexBufferLayout::attributeCount

Defaults to NULL.

Definition at line 3864 of file webgpu.h.

◆ attributes

WGPUVertexAttribute const* WGPUVertexBufferLayout::attributes

Definition at line 3865 of file webgpu.h.