mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 01:38:29 +12:00
Vulkan: Several swapchain fixes and refactors (#1132)
This commit is contained in:
parent
4d609f06b8
commit
17060752b6
4 changed files with 99 additions and 84 deletions
|
@ -127,7 +127,6 @@ class VulkanRenderer : public Renderer
|
|||
friend class PipelineCompiler;
|
||||
|
||||
using VSync = SwapchainInfoVk::VSync;
|
||||
using QueueFamilyIndices = SwapchainInfoVk::QueueFamilyIndices;
|
||||
|
||||
static const inline int UNIFORMVAR_RINGBUFFER_SIZE = 1024 * 1024 * 16; // 16MB
|
||||
|
||||
|
@ -421,6 +420,18 @@ private:
|
|||
|
||||
VkDescriptorPool m_descriptorPool;
|
||||
|
||||
public:
|
||||
struct QueueFamilyIndices
|
||||
{
|
||||
int32_t graphicsFamily = -1;
|
||||
int32_t presentFamily = -1;
|
||||
|
||||
bool IsComplete() const { return graphicsFamily >= 0 && presentFamily >= 0; }
|
||||
};
|
||||
static QueueFamilyIndices FindQueueFamilies(VkSurfaceKHR surface, VkPhysicalDevice device);
|
||||
|
||||
private:
|
||||
|
||||
struct FeatureControl
|
||||
{
|
||||
struct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue