Sascha Willems
458c149c71
Code cleanup
2020-04-20 20:29:15 +02:00
Sascha Willems
215b07bafa
Rework synchronization for compute particles sample
...
Add proper cross-queue-barriers
Replace fence with semaphores
Fixes #649
Fixes #670
Fixes #406
2020-02-22 14:38:53 +01:00
Sascha Willems
780cfee8ab
Get compute command buffer via device function
2020-02-22 12:32:17 +01:00
Sascha Willems
acdec3e127
Add proper queue family ownership transfer barriers between compute and graphics (for separate queue families)
...
Refs #544
2020-02-22 12:20:30 +01:00
Sascha Willems
eddd724e7c
Removed unused compute shader ubo members
2019-10-23 20:45:54 +02:00
Sascha Willems
0e9ab19fad
Reworked compute shader n-body synchronization
2019-10-13 09:40:31 +02:00
JC Liang
b575a1ff1a
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
2019-06-17 19:31:00 +08:00
Sascha Willems
99a52ed64b
Properly initialize compute UBO before first submit
...
Better naming
Fixes #552
2019-02-28 19:41:30 +01:00
saschawillems
c1c4f06a23
Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup
...
Refs #496
2018-08-30 21:08:02 +02:00
saschawillems
9e073bdd3b
Fixed random seed when run in benchmark mode, use default random engine instead of fixed mersene twister
...
Refs #269
2018-01-18 21:31:19 +01:00
saschawillems
94a076e1ae
Moved example source files into sub folder
2017-11-12 19:32:09 +01:00