mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 04:51:18 +00:00
Initialise some member variables
This commit is contained in:
parent
f7a76f2e8d
commit
d6522730ae
@ -39,9 +39,9 @@ namespace engine {
|
|||||||
struct Queue {
|
struct Queue {
|
||||||
uint32_t familyIndex;
|
uint32_t familyIndex;
|
||||||
uint32_t queueIndex;
|
uint32_t queueIndex;
|
||||||
bool supportsGraphics = false;
|
bool supportsGraphics;
|
||||||
bool supportsTransfer = false;
|
bool supportsTransfer;
|
||||||
bool supportsCompute = false;
|
bool supportsCompute;
|
||||||
|
|
||||||
VkQueue handle;
|
VkQueue handle;
|
||||||
};
|
};
|
||||||
@ -584,8 +584,8 @@ namespace engine {
|
|||||||
VkDevice device = VK_NULL_HANDLE;
|
VkDevice device = VK_NULL_HANDLE;
|
||||||
|
|
||||||
std::vector<Queue> queues{};
|
std::vector<Queue> queues{};
|
||||||
Queue gfxQueue;
|
Queue gfxQueue{};
|
||||||
Queue presentQueue;
|
Queue presentQueue{};
|
||||||
VkCommandPool commandPool = VK_NULL_HANDLE;
|
VkCommandPool commandPool = VK_NULL_HANDLE;
|
||||||
VkCommandBuffer commandBuffer = VK_NULL_HANDLE;
|
VkCommandBuffer commandBuffer = VK_NULL_HANDLE;
|
||||||
|
|
||||||
@ -848,6 +848,9 @@ namespace engine {
|
|||||||
Queue newQueue{};
|
Queue newQueue{};
|
||||||
newQueue.familyIndex = family;
|
newQueue.familyIndex = family;
|
||||||
newQueue.queueIndex = 0;
|
newQueue.queueIndex = 0;
|
||||||
|
newQueue.supportsGraphics = false;
|
||||||
|
newQueue.supportsTransfer = false;
|
||||||
|
newQueue.supportsCompute = false;
|
||||||
if (graphicsFamilyIndex == family) newQueue.supportsGraphics = true;
|
if (graphicsFamilyIndex == family) newQueue.supportsGraphics = true;
|
||||||
if (transferFamilyIndex == family) newQueue.supportsTransfer = true;
|
if (transferFamilyIndex == family) newQueue.supportsTransfer = true;
|
||||||
if (computeFamilyIndex == family) newQueue.supportsCompute = true;
|
if (computeFamilyIndex == family) newQueue.supportsCompute = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user