diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-21 23:15:31 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-21 23:15:31 -0500 |
| commit | 3dd8acf58c98f2b3e05fe3f36dffd37e9eb751eb (patch) | |
| tree | 7f5de35a272d788f75be0d37709a7c0cebb7cff4 /runtime/src | |
| parent | 2ff99bd6a17da57589c86385ec1975fd693598e3 (diff) | |
| parent | f609f9c93e181a558e9a5b8dfa0eeb941b49b09a (diff) | |
Merge pull request #834 from Vonsek
Diffstat (limited to 'runtime/src')
| -rw-r--r-- | runtime/src/gfx10_descriptors.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/src/gfx10_descriptors.h b/runtime/src/gfx10_descriptors.h index 4d0e7b44a..2a5e4533a 100644 --- a/runtime/src/gfx10_descriptors.h +++ b/runtime/src/gfx10_descriptors.h | |||
| @@ -579,7 +579,7 @@ inline VkSamplerCreateInfo vulkan_sampler(const Sampler& sampler) { | |||
| 579 | info.mipLodBias = sampler.lod_bias; | 579 | info.mipLodBias = sampler.lod_bias; |
| 580 | info.anisotropyEnable = sampler.max_anisotropy > 1 ? VK_TRUE : VK_FALSE; | 580 | info.anisotropyEnable = sampler.max_anisotropy > 1 ? VK_TRUE : VK_FALSE; |
| 581 | info.maxAnisotropy = float(std::max(sampler.max_anisotropy, 1u)); | 581 | info.maxAnisotropy = float(std::max(sampler.max_anisotropy, 1u)); |
| 582 | info.compareEnable = sampler.compare_never || sampler.compare != CompareFunction::never; | 582 | info.compareEnable = (sampler.compare_never || sampler.compare != CompareFunction::never) ? VK_TRUE : VK_FALSE; |
| 583 | info.compareOp = VkCompareOp(sampler.compare); | 583 | info.compareOp = VkCompareOp(sampler.compare); |
| 584 | info.minLod = sampler.min_lod; | 584 | info.minLod = sampler.min_lod; |
| 585 | info.maxLod = sampler.max_lod; | 585 | info.maxLod = sampler.max_lod; |