Skip to content

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

Merged
mvaligursky merged 3 commits intomainfrom
mv-texture-mipLevelCount
Dec 2, 2024
Merged

Texture can be constructed with a specified number of mip levels#7160
mvaligursky merged 3 commits intomainfrom
mv-texture-mipLevelCount

Conversation

@mvaligursky
Copy link
Copy Markdown
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.

Comment thread src/platform/graphics/texture.js Outdated
Martin Valigursky added 2 commits December 2, 2024 15:53
@mvaligursky mvaligursky merged commit 0e0698e into main Dec 2, 2024
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants