Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texture can be constructed with a specified number of mip levels #7160

Merged
merged 3 commits into from
Dec 2, 2024

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Dec 2, 2024

  • texture could have been be created with options.mipmaps, which internally allocated a full mip map chain
  • now options.mipLevelCount can be specified, which limits the mipmaps to specified number - useful when you need just one of two additional mip levels.
  • we used to not allow mipmaps for integer texture formats, even though it's a valid use case. This is now allowed, but automatic mipmap generation for those texture is disablef. The user can manually render to the levels though.

Martin Valigursky added 2 commits December 2, 2024 15:53
@mvaligursky mvaligursky merged commit 0e0698e into main Dec 2, 2024
8 checks passed
@mvaligursky mvaligursky deleted the mv-texture-mipLevelCount branch December 2, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants