mirror of
https://github.com/simple64/simple64.git
synced 2026-11-15 19:39:21 +01:00
update parallel rdp
This commit is contained in:
1 parent
6b9bf41071
commit
6178389fef
13 files changed
+63
-82
No files matched your search
@@ -24,7 +24,6 @@
|
||||
#include "device.hpp"
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
using namespace Util;
|
||||
|
||||
namespace Vulkan
|
||||
@@ -54,7 +53,7 @@ DescriptorSetAllocator::DescriptorSetAllocator(Hash hash, Device *device_, const
|
||||
VkDescriptorSetLayoutCreateInfo info = { VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO };
|
||||
VkDescriptorSetLayoutBindingFlagsCreateInfoEXT flags = { VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO_EXT };
|
||||
VkSampler vk_immutable_samplers[VULKAN_NUM_BINDINGS] = {};
|
||||
vector<VkDescriptorSetLayoutBinding> bindings;
|
||||
std::vector<VkDescriptorSetLayoutBinding> bindings;
|
||||
VkDescriptorBindingFlagsEXT binding_flags = 0;
|
||||
|
||||
if (bindless)
|
||||
@@ -252,7 +251,7 @@ void DescriptorSetAllocator::begin_frame()
|
||||
}
|
||||
}
|
||||
|
||||
pair<VkDescriptorSet, bool> DescriptorSetAllocator::find(unsigned thread_index, Hash hash)
|
||||
std::pair<VkDescriptorSet, bool> DescriptorSetAllocator::find(unsigned thread_index, Hash hash)
|
||||
{
|
||||
VK_ASSERT(!bindless);
|
||||
|
||||
@@ -288,7 +287,7 @@ pair<VkDescriptorSet, bool> DescriptorSetAllocator::find(unsigned thread_index,
|
||||
|
||||
VkDescriptorSet sets[VULKAN_NUM_SETS_PER_POOL];
|
||||
VkDescriptorSetLayout layouts[VULKAN_NUM_SETS_PER_POOL];
|
||||
fill(begin(layouts), end(layouts), set_layout);
|
||||
std::fill(std::begin(layouts), std::end(layouts), set_layout);
|
||||
|
||||
VkDescriptorSetAllocateInfo alloc = { VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO };
|
||||
alloc.descriptorPool = pool;
|
||||
|
||||
Reference in new issue
Block a user