vulkan: use clamp-to-edge when scaling textures
This commit is contained in:
parent
41754e268f
commit
9e3ad38948
1 changed files with 3 additions and 3 deletions
|
|
@ -17,9 +17,9 @@ impl VulkanDevice {
|
||||||
.mag_filter(Filter::LINEAR)
|
.mag_filter(Filter::LINEAR)
|
||||||
.min_filter(Filter::LINEAR)
|
.min_filter(Filter::LINEAR)
|
||||||
.mipmap_mode(SamplerMipmapMode::NEAREST)
|
.mipmap_mode(SamplerMipmapMode::NEAREST)
|
||||||
.address_mode_u(SamplerAddressMode::REPEAT)
|
.address_mode_u(SamplerAddressMode::CLAMP_TO_EDGE)
|
||||||
.address_mode_v(SamplerAddressMode::REPEAT)
|
.address_mode_v(SamplerAddressMode::CLAMP_TO_EDGE)
|
||||||
.address_mode_w(SamplerAddressMode::REPEAT)
|
.address_mode_w(SamplerAddressMode::CLAMP_TO_EDGE)
|
||||||
.max_anisotropy(1.0)
|
.max_anisotropy(1.0)
|
||||||
.min_lod(0.0)
|
.min_lod(0.0)
|
||||||
.max_lod(0.25)
|
.max_lod(0.25)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue