class final
sampler_tdescribes the data to build a core::
member-functions
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_
Returns | what compare op would be used if compare_ |
---|
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. |