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:
niki
2022-08-19 16:44:59 +02:00
parent f4ece69307
commit be8778b4eb
6 changed files with 104 additions and 39 deletions
-2
View File
@@ -139,7 +139,6 @@ public:
void queueCleanUp(std::function<void()> cleanUp);
uint32_t getNumImagesInFlight() const;
const PFN_vkCmdPushDescriptorSetKHR getVkCmdPushDescriptorSetKHRFunctionPointer() const;
const VkDeviceSize getMinUniformBufferOffsetAlignment() const;
graphics::Texture* getDefaultTexture() const;
VkSampler getCachedSampler(const SamplerState&);
@@ -220,7 +219,6 @@ private:
std::vector<VkFence> inFlightFences;
std::vector<VkFence> imagesInFlight;
VkDeviceSize minUniformBufferOffsetAlignment = 0;
PFN_vkCmdPushDescriptorSetKHR vkCmdPushDescriptorSet = nullptr;
size_t currentFrame = 0;
uint32_t imageIndex = 0;
bool framebufferResized = false;