mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 23:04:07 +00:00
93a34b538d
741: Fix the default lod_max_clamp value for the SamplerDescriptor r=kvark a=hasenbanck **Connections** As suggested in https://github.com/gfx-rs/wgpu-rs/pull/397 **Description** The current default value for the ```lod_max_clamp``` of a sampler is 0. This would deactivate mipmapping alltogether. Setting the default to ```f32::MAX``` makes sure to always enable it. It's the default value apple uses in Metal, it seems to be valid usage in Vulkan (```maxLod``` in ```VkSamplerCreateInfo```) and in DX12 (```MaxLOD``` in ```D3D12_SAMPLER_DESC```). Co-authored-by: Nils Hasenbanck <nils@hasenbanck.de> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |