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 3548 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUTextureViewDescriptor::nextInChain

Definition at line 3549 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 3555 of file webgpu.h.

◆ format

WGPUTextureFormat WGPUTextureViewDescriptor::format

The INIT macro sets this to WGPUTextureFormat_Undefined.

Definition at line 3559 of file webgpu.h.

◆ dimension

WGPUTextureViewDimension WGPUTextureViewDescriptor::dimension

The INIT macro sets this to WGPUTextureViewDimension_Undefined.

Definition at line 3563 of file webgpu.h.

◆ baseMipLevel

uint32_t WGPUTextureViewDescriptor::baseMipLevel

The INIT macro sets this to 0.

Definition at line 3567 of file webgpu.h.

◆ mipLevelCount

uint32_t WGPUTextureViewDescriptor::mipLevelCount

The INIT macro sets this to WGPU_MIP_LEVEL_COUNT_UNDEFINED.

Definition at line 3571 of file webgpu.h.

◆ baseArrayLayer

uint32_t WGPUTextureViewDescriptor::baseArrayLayer

The INIT macro sets this to 0.

Definition at line 3575 of file webgpu.h.

◆ arrayLayerCount

uint32_t WGPUTextureViewDescriptor::arrayLayerCount

The INIT macro sets this to WGPU_ARRAY_LAYER_COUNT_UNDEFINED.

Definition at line 3579 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 3586 of file webgpu.h.

◆ usage

WGPUTextureUsage WGPUTextureViewDescriptor::usage

The INIT macro sets this to WGPUTextureUsage_None.

Definition at line 3590 of file webgpu.h.