Lugdunum  0.1.0
Sampler.inl
Go to the documentation of this file.
1 inline void Sampler::setMagFilter(VkFilter magFilter) {
2  _magFilter = magFilter;
3 }
4 
5 inline void Sampler::setMinFilter(VkFilter minFilter) {
6  _minFilter = minFilter;
7 }
8 
9 inline void Sampler::setMipmapMode(VkSamplerMipmapMode mipmapMode) {
10  _mipmapMode = mipmapMode;
11 }
12 
13 inline void Sampler::setAddressModeU(VkSamplerAddressMode addressModeU) {
14  _addressModeU = addressModeU;
15 }
16 
17 inline void Sampler::setAddressModeV(VkSamplerAddressMode addressModeV) {
18  _addressModeV = addressModeV;
19 }
20 
21 inline void Sampler::setAddressModeW(VkSamplerAddressMode addressModeW) {
22  _addressModeW = addressModeW;
23 }
24 
25 inline void Sampler::setMipLodBias(float mipLodBias) {
26  _mipLodBias = mipLodBias;
27 }
28 
29 inline void Sampler::enableAnisotropy(float maxAnisotropy) {
30  _anisotropyEnable = VK_TRUE;
31  _maxAnisotropy = maxAnisotropy;
32 }
33 
34 inline void Sampler::disableAnisotropy() {
35  _anisotropyEnable = VK_FALSE;
36  _maxAnisotropy = 1.0f;
37 }
38 
39 inline void Sampler::setCompareOp(VkCompareOp compareOp) {
40  _compareOp = compareOp;
41 }
42 
43 inline void Sampler::setMinLod(float minLod) {
44  _minLod = minLod;
45 }
46 
47 inline void Sampler::setMaxLod(float maxLod) {
48  _maxLod = maxLod;
49 }
50 
51 inline void Sampler::setBorderColor(VkBorderColor borderColor) {
52  _borderColor = borderColor;
53 }
54 
55 inline void Sampler::setUnnormalizedCoordinates(VkBool32 unnormalizedCoordinates) {
56  _unnormalizedCoordinates = unnormalizedCoordinates;
57 }
58