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

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

Merged
merged 1 commit into from
Jan 20, 2025

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 bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants