Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.06k stars 511 forks source link

Use `VK_LOD_CLAMP_NONE` constant to set mipmap max LOD level in sampler #354

Closed Calinou closed 10 months ago

Calinou commented 11 months ago

This allows for using different texture sizes without having to know the mipmap count in advance.

All conformant Vulkan implementations should be able to handle this constant, which is equal to 1000.0f.

See Disqus comments on https://vulkan-tutorial.com/Generating_Mipmaps for context.

Overv commented 10 months ago

Nice, and thank you for updating the tutorial in your own language as well :)