1
0
Fork 0
forked from wry/wry

vulkan: use clamp-to-edge when scaling textures

This commit is contained in:
Julian Orth 2024-02-23 15:24:38 +01:00
parent 41754e268f
commit 9e3ad38948

View file

@ -17,9 +17,9 @@ impl VulkanDevice {
.mag_filter(Filter::LINEAR)
.min_filter(Filter::LINEAR)
.mipmap_mode(SamplerMipmapMode::NEAREST)
.address_mode_u(SamplerAddressMode::REPEAT)
.address_mode_v(SamplerAddressMode::REPEAT)
.address_mode_w(SamplerAddressMode::REPEAT)
.address_mode_u(SamplerAddressMode::CLAMP_TO_EDGE)
.address_mode_v(SamplerAddressMode::CLAMP_TO_EDGE)
.address_mode_w(SamplerAddressMode::CLAMP_TO_EDGE)
.max_anisotropy(1.0)
.min_lod(0.0)
.max_lod(0.25)