diff --git a/base/VulkanFrameBuffer.hpp b/base/VulkanFrameBuffer.hpp index 66714a46..a3941b6c 100644 --- a/base/VulkanFrameBuffer.hpp +++ b/base/VulkanFrameBuffer.hpp @@ -244,7 +244,7 @@ namespace vks samplerInfo.addressModeV = adressMode; samplerInfo.addressModeW = adressMode; samplerInfo.mipLodBias = 0.0f; - samplerInfo.maxAnisotropy = 0; + samplerInfo.maxAnisotropy = 1.0f; samplerInfo.minLod = 0.0f; samplerInfo.maxLod = 1.0f; samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE; diff --git a/bloom/bloom.cpp b/bloom/bloom.cpp index 6675cf19..ad0df5b8 100644 --- a/bloom/bloom.cpp +++ b/bloom/bloom.cpp @@ -356,7 +356,7 @@ public: sampler.addressModeV = sampler.addressModeU; sampler.addressModeW = sampler.addressModeU; sampler.mipLodBias = 0.0f; - sampler.maxAnisotropy = 0; + sampler.maxAnisotropy = 1.0f; sampler.minLod = 0.0f; sampler.maxLod = 1.0f; sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE; diff --git a/computeshader/computeshader.cpp b/computeshader/computeshader.cpp index 714053ea..9c757e9e 100644 --- a/computeshader/computeshader.cpp +++ b/computeshader/computeshader.cpp @@ -173,7 +173,7 @@ public: sampler.addressModeV = sampler.addressModeU; sampler.addressModeW = sampler.addressModeU; sampler.mipLodBias = 0.0f; - sampler.maxAnisotropy = 0; + sampler.maxAnisotropy = 1.0f; sampler.compareOp = VK_COMPARE_OP_NEVER; sampler.minLod = 0.0f; sampler.maxLod = 0.0f; diff --git a/debugmarker/debugmarker.cpp b/debugmarker/debugmarker.cpp index c06ba59a..31ec70ba 100644 --- a/debugmarker/debugmarker.cpp +++ b/debugmarker/debugmarker.cpp @@ -350,7 +350,7 @@ public: samplerInfo.addressModeV = samplerInfo.addressModeU; samplerInfo.addressModeW = samplerInfo.addressModeU; samplerInfo.mipLodBias = 0.0f; - samplerInfo.maxAnisotropy = 0; + samplerInfo.maxAnisotropy = 1.0f; samplerInfo.minLod = 0.0f; samplerInfo.maxLod = 1.0f; samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE; diff --git a/hdr/hdr.cpp b/hdr/hdr.cpp index c9133e07..d6025e78 100644 --- a/hdr/hdr.cpp +++ b/hdr/hdr.cpp @@ -435,7 +435,7 @@ public: sampler.addressModeV = sampler.addressModeU; sampler.addressModeW = sampler.addressModeU; sampler.mipLodBias = 0.0f; - sampler.maxAnisotropy = 0; + sampler.maxAnisotropy = 1.0f; sampler.minLod = 0.0f; sampler.maxLod = 1.0f; sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE; @@ -526,7 +526,7 @@ public: sampler.addressModeV = sampler.addressModeU; sampler.addressModeW = sampler.addressModeU; sampler.mipLodBias = 0.0f; - sampler.maxAnisotropy = 0; + sampler.maxAnisotropy = 1.0f; sampler.minLod = 0.0f; sampler.maxLod = 1.0f; sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE; diff --git a/offscreen/offscreen.cpp b/offscreen/offscreen.cpp index 7098dee8..f3668153 100644 --- a/offscreen/offscreen.cpp +++ b/offscreen/offscreen.cpp @@ -235,7 +235,7 @@ public: samplerInfo.addressModeV = samplerInfo.addressModeU; samplerInfo.addressModeW = samplerInfo.addressModeU; samplerInfo.mipLodBias = 0.0f; - samplerInfo.maxAnisotropy = 0; + samplerInfo.maxAnisotropy = 1.0f; samplerInfo.minLod = 0.0f; samplerInfo.maxLod = 1.0f; samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE; diff --git a/particlefire/particlefire.cpp b/particlefire/particlefire.cpp index e463e560..b09b7bd6 100644 --- a/particlefire/particlefire.cpp +++ b/particlefire/particlefire.cpp @@ -370,7 +370,7 @@ public: // Both particle textures have the same number of mip maps samplerCreateInfo.maxLod = float(textures.particles.fire.mipLevels); // Enable anisotropic filtering - samplerCreateInfo.maxAnisotropy = 8; + samplerCreateInfo.maxAnisotropy = 8.0f; samplerCreateInfo.anisotropyEnable = VK_TRUE; // Use a different border color (than the normal texture loader) for additive blending samplerCreateInfo.borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK; diff --git a/radialblur/radialblur.cpp b/radialblur/radialblur.cpp index 34ee01ad..60282b14 100644 --- a/radialblur/radialblur.cpp +++ b/radialblur/radialblur.cpp @@ -224,7 +224,7 @@ public: samplerInfo.addressModeV = samplerInfo.addressModeU; samplerInfo.addressModeW = samplerInfo.addressModeU; samplerInfo.mipLodBias = 0.0f; - samplerInfo.maxAnisotropy = 0; + samplerInfo.maxAnisotropy = 1.0f; samplerInfo.minLod = 0.0f; samplerInfo.maxLod = 1.0f; samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE; diff --git a/raytracing/raytracing.cpp b/raytracing/raytracing.cpp index 6d652ea5..b63f265f 100644 --- a/raytracing/raytracing.cpp +++ b/raytracing/raytracing.cpp @@ -183,7 +183,7 @@ public: sampler.addressModeV = sampler.addressModeU; sampler.addressModeW = sampler.addressModeU; sampler.mipLodBias = 0.0f; - sampler.maxAnisotropy = 0; + sampler.maxAnisotropy = 1.0f; sampler.compareOp = VK_COMPARE_OP_NEVER; sampler.minLod = 0.0f; sampler.maxLod = 0.0f; diff --git a/shadowmappingomni/shadowmappingomni.cpp b/shadowmappingomni/shadowmappingomni.cpp index 6920aa58..ff080939 100644 --- a/shadowmappingomni/shadowmappingomni.cpp +++ b/shadowmappingomni/shadowmappingomni.cpp @@ -242,7 +242,7 @@ public: sampler.addressModeV = sampler.addressModeU; sampler.addressModeW = sampler.addressModeU; sampler.mipLodBias = 0.0f; - sampler.maxAnisotropy = 0; + sampler.maxAnisotropy = 1.0f; sampler.compareOp = VK_COMPARE_OP_NEVER; sampler.minLod = 0.0f; sampler.maxLod = 1.0f;