Skip to content

[Fix] Texture created by TextureAtlas respects its initial settings#7300

Merged
mvaligursky merged 1 commit intomainfrom
mv-texture-atlas-texture-options
Jan 20, 2025
Merged

[Fix] Texture created by TextureAtlas respects its initial settings#7300
mvaligursky merged 1 commit intomainfrom
mv-texture-atlas-texture-options

Conversation

@mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Jan 20, 2025

TextureAtlas under the hood creates a Texture by calling Open on its handler. We now pass an asset instance to it, allowing it to create the texture using initial settings, instead of depending on those settings to be set on Texture after the creation, which is currently not supported on WebGPU.

Fixes a warning during loading of https://playcanvas.com/project/1295667/overview/webgpu-mips-warning

Screenshot 2025-01-20 at 14 46 44

@mvaligursky mvaligursky self-assigned this Jan 20, 2025
@mvaligursky mvaligursky added bug area: graphics Graphics related issue labels Jan 20, 2025
@mvaligursky mvaligursky merged commit 68db2b1 into main Jan 20, 2025
7 checks passed
@mvaligursky mvaligursky deleted the mv-texture-atlas-texture-options branch January 20, 2025 14:47
mvaligursky added a commit that referenced this pull request Jan 20, 2025
…7300)

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
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