diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-20 22:29:54 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-01-20 22:43:11 +0100 |
commit | a665581684b612afb225485d2e93f07b2274eb16 (patch) | |
tree | 0b2afa047d8fff452643fedc306cd81dabb3e04e /src/video_core/renderer_vulkan/vk_swapchain.h | |
parent | vk_blit_screen: Initial implementation (diff) | |
download | yuzu-a665581684b612afb225485d2e93f07b2274eb16.tar yuzu-a665581684b612afb225485d2e93f07b2274eb16.tar.gz yuzu-a665581684b612afb225485d2e93f07b2274eb16.tar.bz2 yuzu-a665581684b612afb225485d2e93f07b2274eb16.tar.lz yuzu-a665581684b612afb225485d2e93f07b2274eb16.tar.xz yuzu-a665581684b612afb225485d2e93f07b2274eb16.tar.zst yuzu-a665581684b612afb225485d2e93f07b2274eb16.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_swapchain.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_swapchain.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.h b/src/video_core/renderer_vulkan/vk_swapchain.h index a1e7938d2..2f3b2ccd5 100644 --- a/src/video_core/renderer_vulkan/vk_swapchain.h +++ b/src/video_core/renderer_vulkan/vk_swapchain.h @@ -40,19 +40,19 @@ public: return extent; } - u32 GetImageCount() const { + std::size_t GetImageCount() const { return image_count; } - u32 GetImageIndex() const { + std::size_t GetImageIndex() const { return image_index; } - vk::Image GetImageIndex(u32 index) const { + vk::Image GetImageIndex(std::size_t index) const { return images[index]; } - vk::ImageView GetImageViewIndex(u32 index) const { + vk::ImageView GetImageViewIndex(std::size_t index) const { return *image_views[index]; } @@ -77,7 +77,7 @@ private: UniqueSwapchainKHR swapchain; - u32 image_count{}; + std::size_t image_count{}; std::vector<vk::Image> images; std::vector<UniqueImageView> image_views; std::vector<UniqueFramebuffer> framebuffers; |