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

Data Fields

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

Field Documentation

◆ nextInChain

WGPUChainedStruct const* WGPUBufferDescriptor::nextInChain

Definition at line 1691 of file webgpu.h.

◆ label

WGPUStringView WGPUBufferDescriptor::label

This is a Non-Null Input String.

Defaults to WGPU_STRING_VIEW_INIT.

Definition at line 1697 of file webgpu.h.

◆ usage

WGPUBufferUsage WGPUBufferDescriptor::usage

Defaults to WGPUBufferUsage_None.

Definition at line 1701 of file webgpu.h.

◆ size

uint64_t WGPUBufferDescriptor::size

Defaults to 0.

Definition at line 1705 of file webgpu.h.

◆ mappedAtCreation

WGPUBool WGPUBufferDescriptor::mappedAtCreation

Defaults to 0.

Definition at line 1709 of file webgpu.h.