Samplers are objects that control how pixels are read from a texture. They can control whether the pixels are smoothed, whether the texture wraps at the edge of its UVs, and more.
Pass has a default sampler that will be used by default, which can be changed using
Pass:setSampler. Also, samplers can be declared in shaders using the following syntax:
layout(set = 2, binding = X) uniform sampler mySampler;
A Sampler can be sent to the variable using
The properties of a Sampler are immutable, and can't be changed after it's created.
|lovr.graphics.newSampler||Create a new Sampler.|
|Sampler:getAnisotropy||Get the anisotropy level of the Sampler.|
|Sampler:getCompareMode||Get the compare mode of the Sampler.|
|Sampler:getFilter||Get the filter mode of the Sampler.|
|Sampler:getMipmapRange||Get the mipmap range of the Sampler.|
|Sampler:getWrap||Get the wrap mode of the Sampler.|