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

Data Fields

WGPUChainedStruct const * nextInChain
 
uint32_t binding
 
WGPUBuffer buffer
 
uint64_t offset
 
uint64_t size
 
WGPUSampler sampler
 
WGPUTextureView textureView
 

Detailed Description

Default values can be set using WGPU_BIND_GROUP_ENTRY_INIT as initializer.

Definition at line 1572 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct const* WGPUBindGroupEntry::nextInChain

Definition at line 1573 of file webgpu.h.

◆ binding

uint32_t WGPUBindGroupEntry::binding

Binding index in the bind group.

Defaults to 0.

Definition at line 1579 of file webgpu.h.

◆ buffer

WGPUBuffer WGPUBindGroupEntry::buffer

Set this if the binding is a buffer object. Otherwise must be null.

Defaults to NULL.

Definition at line 1586 of file webgpu.h.

◆ offset

uint64_t WGPUBindGroupEntry::offset

If the binding is a buffer, this is the byte offset of the binding range. Otherwise ignored.

Defaults to 0.

Definition at line 1593 of file webgpu.h.

◆ size

uint64_t WGPUBindGroupEntry::size

If the binding is a buffer, this is the byte size of the binding range (WGPU_WHOLE_SIZE means the binding ends at the end of the buffer). Otherwise ignored.

Defaults to WGPU_WHOLE_SIZE.

Definition at line 1601 of file webgpu.h.

◆ sampler

WGPUSampler WGPUBindGroupEntry::sampler

Set this if the binding is a sampler object. Otherwise must be null.

Defaults to NULL.

Definition at line 1608 of file webgpu.h.

◆ textureView

WGPUTextureView WGPUBindGroupEntry::textureView

Set this if the binding is a texture view object. Otherwise must be null.

Defaults to NULL.

Definition at line 1615 of file webgpu.h.