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

Data Fields

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

Field Documentation

◆ nextInChain

WGPUChainedStruct const* WGPUSamplerDescriptor::nextInChain

Definition at line 2592 of file webgpu.h.

◆ label

WGPUStringView WGPUSamplerDescriptor::label

This is a Non-Null Input String.

Defaults to WGPU_STRING_VIEW_INIT.

Definition at line 2598 of file webgpu.h.

◆ addressModeU

WGPUAddressMode WGPUSamplerDescriptor::addressModeU

Defaults to WGPUAddressMode_ClampToEdge.

Definition at line 2602 of file webgpu.h.

◆ addressModeV

WGPUAddressMode WGPUSamplerDescriptor::addressModeV

Defaults to WGPUAddressMode_ClampToEdge.

Definition at line 2606 of file webgpu.h.

◆ addressModeW

WGPUAddressMode WGPUSamplerDescriptor::addressModeW

Defaults to WGPUAddressMode_ClampToEdge.

Definition at line 2610 of file webgpu.h.

◆ magFilter

WGPUFilterMode WGPUSamplerDescriptor::magFilter

Defaults to WGPUFilterMode_Nearest.

Definition at line 2614 of file webgpu.h.

◆ minFilter

WGPUFilterMode WGPUSamplerDescriptor::minFilter

Defaults to WGPUFilterMode_Nearest.

Definition at line 2618 of file webgpu.h.

◆ mipmapFilter

WGPUMipmapFilterMode WGPUSamplerDescriptor::mipmapFilter

Defaults to WGPUMipmapFilterMode_Nearest.

Definition at line 2622 of file webgpu.h.

◆ lodMinClamp

float WGPUSamplerDescriptor::lodMinClamp

Defaults to 0.f.

Definition at line 2626 of file webgpu.h.

◆ lodMaxClamp

float WGPUSamplerDescriptor::lodMaxClamp

Defaults to 32.f.

Definition at line 2630 of file webgpu.h.

◆ compare

WGPUCompareFunction WGPUSamplerDescriptor::compare

Defaults to WGPUCompareFunction_Undefined.

Definition at line 2634 of file webgpu.h.

◆ maxAnisotropy

uint16_t WGPUSamplerDescriptor::maxAnisotropy

Defaults to 1.

Definition at line 2638 of file webgpu.h.