diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-07 22:48:31 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-07 22:48:31 +0100 |
| commit | 0bb3cbcd5a0ff72cc3902d27520a8f5b8c331c46 (patch) | |
| tree | 5f4a66739ed2f791444b77f5304e7ec46e1aa77c /src/main.cpp | |
| parent | cb2e410481af4f1809a98e183971f304d3353cfe (diff) | |
Clean renderdoc setup
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index d701e83..d38545a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -8,7 +8,7 @@ #include "vk-renderer.hpp" #include "rt.hpp" -#include "thirdparty/renderdoc_app.h" +#include "thirdparty/renderdoc.h" color ground_color { 1.0, 1.0, 1.0 }; color sky_color { 0.5, 0.7, 1.0 }; @@ -74,8 +74,9 @@ int main() { if(void *mod = dlopen("librenderdoc.so", RTLD_NOW | RTLD_NOLOAD)) { pRENDERDOC_GetAPI RENDERDOC_GetAPI = (pRENDERDOC_GetAPI)dlsym(mod, "RENDERDOC_GetAPI"); - int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_4_1, (void **)&rdoc_api); + int ret = RENDERDOC_GetAPI(eRENDERDOC_API_Version_1_1_2, (void **)&rdoc_api); assert(ret == 1); + } vkrenderer renderer {}; // Image dimensions @@ -83,7 +84,7 @@ int main() { const float aspect_ratio = 1.f; const size_t width = 400; const size_t height = width / aspect_ratio; - const uint32_t samples_per_pixel = 100; + const uint32_t samples_per_pixel = 10; const uint32_t max_depth = 100; const vec3 camera_position{ 13.0, 2.0, 3.0 }; |
