Sampler provides the sampling parameters, such as minification and magnification filters, mipmap mode, and texture addressing mode for textures. More...
#include <kanzi/core.ui/graphics2d/sampler.hpp>
Classes | |
struct | CreateInfo |
Public Types | |
enum | AddressingMode { AddressingModeWrap , AddressingModeMirror , AddressingModeClamp , AddressingModeMirrorOnce , AddressingModeClampBorder } |
enum | Filter { FilterNearest , FilterLinear } |
enum | MipmapMode { MipmapModeBase , MipmapModeNearest , MipmapModeLinear } |
Public Member Functions | |
AddressingMode | getAddressingMode () const |
Gets the sampler addressing mode. | |
float | getAnisotropy () const |
Gets the sampler anisotropy. | |
GraphicsCompareFunction | getDepthCompareFunction () const |
Gets the depth compare function. | |
Filter | getMagnificationFilter () const |
Gets the sampler magnification filter. | |
float | getMaxLod () const |
Filter | getMinificationFilter () const |
Gets the sampler minification filter. | |
float | getMinLod () const |
float | getMipLodBias () const |
MipmapMode | getMipmapMode () const |
Gets the sampler mipmap mode. | |
Sampler () | |
Sampler (const CreateInfo &createInfo) | |
Friends | |
void | swap (Sampler &left, Sampler &right) |
class | Texture |
Sampler provides the sampling parameters, such as minification and magnification filters, mipmap mode, and texture addressing mode for textures.
|
explicit |
|
explicit |
MipmapMode kanzi::Sampler::getMipmapMode | ( | ) | const |
Gets the sampler mipmap mode.
Filter kanzi::Sampler::getMinificationFilter | ( | ) | const |
Gets the sampler minification filter.
Filter kanzi::Sampler::getMagnificationFilter | ( | ) | const |
Gets the sampler magnification filter.
AddressingMode kanzi::Sampler::getAddressingMode | ( | ) | const |
Gets the sampler addressing mode.
GraphicsCompareFunction kanzi::Sampler::getDepthCompareFunction | ( | ) | const |
Gets the depth compare function.
float kanzi::Sampler::getAnisotropy | ( | ) | const |
Gets the sampler anisotropy.
float kanzi::Sampler::getMipLodBias | ( | ) | const |
float kanzi::Sampler::getMinLod | ( | ) | const |
float kanzi::Sampler::getMaxLod | ( | ) | const |