WebGPU Headers: WGPUTextureDescriptor Struct Reference

Data Fields

WGPUChainedStructnextInChain
 
WGPUStringView label
 
WGPUTextureUsage usage
 
WGPUTextureDimension dimension
 
WGPUExtent3D size
 
WGPUTextureFormat format
 
uint32_t mipLevelCount
 
uint32_t sampleCount
 
size_t viewFormatCount
 
WGPUTextureFormat const * viewFormats
 

Default values can be set using WGPU_TEXTURE_DESCRIPTOR_INIT as initializer.

Definition at line 4320 of file webgpu.h.

◆ nextInChain

◆ label

◆ usage

◆ dimension

◆ size

◆ format

◆ mipLevelCount

uint32_t WGPUTextureDescriptor::mipLevelCount

The INIT macro sets this to 1.

Definition at line 4350 of file webgpu.h.

◆ sampleCount

uint32_t WGPUTextureDescriptor::sampleCount

The INIT macro sets this to 1.

Definition at line 4354 of file webgpu.h.

◆ viewFormatCount

size_t WGPUTextureDescriptor::viewFormatCount

Array count for viewFormats. The INIT macro sets this to 0.

Definition at line 4358 of file webgpu.h.

◆ viewFormats

The INIT macro sets this to NULL.

Definition at line 4362 of file webgpu.h.