mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 21:05:50 +12:00
Add initial vulkan instance creation
Headlessly creates a new vulkan instance, with conditional MacOS support, and enables the `VK_EXT_debug_utils` instance-extension with a debug-messenger to hook onto validation layer messages.
This commit is contained in:
parent
d2241a25bc
commit
870b6a21bf
6 changed files with 336 additions and 5 deletions
|
@ -4,6 +4,12 @@
|
|||
class GPU;
|
||||
|
||||
class RendererVK final : public Renderer {
|
||||
vk::UniqueInstance instance = {};
|
||||
vk::PhysicalDevice physicalDevice = {};
|
||||
vk::UniqueDevice device = {};
|
||||
|
||||
vk::UniqueDebugUtilsMessengerEXT debugMessenger;
|
||||
|
||||
public:
|
||||
RendererVK(GPU& gpu, const std::array<u32, regNum>& internalRegs);
|
||||
~RendererVK() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue