Fix some synchronization flaws
- shader: add barrier at the end of each iteration to avoid writing before the reading finished - cpp: add synchronization between compute and graphics, the image barrier is not enough for the data visibility between different submission modified: data/shaders/computenbody/particle_calculate.comp modified: data/shaders/computenbody/particle_calculate.comp.spv modified: examples/computenbody/computenbody.cpp
This commit is contained in:
parent
b2add91d2c
commit
b575a1ff1a
3 changed files with 50 additions and 17 deletions
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue