Commit graph

30 commits

Author SHA1 Message Date
Stephen Seo ef7f623fb3 Optimize buffer writes in vulkan_get_filter calls
When only a single item in pbp buffer is changed, only update the single
item in the staging buffer and the device buffer prior to Vulkan compute
execution on buffers.
2024-04-03 17:55:37 +09:00
Stephen Seo 7fb458dad5 Vulkan compute: Minor refactoring 2024-03-26 14:00:46 +09:00
Stephen Seo 5913b7669b Vulkan compute: Refactor pbp integer setting loop 2024-03-26 13:57:13 +09:00
Stephen Seo d137dc44ff inline get_filter in vulkan compute impl. 2024-03-26 13:49:37 +09:00
Stephen Seo 3a97f14199 Use "cached", not "coherent" for staging buffers 2024-03-26 12:21:40 +09:00
Stephen Seo 2d47b7f892 Attempt to optimize vulkan compute 2024-03-25 16:53:42 +09:00
Stephen Seo 47ba03337b Impl. Vulkan compute
Tests indicate Vulkan compute runs 2x slower than OpenCL, so there
probably is room for optimization.
2024-03-25 13:27:06 +09:00
Stephen Seo ea66a44238 QueueFamilyIndices struct: fn definitions in .cpp
Instead of defining struct functions in header file, only declare them
in the header file and define them in the source file.
2024-03-22 17:03:56 +09:00
Stephen Seo 16f0e0e865 Define vulkan specific helper fns in header 2024-03-22 16:59:23 +09:00
Stephen Seo 4e4ee7f558 Begin work on Vulkan compute (WIP)
Some Vulkan initialization stuff WIP.
2024-03-06 17:04:08 +09:00
Stephen Seo d60e9497ff Fix not using OpenCL header on disabled OpenCL 2023-03-31 19:04:25 +09:00
Stephen Seo ecd65fc42b clang-format --style=google 2023-03-31 18:47:33 +09:00
Stephen Seo afa27fc555 Round values when creating image from rankings 2021-11-11 15:36:05 +09:00
Stephen Seo c9ec105664 Impl arg-parsing for generic use of blue-noise gen 2021-11-10 20:04:08 +09:00
Stephen Seo 2357fd9c05 Fix blue-noise when not using OpenCL 2021-11-10 19:21:33 +09:00
Stephen Seo d44297d079 WIP Attempt to fix resulting blue-noise 2021-11-10 18:12:04 +09:00
Stephen Seo e90834dc0a WIP work on generating blue-noise 2021-11-08 20:04:58 +09:00
Stephen Seo 73aa21e92a Some attempts at fixing grayscale blue-noise 2021-10-07 15:34:13 +09:00
Stephen Seo 1eee20d6ae Some work on grayscale blue-noise 2021-10-06 17:59:27 +09:00
Stephen Seo 5826c3677c Fix image::Bl write, use image::Bl as result for blue_noise 2021-02-11 11:33:14 +09:00
Stephen Seo 6ca0db1e57 Split utility functions to utility.hpp 2021-01-26 19:53:11 +09:00
Stephen Seo e24606ea2c Impl use of OpenCL for generating blue noise 2021-01-23 16:42:45 +09:00
Stephen Seo 26df83affc Use precomputed gaussian for filter function 2021-01-23 13:50:43 +09:00
Stephen Seo 50dfa98f51 Use 0-255 range for pgm output 2021-01-23 12:21:02 +09:00
Stephen Seo 850a5d22a9 Fixes and Refactorings 2021-01-23 11:58:16 +09:00
Stephen Seo ad32671e19 Use int instead of std::size_t, float instead of double 2021-01-23 10:14:59 +09:00
Stephen Seo e483d99ea1 Fix filter_size not being used properly in filter 2021-01-22 22:57:37 +09:00
Stephen Seo 949aaecaa6 Some refactoring 2021-01-22 22:53:31 +09:00
Stephen Seo fe48341665 Impl blue noise generation (maybe still WIP) 2021-01-16 22:46:47 +09:00
Stephen Seo 3643dbea1a WIP blue_noise impl 2021-01-16 18:54:56 +09:00