nicegraf
ngf_sampler_info Struct Reference

Data Fields

ngf_sampler_filter min_filter
 
ngf_sampler_filter mag_filter
 
ngf_sampler_filter mip_filter
 
ngf_sampler_wrap_mode wrap_u
 
ngf_sampler_wrap_mode wrap_v
 
ngf_sampler_wrap_mode wrap_w
 
float lod_max
 
float lod_min
 
float lod_bias
 
float max_anisotropy
 
bool enable_anisotropy
 

Detailed Description

Information for creating an ngf_sampler object.

Field Documentation

◆ enable_anisotropy

bool ngf_sampler_info::enable_anisotropy

Whether to allow anisotropic filtering.

◆ lod_bias

float ngf_sampler_info::lod_bias

A bias to add to the mip level calculated during the sample operation.

◆ lod_max

float ngf_sampler_info::lod_max

Maximum mip level that shall be used during the filtering operation. Note that this refers to the level itself and not the dimensions of data residing in that level, e.g. level 0 (the smallest possible level) has the largest dimensions.

◆ lod_min

float ngf_sampler_info::lod_min

Minimum mip level that shall be used during the filtering operation. Note that this refers to the level itself and not the dimensions of data residing in that level, e.g. level 0 (the smallest possible level) has the largest dimensions.

◆ mag_filter

ngf_sampler_filter ngf_sampler_info::mag_filter

The filter to apply when the sampled image is magnified.

◆ max_anisotropy

float ngf_sampler_info::max_anisotropy

Max allowed degree of anisotropy. Ignored if ngf_sampler_info::enable_anisotropy is false.

◆ min_filter

ngf_sampler_filter ngf_sampler_info::min_filter

The filter to apply when the sampled image is minified .

◆ mip_filter

ngf_sampler_filter ngf_sampler_info::mip_filter

The filter to use when transitioning between mip levels.

◆ wrap_u

ngf_sampler_wrap_mode ngf_sampler_info::wrap_u

Wrap mode for the U coordinate.

◆ wrap_v

ngf_sampler_wrap_mode ngf_sampler_info::wrap_v

Wrap mode for the V coordinate.

◆ wrap_w

ngf_sampler_wrap_mode ngf_sampler_info::wrap_w

Wrap mode for the W coordinate.