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 GPUParticles not rendering in doubles build of the engine. #68425

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

clayjohn
Copy link
Member

@clayjohn clayjohn commented Nov 8, 2022

Fixes: #67545

May help: #58333

real_t was mistakenly used in uniform structs causing a mismatch between the GPU uniform and the CPU uniform. On the GPU side these are all floats, so they should be floats here too.

@clayjohn clayjohn added this to the 4.0 milestone Nov 8, 2022
@clayjohn clayjohn requested a review from BastiaanOlij November 8, 2022 21:50
@clayjohn clayjohn requested a review from a team as a code owner November 8, 2022 21:50
@Qubrick
Copy link

Qubrick commented Nov 9, 2022

Thank you, Clay John. It works. I'm not a reviewer but I confirm that it fix #67545 for me.
I can add GPU particle node and it render on the scene now. There is no crash and no error spamming.

@akien-mga
Copy link
Member

Needs a rebase to pass godot-cpp CI.

real_t was mistakenly used in uniform structs causing a mismatch between the GPU uniform and the CPU uniform
@clayjohn clayjohn force-pushed the RD-doubles-particles branch from 09f7f43 to 4aab9cb Compare November 9, 2022 16:58
@clayjohn
Copy link
Member Author

clayjohn commented Nov 9, 2022

Needs a rebase to pass godot-cpp CI.

Done!

@akien-mga akien-mga merged commit 2608e71 into godotengine:master Nov 11, 2022
@akien-mga
Copy link
Member

Thanks!

@clayjohn clayjohn deleted the RD-doubles-particles branch November 15, 2022 18:33
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.

GPUParticles3D broken on float=64 builds
3 participants