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

Data Fields

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

Field Documentation

◆ nextInChain

WGPUChainedStruct const* WGPUTextureDescriptor::nextInChain

Definition at line 3790 of file webgpu.h.

◆ label

WGPUStringView WGPUTextureDescriptor::label

This is a Non-Null Input String.

Defaults to WGPU_STRING_VIEW_INIT.

Definition at line 3796 of file webgpu.h.

◆ usage

WGPUTextureUsage WGPUTextureDescriptor::usage

Defaults to WGPUTextureUsage_None.

Definition at line 3800 of file webgpu.h.

◆ dimension

WGPUTextureDimension WGPUTextureDescriptor::dimension

Defaults to WGPUTextureDimension_2D.

Definition at line 3804 of file webgpu.h.

◆ size

WGPUExtent3D WGPUTextureDescriptor::size

Defaults to WGPU_EXTENT_3D_INIT.

Definition at line 3808 of file webgpu.h.

◆ format

WGPUTextureFormat WGPUTextureDescriptor::format

Defaults to WGPUTextureFormat_Undefined.

Definition at line 3812 of file webgpu.h.

◆ mipLevelCount

uint32_t WGPUTextureDescriptor::mipLevelCount

Defaults to 1.

Definition at line 3816 of file webgpu.h.

◆ sampleCount

uint32_t WGPUTextureDescriptor::sampleCount

Defaults to 1.

Definition at line 3820 of file webgpu.h.

◆ viewFormatCount

size_t WGPUTextureDescriptor::viewFormatCount

Defaults to NULL.

Definition at line 3824 of file webgpu.h.

◆ viewFormats

WGPUTextureFormat const* WGPUTextureDescriptor::viewFormats

Definition at line 3825 of file webgpu.h.