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

Data Fields

WGPUChainedStructnextInChain
 
WGPUStringView label
 
WGPUTextureFormat format
 
WGPUTextureViewDimension dimension
 
uint32_t baseMipLevel
 
uint32_t mipLevelCount
 
uint32_t baseArrayLayer
 
uint32_t arrayLayerCount
 
WGPUTextureAspect aspect
 
WGPUTextureUsage usage
 

Detailed Description

Default values can be set using WGPU_TEXTURE_VIEW_DESCRIPTOR_INIT as initializer.

Definition at line 3462 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUTextureViewDescriptor::nextInChain

Definition at line 3463 of file webgpu.h.

◆ label

WGPUStringView WGPUTextureViewDescriptor::label

This is a Non-Null Input String.

The INIT macro sets this to WGPU_STRING_VIEW_INIT.

Definition at line 3469 of file webgpu.h.

◆ format

WGPUTextureFormat WGPUTextureViewDescriptor::format

The INIT macro sets this to WGPUTextureFormat_Undefined.

Definition at line 3473 of file webgpu.h.

◆ dimension

WGPUTextureViewDimension WGPUTextureViewDescriptor::dimension

The INIT macro sets this to WGPUTextureViewDimension_Undefined.

Definition at line 3477 of file webgpu.h.

◆ baseMipLevel

uint32_t WGPUTextureViewDescriptor::baseMipLevel

The INIT macro sets this to 0.

Definition at line 3481 of file webgpu.h.

◆ mipLevelCount

uint32_t WGPUTextureViewDescriptor::mipLevelCount

The INIT macro sets this to WGPU_MIP_LEVEL_COUNT_UNDEFINED.

Definition at line 3485 of file webgpu.h.

◆ baseArrayLayer

uint32_t WGPUTextureViewDescriptor::baseArrayLayer

The INIT macro sets this to 0.

Definition at line 3489 of file webgpu.h.

◆ arrayLayerCount

uint32_t WGPUTextureViewDescriptor::arrayLayerCount

The INIT macro sets this to WGPU_ARRAY_LAYER_COUNT_UNDEFINED.

Definition at line 3493 of file webgpu.h.

◆ aspect

WGPUTextureAspect WGPUTextureViewDescriptor::aspect

If set to WGPUTextureAspect_Undefined, defaults to WGPUTextureAspect_All.

The INIT macro sets this to WGPUTextureAspect_Undefined.

Definition at line 3500 of file webgpu.h.

◆ usage

WGPUTextureUsage WGPUTextureViewDescriptor::usage

The INIT macro sets this to WGPUTextureUsage_None.

Definition at line 3504 of file webgpu.h.