diff options
| author | ladevieq <qladevie@wanadev.fr> | 2021-02-10 14:00:37 +0100 |
|---|---|---|
| committer | ladevieq <qladevie@wanadev.fr> | 2021-02-10 14:00:37 +0100 |
| commit | 5e39b7485d08345a4eb3686b344840791888d1f9 (patch) | |
| tree | 0d2a51845709a5ecd25fecedd60cc65b2999c61e /include | |
| parent | 3a43bab624f271588401daca46c512a1f85593f6 (diff) | |
Accumulation working
Diffstat (limited to 'include')
| -rw-r--r-- | include/utils.hpp | 4 | ||||
| -rw-r--r-- | include/vk-renderer.hpp | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/utils.hpp b/include/utils.hpp index 830b006..85b50cf 100644 --- a/include/utils.hpp +++ b/include/utils.hpp @@ -27,11 +27,13 @@ struct input_data { // Output image resolution uint32_t width; uint32_t height; + + uint32_t sample_index; }; std::vector<uint8_t> get_shader_code(const char* path); -struct input_data create_inputs(uint32_t width, uint32_t height); +struct input_data create_inputs(uint32_t width, uint32_t height, uint32_t samples_per_pixel); #define PI 3.14159265359 diff --git a/include/vk-renderer.hpp b/include/vk-renderer.hpp index 1180d0a..318e6cc 100644 --- a/include/vk-renderer.hpp +++ b/include/vk-renderer.hpp @@ -15,7 +15,7 @@ class vkrenderer { ~vkrenderer(); - void compute(uint32_t width, uint32_t height); + void compute(uint32_t width, uint32_t height, bool clear); void recreate_swapchain(); |
