Добавил структуру с данными физ. устройства
This commit is contained in:
17
include/PhysicalDevice.h
Normal file
17
include/PhysicalDevice.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef PHYSICALDEVICE_H
|
||||
#define PHYSICALDEVICE_H
|
||||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
#include <vector>
|
||||
|
||||
typedef struct _PhysicalDevice
|
||||
{
|
||||
VkPhysicalDevice device; // устройство
|
||||
VkPhysicalDeviceProperties properties; // параметры
|
||||
VkPhysicalDeviceFeatures features; // функции
|
||||
VkPhysicalDeviceMemoryProperties memory; // память
|
||||
std::vector<VkQueueFamilyProperties> queueFamilyProperties; // семейства очередей
|
||||
} PhysicalDevice;
|
||||
|
||||
#endif // PHYSICALDEVICE_H
|
||||
@@ -4,6 +4,8 @@
|
||||
#include <vulkan/vulkan.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#include "PhysicalDevice.h"
|
||||
|
||||
class Vulkan
|
||||
{
|
||||
public:
|
||||
@@ -11,7 +13,7 @@ class Vulkan
|
||||
void destroy(); // завершение работы
|
||||
private:
|
||||
VkInstance instance; // Экземпляр Vulkan
|
||||
VkPhysicalDevice physicalDevice; // Физическое устройство
|
||||
PhysicalDevice physicalDevice; // Физическое устройство
|
||||
// Структура для хранения флагов
|
||||
struct
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user