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

Remove warning when project setting requests a larger global shader uniform buffer than the hardware supports #93645

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

clayjohn
Copy link
Member

Instead provide a better error message when the limit is exceeded and avoid crash with a small limit.

Fixes: #85374

Tagging for 4.3 since the warning is now shown on every project now that we properly calculate the maximum buffer size.

In the future we may want to explore a way to provide more global uniforms (i.e. provide multiple UBOs or store data in a texture). But we should only do that if there is significant demand. This should be fine for now.

@clayjohn clayjohn added this to the 4.3 milestone Jun 27, 2024
@clayjohn clayjohn requested a review from a team as a code owner June 27, 2024 00:00
…niform buffer than the hardware supports.

Instead provide a better error message when the limit is exceeded and avoid crash with a small limit.
@akien-mga akien-mga merged commit 184a973 into godotengine:master Jun 28, 2024
18 checks passed
@akien-mga
Copy link
Member

Thanks!

@clayjohn clayjohn deleted the shader_global_warning branch June 28, 2024 21:50
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.

global_shader_variables/buffer_size set too high in new Compatibility project
2 participants