Skip to content

Add 1 to mipmap count so that the lowest mip size is 1x1#23

Open
expenses wants to merge 1 commit intoKhronosGroup:mainfrom
expenses:mipmap-count
Open

Add 1 to mipmap count so that the lowest mip size is 1x1#23
expenses wants to merge 1 commit intoKhronosGroup:mainfrom
expenses:mipmap-count

Conversation

@expenses
Copy link
Contributor

At the moment we use log2(X) for the number of mips, so log2(1024) = 10 mips. This only goes down to a size of 2x2 for the smallest mip, so we want to add 1 to the result: log2(X) + 1.

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.

1 participant