diff options
| author | Quentin LADEVIE <qladevie@wanadev.fr> | 2022-02-16 11:47:54 +0100 |
|---|---|---|
| committer | Quentin LADEVIE <qladevie@wanadev.fr> | 2022-02-16 11:47:54 +0100 |
| commit | 0baf9dab1c07c52a956ec4a0969854b7fc46e104 (patch) | |
| tree | 3bbdcd7c125c31d0fbee4e2e5cd88da6681e896f /include/vk-api.hpp | |
| parent | f582eb80d73a1d0b735503c8894636782406228c (diff) | |
Fixes artifacts when moving in the scene
Diffstat (limited to 'include/vk-api.hpp')
| -rw-r--r-- | include/vk-api.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/vk-api.hpp b/include/vk-api.hpp index cc0188d..de19a7d 100644 --- a/include/vk-api.hpp +++ b/include/vk-api.hpp @@ -21,6 +21,8 @@ struct pipeline { VkPipelineBindPoint bind_point; }; +using bindless_index = uint32_t; + struct image { VkImage handle; VkImageView view; @@ -29,8 +31,8 @@ struct image { VkImageSubresourceRange subresource_range; VkFormat format; VkExtent3D size; - uint32_t bindless_storage_index; - uint32_t bindless_sampled_index; + bindless_index bindless_storage_index; + bindless_index bindless_sampled_index; VkImageLayout previous_layout = VK_IMAGE_LAYOUT_UNDEFINED; VkPipelineStageFlags previous_stage = VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT; @@ -47,7 +49,7 @@ struct swapchain { struct sampler { VkSampler handle; - uint32_t bindless_index; + bindless_index bindless_index; }; struct global_descriptor { |
