Merge pull request #51790 from Chaosus/fix_particle_uniforms

Fix incorrect double types passing to particles shader pipeline
This commit is contained in:
Yuri Roubinsky 2021-08-17 16:46:45 +03:00 committed by GitHub
commit 3d673fac50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -668,14 +668,14 @@ private:
}; };
uint32_t emitting; uint32_t emitting;
double system_phase; float system_phase;
double prev_system_phase; float prev_system_phase;
uint32_t cycle; uint32_t cycle;
real_t explosiveness; real_t explosiveness;
real_t randomness; real_t randomness;
double time; float time;
double delta; float delta;
uint32_t frame; uint32_t frame;
uint32_t pad0; uint32_t pad0;
@ -812,7 +812,7 @@ private:
struct ParticlesShader { struct ParticlesShader {
struct PushConstant { struct PushConstant {
double lifetime; float lifetime;
uint32_t clear; uint32_t clear;
uint32_t total_particles; uint32_t total_particles;
uint32_t trail_size; uint32_t trail_size;