WebGPU Headers
The WebGPU C API
 
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 2774 of file webgpu.h.

Field Documentation

◆ nextInChain

WGPUChainedStruct* WGPUSamplerDescriptor::nextInChain

Definition at line 2775 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 2781 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 2788 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 2795 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 2802 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 2809 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 2816 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 2823 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 2831 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 2839 of file webgpu.h.

◆ compare

WGPUCompareFunction WGPUSamplerDescriptor::compare

The INIT macro sets this to WGPUCompareFunction_Undefined.

Definition at line 2843 of file webgpu.h.

◆ maxAnisotropy

uint16_t WGPUSamplerDescriptor::maxAnisotropy

The INIT macro sets this to 1.

Definition at line 2847 of file webgpu.h.