From 5e39b7485d08345a4eb3686b344840791888d1f9 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Wed, 10 Feb 2021 14:00:37 +0100 Subject: Accumulation working --- include/utils.hpp | 4 +++- include/vk-renderer.hpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'include') 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 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(); -- cgit v1.3