tp::SamplerSetup struct

Constructors, destructors, conversion operators

SamplerSetup(SamplerFiltering filtering, SamplerAddressing addressing, float maxAnisotropy = 1.0f, float minMipLod = 0.0f, float maxMipLod = VK_LOD_CLAMP_NONE, float mipLodBias = 0.0f, bool compareEnable = false, CompareOp compareOp = CompareOp::Never, bool unnormalizedCoordinates = false)

Function documentation

tp::SamplerSetup::SamplerSetup(SamplerFiltering filtering, SamplerAddressing addressing, float maxAnisotropy = 1.0f, float minMipLod = 0.0f, float maxMipLod = VK_LOD_CLAMP_NONE, float mipLodBias = 0.0f, bool compareEnable = false, CompareOp compareOp = CompareOp::Never, bool unnormalizedCoordinates = false)

Parameters
filtering The filtering modes for the sampler lookup.
addressing The addressing modes for the sampler lookup.
maxAnisotropy The maximum anisotropy level to use. Anisotropic filtering will be enabled with value > 1.
minMipLod Clamps the mipmap LOD value to the given minimum.
maxMipLod Clamps the mipmap LOD value to the given maximum.
mipLodBias The bias to be added to the mipmap LOD calculation.
compareEnable If true, enables comparison against a reference value during lookups.
compareOp The comparison operator to use if compareEnable is true.
unnormalizedCoordinates If true, the range of coordinates used for lookups will span the actual dimensions of the image, rather than from 0 to 1.