WebGPU Headers
The WebGPU C API
 
All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches
WGPUSamplerDescriptor Struct Reference

Data Fields

WGPUChainedStructnextInChain
 
WGPUStringView label
 
WGPUAddressMode addressModeU
 
WGPUAddressMode addressModeV
 
WGPUAddressMode addressModeW
 
WGPUFilterMode magFilter
 
WGPUFilterMode minFilter
 
WGPUMipmapFilterMode mipmapFilter
 
float lodMinClamp
 
float lodMaxClamp
 
WGPUCompareFunction compare
 
uint16_t maxAnisotropy
 

Detailed Description

Default values can be set using WGPU_SAMPLER_DESCRIPTOR_INIT as initializer.

Definition at line 2787 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUSamplerDescriptor::nextInChain

Definition at line 2788 of file webgpu.h.

◆ label

WGPUStringView WGPUSamplerDescriptor::label

This is a Non-Null Input String.

The INIT macro sets this to WGPU_STRING_VIEW_INIT.

Definition at line 2794 of file webgpu.h.

◆ addressModeU

WGPUAddressMode WGPUSamplerDescriptor::addressModeU

If set to WGPUAddressMode_Undefined, defaults to WGPUAddressMode_ClampToEdge.

The INIT macro sets this to WGPUAddressMode_Undefined.

Definition at line 2801 of file webgpu.h.

◆ addressModeV

WGPUAddressMode WGPUSamplerDescriptor::addressModeV

If set to WGPUAddressMode_Undefined, defaults to WGPUAddressMode_ClampToEdge.

The INIT macro sets this to WGPUAddressMode_Undefined.

Definition at line 2808 of file webgpu.h.

◆ addressModeW

WGPUAddressMode WGPUSamplerDescriptor::addressModeW

If set to WGPUAddressMode_Undefined, defaults to WGPUAddressMode_ClampToEdge.

The INIT macro sets this to WGPUAddressMode_Undefined.

Definition at line 2815 of file webgpu.h.

◆ magFilter

WGPUFilterMode WGPUSamplerDescriptor::magFilter

If set to WGPUFilterMode_Undefined, defaults to WGPUFilterMode_Nearest.

The INIT macro sets this to WGPUFilterMode_Undefined.

Definition at line 2822 of file webgpu.h.

◆ minFilter

WGPUFilterMode WGPUSamplerDescriptor::minFilter

If set to WGPUFilterMode_Undefined, defaults to WGPUFilterMode_Nearest.

The INIT macro sets this to WGPUFilterMode_Undefined.

Definition at line 2829 of file webgpu.h.

◆ mipmapFilter

WGPUMipmapFilterMode WGPUSamplerDescriptor::mipmapFilter

If set to WGPUFilterMode_Undefined, defaults to WGPUMipmapFilterMode_Nearest.

The INIT macro sets this to WGPUMipmapFilterMode_Undefined.

Definition at line 2836 of file webgpu.h.

◆ lodMinClamp

float WGPUSamplerDescriptor::lodMinClamp

TODO

If non-finite, produces a Non-Finite Float Value Errors.

The INIT macro sets this to 0.f.

Definition at line 2844 of file webgpu.h.

◆ lodMaxClamp

float WGPUSamplerDescriptor::lodMaxClamp

TODO

If non-finite, produces a Non-Finite Float Value Errors.

The INIT macro sets this to 32.f.

Definition at line 2852 of file webgpu.h.

◆ compare

WGPUCompareFunction WGPUSamplerDescriptor::compare

The INIT macro sets this to WGPUCompareFunction_Undefined.

Definition at line 2856 of file webgpu.h.

◆ maxAnisotropy

uint16_t WGPUSamplerDescriptor::maxAnisotropy

The INIT macro sets this to 1.

Definition at line 2860 of file webgpu.h.