ReShade
A generic post-processing injector for games and video software.
Public Attributes | List of all members
reshade::api::sampler_desc Struct Reference

Describes a sampler state. More...

#include <reshade_api_resource.hpp>

Public Attributes

filter_mode filter
 Filtering mode to use when sampling a texture. More...
 
texture_address_mode address_u
 Method to use for resolving U texture coordinates outside 0 to 1 range. More...
 
texture_address_mode address_v
 Method to use for resolving V texture coordinates outside 0 to 1 range. More...
 
texture_address_mode address_w
 Method to use for resolving W texture coordinates outside 0 to 1 range. More...
 
float mip_lod_bias
 Offset applied to the calculated mipmap level when sampling a texture. More...
 
float max_anisotropy
 Clamping value to use when filtering mode is filter_mode::anisotropic. More...
 
compare_op compare_op
 Comparison function to use to compare sampled data against existing sampled data. More...
 
float border_color [4]
 RGBA value to return for texture coordinates outside 0 to 1 range when addressing mode is texture_address_mode::border. More...
 
float min_lod
 Lower end of the mipmap range to clamp access to. More...
 
float max_lod
 Upper end of the mipmap range to clamp access to. More...
 

Detailed Description

Describes a sampler state.

Member Data Documentation

◆ address_u

texture_address_mode reshade::api::sampler_desc::address_u

Method to use for resolving U texture coordinates outside 0 to 1 range.

◆ address_v

texture_address_mode reshade::api::sampler_desc::address_v

Method to use for resolving V texture coordinates outside 0 to 1 range.

◆ address_w

texture_address_mode reshade::api::sampler_desc::address_w

Method to use for resolving W texture coordinates outside 0 to 1 range.

◆ border_color

float reshade::api::sampler_desc::border_color[4]

RGBA value to return for texture coordinates outside 0 to 1 range when addressing mode is texture_address_mode::border.

◆ compare_op

compare_op reshade::api::sampler_desc::compare_op

Comparison function to use to compare sampled data against existing sampled data.

◆ filter

filter_mode reshade::api::sampler_desc::filter

Filtering mode to use when sampling a texture.

◆ max_anisotropy

float reshade::api::sampler_desc::max_anisotropy

Clamping value to use when filtering mode is filter_mode::anisotropic.

◆ max_lod

float reshade::api::sampler_desc::max_lod

Upper end of the mipmap range to clamp access to.

◆ min_lod

float reshade::api::sampler_desc::min_lod

Lower end of the mipmap range to clamp access to.

◆ mip_lod_bias

float reshade::api::sampler_desc::mip_lod_bias

Offset applied to the calculated mipmap level when sampling a texture.


The documentation for this struct was generated from the following file: