Вынес управление VkDevice в отдельный класс
This commit is contained in:
@@ -17,9 +17,6 @@ namespace VkObjects
|
||||
uint32_t graphics_family = 0;
|
||||
uint32_t present_family = 0;
|
||||
uint32_t transfer_family = 0;
|
||||
bool is_find_graphics_family = false;
|
||||
bool is_find_present_family = false;
|
||||
bool is_find_transfer_family = false;
|
||||
};
|
||||
|
||||
QueueFamilyIndices queue_family_indices_{};
|
||||
@@ -32,7 +29,7 @@ namespace VkObjects
|
||||
static QueueFamilyIndices find_queue_family_indices(VkPhysicalDevice physical_device,
|
||||
VkSurfaceKHR surface);
|
||||
public:
|
||||
PhysicalDevice(const Instance& instance, const Surface& surface, const std::vector<const char*>& device_extensions);
|
||||
explicit PhysicalDevice(const Instance& instance, const Surface& surface, const std::vector<const char*>& device_extensions);
|
||||
|
||||
inline VkPhysicalDevice get_native() const { return physical_device_; }
|
||||
inline QueueFamilyIndices get_queue_family_indices() const { return queue_family_indices_; }
|
||||
|
||||
Reference in New Issue
Block a user