core::data::sampler_t class final

describes the data to build a core::ivk::sampler_t instance

member-functions

mipmaps
returns if mipmapping is enabled or not
const public
mipmaps
enables or disables mipmapping on this sampler.
public
mip_bias
returns the mip_bias that might be present on this sampler.
const public
mip_bias
sets the mip bias when sampling mipmaps.
public
mip_mode
returns the mode for mipmap texture lookups.
const public
mip_mode
sets the mode for mipmap texture lookups.
public
mip_minlod
returns the minimal mipmap LOD this instance has set.
const public
mip_minlod
sets the minimal mipmap LOD offset for this instance.
public
mip_maxlod
returns the max mipmap LOD this instance has set.
const public
mip_maxlod
sets the minimal mipmap max LOD for this instance.
public
addressU
returns how this instances deals with texture tiling in the U-axis.
const public
addressU
sets how this instance should deal with texture tiling in the U-axis.
public
addressV
returns how this instances deals with texture tiling in the V-axis.
const public
addressV
sets how this instance should deal with texture tiling in the V-axis.
public
addressW
returns how this instances deals with texture tiling in the W-axis.
const public
addressW
sets how this instance should deal with texture tiling in the W-axis.
public
border_color
returns the border color that will be used during texture lookups.
const public
border_color
sets the border color that should be used during texture lookups.
public
anisotropic_filtering
returns if anisotropic filtering is enabled.
const public
anisotropic_filtering
call this to enable or disable anisotropic filtering.
public
max_anisotropy
returns the max anistropic value for this instance.
const public
max_anisotropy
sets the max anistropic value for this instance.
public
compare_mode
returns if compare operations have been enabled or not.
const public
compare_mode
enables or disables compare ops.
public
compare_op
returns what compare op would be used if compare_mode() is true.
const public
compare_op
sets the compare op to a new value.
public
filter_min
returns the filtering mode to use when dealing with minification.
const public
filter_min
sets the filtering mode to use when dealing with minification.
public
filter_max
returns the filtering mode to use when dealing with magnification.
const public
filter_max
sets the filtering mode to use when dealing with magnification.
public
normalized_coordinates
returns if the coordinates for this sampler will be normalized or not.
const public
normalized_coordinates
enables or disables coordinate normalization when this sampler is used.
public

Function documentation

bool core::data::sampler_t::mipmaps() const

Brief

returns if mipmapping is enabled or not

Returns if mipmapping is enabled or not

void core::data::sampler_t::mipmaps(bool value)

Brief

enables or disables mipmapping on this sampler.

Parameters
value in true for enabling mipmapping.

float core::data::sampler_t::mip_bias() const

Brief

returns the mip_bias that might be present on this sampler.

Details

Returns the mip_bias that might be present on this sampler.

void core::data::sampler_t::mip_bias(float value)

Brief

sets the mip bias when sampling mipmaps.

Details

Parameters
value in the bias to apply to mipmap sampling.

core::gfx::sampler_mipmap_mode core::data::sampler_t::mip_mode() const

Brief

returns the mode for mipmap texture lookups.

Returns the mode for mipmap texture lookups.

void core::data::sampler_t::mip_mode(core::gfx::sampler_mipmap_mode value)

Brief

sets the mode for mipmap texture lookups.

Parameters
value in the mode to change to.

float core::data::sampler_t::mip_minlod() const

Brief

returns the minimal mipmap LOD this instance has set.

Returns the minimal mipmap LOD this instance has set.

void core::data::sampler_t::mip_minlod(float value)

Brief

sets the minimal mipmap LOD offset for this instance.

Parameters
value in the value to set.

float core::data::sampler_t::mip_maxlod() const

Brief

returns the max mipmap LOD this instance has set.

Details

Returns the max mipmap LOD this instance has set.

void core::data::sampler_t::mip_maxlod(float value)

Brief

sets the minimal mipmap max LOD for this instance.

Parameters
value in the value to set.

core::gfx::sampler_address_mode core::data::sampler_t::addressU() const

Brief

returns how this instances deals with texture tiling in the U-axis.

Returns how this instances deals with texture tiling in the U-axis.

void core::data::sampler_t::addressU(core::gfx::sampler_address_mode value)

Brief

sets how this instance should deal with texture tiling in the U-axis.

Parameters
value in the mode to set this instance to.

core::gfx::sampler_address_mode core::data::sampler_t::addressV() const

Brief

returns how this instances deals with texture tiling in the V-axis.

Returns how this instances deals with texture tiling in the V-axis.

void core::data::sampler_t::addressV(core::gfx::sampler_address_mode value)

Brief

sets how this instance should deal with texture tiling in the V-axis.

Parameters
value in the mode to set this instance to.

core::gfx::sampler_address_mode core::data::sampler_t::addressW() const

Brief

returns how this instances deals with texture tiling in the W-axis.

Returns how this instances deals with texture tiling in the W-axis.

void core::data::sampler_t::addressW(core::gfx::sampler_address_mode value)

Brief

sets how this instance should deal with texture tiling in the W-axis.

Parameters
value in the mode to set this instance to.

core::gfx::border_color core::data::sampler_t::border_color() const

Brief

returns the border color that will be used during texture lookups.

Returns the border color that will be used during texture lookups.

void core::data::sampler_t::border_color(core::gfx::border_color value)

Brief

sets the border color that should be used during texture lookups.

Parameters
value in the new border color value.

bool core::data::sampler_t::anisotropic_filtering() const

Brief

returns if anisotropic filtering is enabled.

Returns if anisotropic filtering is enabled.

void core::data::sampler_t::anisotropic_filtering(bool value)

Brief

call this to enable or disable anisotropic filtering.

Details

Parameters
value in set to true to enable anisotropic filtering.

float core::data::sampler_t::max_anisotropy() const

Brief

returns the max anistropic value for this instance.

Returns the max anistropic value for this instance.

void core::data::sampler_t::max_anisotropy(float value)

Brief

sets the max anistropic value for this instance.

Parameters
value in the value to set the max anisotropic value.

bool core::data::sampler_t::compare_mode() const

Brief

returns if compare operations have been enabled or not.

Returns if compare operations have been enabled or not.

void core::data::sampler_t::compare_mode(bool value)

Brief

enables or disables compare ops.

Parameters
value in set to true to enable compare ops.

core::gfx::compare_op core::data::sampler_t::compare_op() const

Brief

returns what compare op would be used if compare_mode() is true.

Returns what compare op would be used if compare_mode() is true.

void core::data::sampler_t::compare_op(core::gfx::compare_op value)

Brief

sets the compare op to a new value.

Details

Parameters
value in the new compare op to use.

core::gfx::filter core::data::sampler_t::filter_min() const

Brief

returns the filtering mode to use when dealing with minification.

Returns the filtering mode to use when dealing with minification.

void core::data::sampler_t::filter_min(core::gfx::filter value)

Brief

sets the filtering mode to use when dealing with minification.

Parameters
value in the new filter mode to use.

core::gfx::filter core::data::sampler_t::filter_max() const

Brief

returns the filtering mode to use when dealing with magnification.

Returns the filtering mode to use when dealing with magnification.

void core::data::sampler_t::filter_max(core::gfx::filter value)

Brief

sets the filtering mode to use when dealing with magnification.

Parameters
value in the new filter mode to use.

bool core::data::sampler_t::normalized_coordinates() const

Brief

returns if the coordinates for this sampler will be normalized or not.

Returns if the coordinates for this sampler will be normalized or not.

void core::data::sampler_t::normalized_coordinates(bool value)

Brief

enables or disables coordinate normalization when this sampler is used.

Parameters
value in enables or disables the behaviour.