diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-10 19:51:03 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-10 19:51:03 +0100 |
| commit | 94c1b2d414055f9a4ea203fb210666aa769d0096 (patch) | |
| tree | 5bc7e359ba63c1137f5aa276fee1219924e7a0f9 /src/main.cpp | |
| parent | 78302e1982c1b7b727c95603611b19913f5c13d0 (diff) | |
Create xcb surface and swapchain
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7a91c4e..31e3002 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -79,13 +79,13 @@ int main() { assert(ret == 1); } - window wnd {}; - vkrenderer renderer {}; - // Image dimensions const float aspect_ratio = 16.0 / 9.0; - const size_t width = 1920; - const size_t height = width / aspect_ratio; + const uint32_t width = 1920; + const uint32_t height = width / aspect_ratio; + + window wnd { width , height }; + vkrenderer renderer { wnd }; const uint32_t samples_per_pixel = 20; const uint32_t max_depth = 20; @@ -105,8 +105,8 @@ int main() { .max_bounce = max_depth, .samples_per_pixel = samples_per_pixel, - .width = (uint32_t)width, - .height = (uint32_t)height + .width = width, + .height = height }; // Random numbers pools |
