33#ifndef DVD_SAMPLER_DESCRIPTOR_H_
34#define DVD_SAMPLER_DESCRIPTOR_H_
SamplerDescriptor loadFromXML(const std::string &entryName, const boost::property_tree::ptree &pt)
void saveToXML(const SamplerDescriptor &sampler, const std::string &entryName, boost::property_tree::ptree &pt)
Handle console commands that start with a forward slash.
size_t GetHash(const PropertyDescriptor< T > &descriptor) noexcept
@ COUNT
Place all properties above this.
TextureFilter _minFilter
Texture filtering mode.
TextureWrap _wrapU
Texture wrap mode (Or S-R-T)
U8 _anisotropyLevel
The value must be in the range [0...255] and is automatically clamped by the max HW supported level.
ComparisonFunction _depthCompareFunc
Used for depth comparison (COUNT = disabled)
static constexpr size_t INVALID_SAMPLER_HASH
TextureBorderColour _borderColour
Used with CLAMP_TO_BORDER as the background colour outside of the texture border.
bool operator==(const SamplerDescriptor &rhs) const =default
TextureMipSampling _mipSampling
UColour4 _customBorderColour
Used with custom border colours.
F32 _min
OpenGL eg: used by TEXTURE_MIN_LOD and TEXTURE_MAX_LOD.
bool operator==(const SamplerLOD &rhs) const noexcept
F32 _bias
OpenGL eg: used by TEXTURE_LOD_BIAS.