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

Combine texture and instance data into one uniform set in the 2D renderer #97554

Merged
merged 1 commit into from
Sep 28, 2024

Conversation

clayjohn
Copy link
Member

Fixes: #97341

Many mobile devices only support 4 uniform sets, so we need to be cautious to ensure that we don't use more than that.

Basically this PR defers the creation of the texture uniforms until right before we draw the batch so they can be combined with the instance data.

This extracts part of the reorganization done in #97340. Stuart did most of the work already that was necessary for this PR. The purpose of this PR is to fix the bug so we can release another dev build and give Stuart a bit more time to perfect #97340

…erer

Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com>
@akien-mga akien-mga merged commit e7a9104 into godotengine:master Sep 28, 2024
19 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REGRESSION] Attempting to bind a descriptor set (4) greater than what the hardware supports (4)
2 participants