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

Data Fields

WGPUChainedStructnextInChain
 
WGPUStringView label
 
WGPUBufferUsage usage
 
uint64_t size
 
WGPUBool mappedAtCreation
 

Detailed Description

Default values can be set using WGPU_BUFFER_DESCRIPTOR_INIT as initializer.

Definition at line 1867 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUBufferDescriptor::nextInChain

Definition at line 1868 of file webgpu.h.

◆ label

WGPUStringView WGPUBufferDescriptor::label

This is a Non-Null Input String.

The INIT macro sets this to WGPU_STRING_VIEW_INIT.

Definition at line 1874 of file webgpu.h.

◆ usage

WGPUBufferUsage WGPUBufferDescriptor::usage

The INIT macro sets this to WGPUBufferUsage_None.

Definition at line 1878 of file webgpu.h.

◆ size

uint64_t WGPUBufferDescriptor::size

The INIT macro sets this to 0.

Definition at line 1882 of file webgpu.h.

◆ mappedAtCreation

WGPUBool WGPUBufferDescriptor::mappedAtCreation

The INIT macro sets this to 0.

Definition at line 1886 of file webgpu.h.