From 6db256b8eb4cc45c5296070ae7353e65398d121d Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 18 Aug 2026 00:43:03 +0200 Subject: Finished descriptor heaps implementation --- include/vk-device.hpp | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'include/vk-device.hpp') diff --git a/include/vk-device.hpp b/include/vk-device.hpp index 84a1a36..913a28b 100644 --- a/include/vk-device.hpp +++ b/include/vk-device.hpp @@ -1,7 +1,6 @@ #pragma once #include "freelist.hpp" -#include "vk-bindless.hpp" #include "vk-command-buffer.hpp" using VmaAllocator = struct VmaAllocator_T*; @@ -72,14 +71,6 @@ class vkdevice { return &surfaces[handle]; } - inline VmaAllocator get_allocator() const { - return gpu_allocator; - } - - inline VkDevice get_device() const { - return device; - } - // uint64_t submit(std::span buffers, handle wait_handle, handle signal_handle, handle fence_handle); uint32_t acquire_image_index(handle surface_handle); uint64_t submit_before_present(handle surface_handle, command_buffer* buffers, uint32_t count); @@ -104,27 +95,10 @@ class vkdevice { void create_device(); - void create_heaps(VkPhysicalDeviceDescriptorHeapPropertiesEXT& descriptor_heap_props); - bool device_support_features(VkPhysicalDevice physical_dev); queue queues[static_cast(QueueType::MAX)]; - VkInstance instance; - VkPhysicalDevice physical_device; - VkPhysicalDeviceProperties2 physical_device_props; - VkDevice device; - - handle image_heap; // TODO: Dont use handle for internally used resources - handle sampler_heap; - - static constexpr size_t max_images_count = UINT16_MAX; - static constexpr size_t max_samplers_count = 16U; - - static size_t - - VmaAllocator gpu_allocator; - static constexpr size_t max_allocable_command_buffers = 16; static constexpr size_t max_submitable_command_buffers = 16; -- cgit v1.3