Set sampler max. anisotropy to 1.0f instead of 0.0f (valdidation)
Refs #277
This commit is contained in:
parent
f447047913
commit
55da334ba1
10 changed files with 11 additions and 11 deletions
|
|
@ -244,7 +244,7 @@ namespace vks
|
||||||
samplerInfo.addressModeV = adressMode;
|
samplerInfo.addressModeV = adressMode;
|
||||||
samplerInfo.addressModeW = adressMode;
|
samplerInfo.addressModeW = adressMode;
|
||||||
samplerInfo.mipLodBias = 0.0f;
|
samplerInfo.mipLodBias = 0.0f;
|
||||||
samplerInfo.maxAnisotropy = 0;
|
samplerInfo.maxAnisotropy = 1.0f;
|
||||||
samplerInfo.minLod = 0.0f;
|
samplerInfo.minLod = 0.0f;
|
||||||
samplerInfo.maxLod = 1.0f;
|
samplerInfo.maxLod = 1.0f;
|
||||||
samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
||||||
|
|
|
||||||
|
|
@ -356,7 +356,7 @@ public:
|
||||||
sampler.addressModeV = sampler.addressModeU;
|
sampler.addressModeV = sampler.addressModeU;
|
||||||
sampler.addressModeW = sampler.addressModeU;
|
sampler.addressModeW = sampler.addressModeU;
|
||||||
sampler.mipLodBias = 0.0f;
|
sampler.mipLodBias = 0.0f;
|
||||||
sampler.maxAnisotropy = 0;
|
sampler.maxAnisotropy = 1.0f;
|
||||||
sampler.minLod = 0.0f;
|
sampler.minLod = 0.0f;
|
||||||
sampler.maxLod = 1.0f;
|
sampler.maxLod = 1.0f;
|
||||||
sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
||||||
|
|
|
||||||
|
|
@ -173,7 +173,7 @@ public:
|
||||||
sampler.addressModeV = sampler.addressModeU;
|
sampler.addressModeV = sampler.addressModeU;
|
||||||
sampler.addressModeW = sampler.addressModeU;
|
sampler.addressModeW = sampler.addressModeU;
|
||||||
sampler.mipLodBias = 0.0f;
|
sampler.mipLodBias = 0.0f;
|
||||||
sampler.maxAnisotropy = 0;
|
sampler.maxAnisotropy = 1.0f;
|
||||||
sampler.compareOp = VK_COMPARE_OP_NEVER;
|
sampler.compareOp = VK_COMPARE_OP_NEVER;
|
||||||
sampler.minLod = 0.0f;
|
sampler.minLod = 0.0f;
|
||||||
sampler.maxLod = 0.0f;
|
sampler.maxLod = 0.0f;
|
||||||
|
|
|
||||||
|
|
@ -350,7 +350,7 @@ public:
|
||||||
samplerInfo.addressModeV = samplerInfo.addressModeU;
|
samplerInfo.addressModeV = samplerInfo.addressModeU;
|
||||||
samplerInfo.addressModeW = samplerInfo.addressModeU;
|
samplerInfo.addressModeW = samplerInfo.addressModeU;
|
||||||
samplerInfo.mipLodBias = 0.0f;
|
samplerInfo.mipLodBias = 0.0f;
|
||||||
samplerInfo.maxAnisotropy = 0;
|
samplerInfo.maxAnisotropy = 1.0f;
|
||||||
samplerInfo.minLod = 0.0f;
|
samplerInfo.minLod = 0.0f;
|
||||||
samplerInfo.maxLod = 1.0f;
|
samplerInfo.maxLod = 1.0f;
|
||||||
samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
||||||
|
|
|
||||||
|
|
@ -435,7 +435,7 @@ public:
|
||||||
sampler.addressModeV = sampler.addressModeU;
|
sampler.addressModeV = sampler.addressModeU;
|
||||||
sampler.addressModeW = sampler.addressModeU;
|
sampler.addressModeW = sampler.addressModeU;
|
||||||
sampler.mipLodBias = 0.0f;
|
sampler.mipLodBias = 0.0f;
|
||||||
sampler.maxAnisotropy = 0;
|
sampler.maxAnisotropy = 1.0f;
|
||||||
sampler.minLod = 0.0f;
|
sampler.minLod = 0.0f;
|
||||||
sampler.maxLod = 1.0f;
|
sampler.maxLod = 1.0f;
|
||||||
sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
||||||
|
|
@ -526,7 +526,7 @@ public:
|
||||||
sampler.addressModeV = sampler.addressModeU;
|
sampler.addressModeV = sampler.addressModeU;
|
||||||
sampler.addressModeW = sampler.addressModeU;
|
sampler.addressModeW = sampler.addressModeU;
|
||||||
sampler.mipLodBias = 0.0f;
|
sampler.mipLodBias = 0.0f;
|
||||||
sampler.maxAnisotropy = 0;
|
sampler.maxAnisotropy = 1.0f;
|
||||||
sampler.minLod = 0.0f;
|
sampler.minLod = 0.0f;
|
||||||
sampler.maxLod = 1.0f;
|
sampler.maxLod = 1.0f;
|
||||||
sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
sampler.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
||||||
|
|
|
||||||
|
|
@ -235,7 +235,7 @@ public:
|
||||||
samplerInfo.addressModeV = samplerInfo.addressModeU;
|
samplerInfo.addressModeV = samplerInfo.addressModeU;
|
||||||
samplerInfo.addressModeW = samplerInfo.addressModeU;
|
samplerInfo.addressModeW = samplerInfo.addressModeU;
|
||||||
samplerInfo.mipLodBias = 0.0f;
|
samplerInfo.mipLodBias = 0.0f;
|
||||||
samplerInfo.maxAnisotropy = 0;
|
samplerInfo.maxAnisotropy = 1.0f;
|
||||||
samplerInfo.minLod = 0.0f;
|
samplerInfo.minLod = 0.0f;
|
||||||
samplerInfo.maxLod = 1.0f;
|
samplerInfo.maxLod = 1.0f;
|
||||||
samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
||||||
|
|
|
||||||
|
|
@ -370,7 +370,7 @@ public:
|
||||||
// Both particle textures have the same number of mip maps
|
// Both particle textures have the same number of mip maps
|
||||||
samplerCreateInfo.maxLod = float(textures.particles.fire.mipLevels);
|
samplerCreateInfo.maxLod = float(textures.particles.fire.mipLevels);
|
||||||
// Enable anisotropic filtering
|
// Enable anisotropic filtering
|
||||||
samplerCreateInfo.maxAnisotropy = 8;
|
samplerCreateInfo.maxAnisotropy = 8.0f;
|
||||||
samplerCreateInfo.anisotropyEnable = VK_TRUE;
|
samplerCreateInfo.anisotropyEnable = VK_TRUE;
|
||||||
// Use a different border color (than the normal texture loader) for additive blending
|
// Use a different border color (than the normal texture loader) for additive blending
|
||||||
samplerCreateInfo.borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK;
|
samplerCreateInfo.borderColor = VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK;
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ public:
|
||||||
samplerInfo.addressModeV = samplerInfo.addressModeU;
|
samplerInfo.addressModeV = samplerInfo.addressModeU;
|
||||||
samplerInfo.addressModeW = samplerInfo.addressModeU;
|
samplerInfo.addressModeW = samplerInfo.addressModeU;
|
||||||
samplerInfo.mipLodBias = 0.0f;
|
samplerInfo.mipLodBias = 0.0f;
|
||||||
samplerInfo.maxAnisotropy = 0;
|
samplerInfo.maxAnisotropy = 1.0f;
|
||||||
samplerInfo.minLod = 0.0f;
|
samplerInfo.minLod = 0.0f;
|
||||||
samplerInfo.maxLod = 1.0f;
|
samplerInfo.maxLod = 1.0f;
|
||||||
samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
samplerInfo.borderColor = VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ public:
|
||||||
sampler.addressModeV = sampler.addressModeU;
|
sampler.addressModeV = sampler.addressModeU;
|
||||||
sampler.addressModeW = sampler.addressModeU;
|
sampler.addressModeW = sampler.addressModeU;
|
||||||
sampler.mipLodBias = 0.0f;
|
sampler.mipLodBias = 0.0f;
|
||||||
sampler.maxAnisotropy = 0;
|
sampler.maxAnisotropy = 1.0f;
|
||||||
sampler.compareOp = VK_COMPARE_OP_NEVER;
|
sampler.compareOp = VK_COMPARE_OP_NEVER;
|
||||||
sampler.minLod = 0.0f;
|
sampler.minLod = 0.0f;
|
||||||
sampler.maxLod = 0.0f;
|
sampler.maxLod = 0.0f;
|
||||||
|
|
|
||||||
|
|
@ -242,7 +242,7 @@ public:
|
||||||
sampler.addressModeV = sampler.addressModeU;
|
sampler.addressModeV = sampler.addressModeU;
|
||||||
sampler.addressModeW = sampler.addressModeU;
|
sampler.addressModeW = sampler.addressModeU;
|
||||||
sampler.mipLodBias = 0.0f;
|
sampler.mipLodBias = 0.0f;
|
||||||
sampler.maxAnisotropy = 0;
|
sampler.maxAnisotropy = 1.0f;
|
||||||
sampler.compareOp = VK_COMPARE_OP_NEVER;
|
sampler.compareOp = VK_COMPARE_OP_NEVER;
|
||||||
sampler.minLod = 0.0f;
|
sampler.minLod = 0.0f;
|
||||||
sampler.maxLod = 1.0f;
|
sampler.maxLod = 1.0f;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue