mirror of
https://github.com/love2d/love.git
synced 2026-08-18 19:54:22 +02:00
vulkan: remove dep on VK_KHR_push_descriptor
It's not sure if this extension is supported everywhere This commit uses normal descriptor pools, sets and writes, which are all availabel in base vulkan.
This commit is contained in:
@@ -70,8 +70,9 @@ private:
|
||||
size_t baseoff,
|
||||
const std::string& basename);
|
||||
|
||||
VkDescriptorSet allocateDescriptorSet();
|
||||
|
||||
VkDeviceSize uniformBufferSizeAligned;
|
||||
PFN_vkCmdPushDescriptorSetKHR vkCmdPushDescriptorSet;
|
||||
|
||||
VkDescriptorSetLayout descriptorSetLayout;
|
||||
VkPipelineLayout pipelineLayout;
|
||||
@@ -80,6 +81,9 @@ private:
|
||||
// we keep a vector of stream buffers per frame in flight
|
||||
// that gets dynamically increased if more memory is needed
|
||||
std::vector<std::vector<StreamBuffer*>> streamBuffers;
|
||||
std::vector<VkDescriptorPool> descriptorPools;
|
||||
uint32_t currentAllocatedDescriptorSets;
|
||||
std::vector<std::vector<VkDescriptorSet>> descriptorSetsVector;
|
||||
|
||||
std::vector<VkPipelineShaderStageCreateInfo> shaderStages;
|
||||
std::vector<VkShaderModule> shaderModules;
|
||||
@@ -94,8 +98,8 @@ private:
|
||||
size_t builtinUniformDataOffset;
|
||||
|
||||
uint32_t currentFrame;
|
||||
// todo: give this variable a better name
|
||||
uint32_t count;
|
||||
uint32_t currentUsedUniformStreamBuffersCount;
|
||||
uint32_t currentUsedDescriptorSetsCount;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user