Skip to content

Fix the mipmap lesson: maxLod must be set in SamplerCreateInfo in order for mipmaps to work#234

Merged
marty-johnson59 merged 1 commit intoKhronosGroup:mainfrom
slavc:fix_mipmap_lesson
Dec 1, 2025
Merged

Fix the mipmap lesson: maxLod must be set in SamplerCreateInfo in order for mipmaps to work#234
marty-johnson59 merged 1 commit intoKhronosGroup:mainfrom
slavc:fix_mipmap_lesson

Conversation

@slavc
Copy link
Copy Markdown
Contributor

@slavc slavc commented Nov 25, 2025

Fix .maxLod not being set in the SamplerCreateInfo, which leads to it being initialized to zero, which leads to mip mapping effectively being disabled with only the zeroth mip level being used.

…er for mipmaps to work

Fix .maxLod not being set in the SamplerCreateInfo, which leads to it
being initialized to zero, which leads to mip mapping effectively
being disabled with only the zeroth mip level being used.
@slavc
Copy link
Copy Markdown
Contributor Author

slavc commented Nov 25, 2025

Relevant Vulkan specification documentation: https://docs.vulkan.org/spec/latest/chapters/samplers.html#VkSamplerCreateInfo .

@SaschaWillems
Copy link
Copy Markdown
Collaborator

That's an embarrassing oversight. Thanks for fixing this.

@marty-johnson59 marty-johnson59 merged commit 3adc8ea into KhronosGroup:main Dec 1, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants