mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-22 03:15:01 +00:00
added vulkan extension initialize
This commit is contained in:
parent
be4c88a338
commit
f6388c367e
4 changed files with 78 additions and 1 deletions
21
src/vulkan_util.h
Normal file
21
src/vulkan_util.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
#include "emulator.h"
|
||||
#include <SDL.h>
|
||||
#include <vector>
|
||||
#include <src/video/khronos/vulkan/vulkan_core.h>
|
||||
|
||||
namespace Graphics::Vulkan {
|
||||
|
||||
struct VulkanExt {
|
||||
bool enable_validation_layers = false;
|
||||
|
||||
std::vector<const char*> required_extensions;
|
||||
std::vector<VkExtensionProperties> available_extensions;
|
||||
std::vector<const char*> required_layers;
|
||||
std::vector<VkLayerProperties> available_layers;
|
||||
};
|
||||
|
||||
void vulkanCreate(Emulator::WindowCtx *ctx);
|
||||
void vulkanGetExtensions(VulkanExt* ext);
|
||||
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue