mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 13:45:29 +03:00
Use a spinlock for descriptor set allocator
This commit is contained in:
parent
78ddd03d1f
commit
7d3a117a6f
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <vulkan/vulkan.hpp>
|
#include <vulkan/vulkan_raii.hpp>
|
||||||
|
#include <common/spin_lock.h>
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
|
||||||
namespace skyline::gpu {
|
namespace skyline::gpu {
|
||||||
@ -13,7 +14,7 @@ namespace skyline::gpu {
|
|||||||
class DescriptorAllocator {
|
class DescriptorAllocator {
|
||||||
private:
|
private:
|
||||||
GPU &gpu;
|
GPU &gpu;
|
||||||
std::mutex mutex; //!< Synchronizes the creation and replacement of the pool object
|
SpinLock mutex; //!< Synchronizes the creation and replacement of the pool object
|
||||||
|
|
||||||
static constexpr u32 DescriptorSetCountIncrement{64}; //!< The amount of descriptor sets that we allocate in increments of
|
static constexpr u32 DescriptorSetCountIncrement{64}; //!< The amount of descriptor sets that we allocate in increments of
|
||||||
u32 descriptorSetCount{DescriptorSetCountIncrement}; //!< The maximum amount of descriptor sets in the pool
|
u32 descriptorSetCount{DescriptorSetCountIncrement}; //!< The maximum amount of descriptor sets in the pool
|
||||||
|
Loading…
Reference in New Issue
Block a user