diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2023-02-09 08:26:40 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2023-02-09 08:26:40 +0100 |
| commit | 290e4c3c33f9af401c0565b840de3514d199faf5 (patch) | |
| tree | ee5ea98556e40e1cc2a455f609598346bea24b20 /include/api-test/vk-device.hpp | |
| parent | 74a223d1a9d23369c6c20457424b34cf17da95ab (diff) | |
Presentation abstraction
Diffstat (limited to 'include/api-test/vk-device.hpp')
| -rw-r--r-- | include/api-test/vk-device.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/api-test/vk-device.hpp b/include/api-test/vk-device.hpp index fd69d60..9e42b38 100644 --- a/include/api-test/vk-device.hpp +++ b/include/api-test/vk-device.hpp @@ -72,7 +72,7 @@ class vkdevice { return pipelines[handle.id]; } - [[nodiscard]] inline const device_surface& get_surface(handle<device_surface> handle) const { + [[nodiscard]] inline device_surface& get_surface(handle<device_surface> handle) { return surfaces[handle.id]; } @@ -88,6 +88,10 @@ class vkdevice { return device; } + inline VmaAllocator get_allocator() { + return gpu_allocator; + } + void wait(handle<device_semaphore> semaphore_handle); void submit(std::span<command_buffer> buffers, handle<device_semaphore> wait_handle, handle<device_semaphore> signal_handle); @@ -102,8 +106,6 @@ class vkdevice { VkShaderModule create_shader_module(const std::span<uint8_t>& shader_code); - void create_views(const texture_desc& desc, device_texture& texture); - void create_swapchain(const surface_desc& desc, device_surface& surface); // TODO: Wrap in a struct called adapter ? @@ -134,9 +136,6 @@ class vkdevice { static constexpr size_t max_allocable_command_buffers = 16; static constexpr size_t max_submitable_command_buffers = 16; - freelist<device_texture*> storage_indices; - freelist<device_texture*> sampled_indices; - freelist<device_texture> textures; freelist<device_buffer> buffers; freelist<device_pipeline> pipelines; |
