Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
vkRenderer.h
Go to the documentation of this file.
1#pragma once
2#include "../Renderer.h"
3#include "volk.h"
4
6 struct Queue {
7 VkQueue queue;
8 uint32_t index;
9 };
10 class vkRenderer final : public Renderer {
11 private:
12 static inline Queue GraphicsQueue;
13 static inline Queue PresentQueue;
14
15 friend class vkBackend;
16 public:
17 inline static VkQueue GetGraphicsQueue() noexcept { return GraphicsQueue.queue; }
18 inline static uint32_t GetGraphicsQueueIndex() noexcept { return GraphicsQueue.index; }
19 inline static VkQueue GetPresentQueue() noexcept { return PresentQueue.queue; };
20 inline static uint32_t GetPresentQueueIndex() noexcept { return PresentQueue.index; }
21
22 };
23}
static VkQueue GetPresentQueue() noexcept
Definition vkRenderer.h:19
static VkQueue GetGraphicsQueue() noexcept
Definition vkRenderer.h:17
static uint32_t GetPresentQueueIndex() noexcept
Definition vkRenderer.h:20
static uint32_t GetGraphicsQueueIndex() noexcept
Definition vkRenderer.h:18