WebGPU Headers
The WebGPU C API
 
Loading...
Searching...
No Matches
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
 

Detailed Description

Default values can be set using WGPU_TEXTURE_DESCRIPTOR_INIT as initializer.

Definition at line 4113 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUTextureDescriptor::nextInChain

Definition at line 4114 of file webgpu.h.

◆ label

WGPUStringView WGPUTextureDescriptor::label

This is a Non-Null Input String.

The INIT macro sets this to WGPU_STRING_VIEW_INIT.

Definition at line 4120 of file webgpu.h.

◆ usage

WGPUTextureUsage WGPUTextureDescriptor::usage

The INIT macro sets this to WGPUTextureUsage_None.

Definition at line 4124 of file webgpu.h.

◆ dimension

WGPUTextureDimension WGPUTextureDescriptor::dimension

If set to WGPUTextureDimension_Undefined, defaults to WGPUTextureDimension_2D.

The INIT macro sets this to WGPUTextureDimension_Undefined.

Definition at line 4131 of file webgpu.h.

◆ size

WGPUExtent3D WGPUTextureDescriptor::size

The INIT macro sets this to WGPU_EXTENT_3D_INIT.

Definition at line 4135 of file webgpu.h.

◆ format

WGPUTextureFormat WGPUTextureDescriptor::format

The INIT macro sets this to WGPUTextureFormat_Undefined.

Definition at line 4139 of file webgpu.h.

◆ mipLevelCount

uint32_t WGPUTextureDescriptor::mipLevelCount

The INIT macro sets this to 1.

Definition at line 4143 of file webgpu.h.

◆ sampleCount

uint32_t WGPUTextureDescriptor::sampleCount

The INIT macro sets this to 1.

Definition at line 4147 of file webgpu.h.

◆ viewFormatCount

size_t WGPUTextureDescriptor::viewFormatCount

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

Definition at line 4151 of file webgpu.h.

◆ viewFormats

WGPUTextureFormat const* WGPUTextureDescriptor::viewFormats

The INIT macro sets this to NULL.

Definition at line 4155 of file webgpu.h.