1 inline void Sampler::setMagFilter(VkFilter magFilter) {
2 _magFilter = magFilter;
5 inline void Sampler::setMinFilter(VkFilter minFilter) {
6 _minFilter = minFilter;
9 inline void Sampler::setMipmapMode(VkSamplerMipmapMode mipmapMode) {
10 _mipmapMode = mipmapMode;
13 inline void Sampler::setAddressModeU(VkSamplerAddressMode addressModeU) {
14 _addressModeU = addressModeU;
17 inline void Sampler::setAddressModeV(VkSamplerAddressMode addressModeV) {
18 _addressModeV = addressModeV;
21 inline void Sampler::setAddressModeW(VkSamplerAddressMode addressModeW) {
22 _addressModeW = addressModeW;
25 inline void Sampler::setMipLodBias(
float mipLodBias) {
26 _mipLodBias = mipLodBias;
29 inline void Sampler::enableAnisotropy(
float maxAnisotropy) {
30 _anisotropyEnable = VK_TRUE;
31 _maxAnisotropy = maxAnisotropy;
34 inline void Sampler::disableAnisotropy() {
35 _anisotropyEnable = VK_FALSE;
36 _maxAnisotropy = 1.0f;
39 inline void Sampler::setCompareOp(VkCompareOp compareOp) {
40 _compareOp = compareOp;
43 inline void Sampler::setMinLod(
float minLod) {
47 inline void Sampler::setMaxLod(
float maxLod) {
51 inline void Sampler::setBorderColor(VkBorderColor borderColor) {
52 _borderColor = borderColor;
55 inline void Sampler::setUnnormalizedCoordinates(VkBool32 unnormalizedCoordinates) {
56 _unnormalizedCoordinates = unnormalizedCoordinates;