Commit graph

15 commits

Author SHA1 Message Date
ShoufengYang
fb4187a916
Update computeshader.cpp
There is a logical error that cause the first frame render error.  Since the graphic rendering need to sample the compute shader 's output image, so the compute command need to run  before the graphic rendering. If not, the graphic rendering will sample the gabage data (computer's output image) for the first frame and present on the display screen.This issue can be easy to be reproduced when the GPU device has a lower performance.
2021-08-03 23:04:40 +08:00
Sascha Willems
b9f4b1adf1 Use concurrent sharing mode for image if compute and graphics queue family indices differ
Use semaphores to sync compute and graphics work
Fixes #667
2020-08-29 12:19:05 +02:00
Sascha Willems
a465bad5aa Cleaned up includes
Fixed typos
2020-08-09 13:16:35 +02:00
Sascha Willems
361535b29e Split texture class into header and implementation
Moved include to base class
2020-08-08 22:54:34 +02:00
Sascha Willems
122288fe25 Split buffer class into header and implementation
Moved include to base class
2020-08-08 22:18:35 +02:00
Sascha Willems
968ccc0df4
Merge pull request #726 from FrickHazard/patch-1
Minor comment change
2020-06-24 20:40:21 +02:00
Ben Clayton
ca884587a4 Move shaders into glsl and hlsl directories
Move `data/shaders` to `data/shaders/glsl`
Move `data/hlsl` to `data/shaders/hlsl`

Fix up shader paths in the cpp files to point to the new glsl location.

`data/shaders/hlsl/compile.py` still overwrites the glsl .spv files (for
now).

Issue: #723
2020-06-01 12:22:28 +01:00
Ender Doe
831442eb18
Update computeshader.cpp 2020-05-30 10:40:46 -04:00
Sascha Willems
ab38f8b150 Code-Cleanup: All samples now use the camera class and it's matrices
Cleaned up base class
2020-04-22 20:58:24 +02:00
Sascha Willems
53846d8b1d Code cleanup 2020-04-20 22:13:51 +02:00
Sascha Willems
458c149c71 Code cleanup 2020-04-20 20:29:15 +02: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
1b8343d67b General code cleanup
Fixes #442, Closes #379
2018-04-13 18:06:30 +02:00
saschawillems
0c2720efc3 Code cleanup, comments, different texture and default shader
Fixes #438
2018-03-23 22:04:14 +01:00
saschawillems
94a076e1ae Moved example source files into sub folder 2017-11-12 19:32:09 +01:00
Renamed from computeshader/computeshader.cpp (Browse further)