X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fpipelinestate_backend.h;h=d482081bb400d4bc987c71048366eee26585536d;hb=b7808c60e0bbbb198500066880b6ed37c0b0e9d0;hp=e675ff335c8cf311ad59cc9fe013e27804a4b0c0;hpb=c89c1fb972fae2cb2f720cb3ec6cf8238ae8d2e1;p=libs%2Fgl.git diff --git a/source/backends/vulkan/pipelinestate_backend.h b/source/backends/vulkan/pipelinestate_backend.h index e675ff33..d482081b 100644 --- a/source/backends/vulkan/pipelinestate_backend.h +++ b/source/backends/vulkan/pipelinestate_backend.h @@ -17,6 +17,7 @@ class VulkanPipelineState: public NonCopyable protected: Device &device; mutable unsigned changes = 0; + mutable unsigned unapplied = 0; mutable VkPipeline handle; mutable std::vector descriptor_set_handles; @@ -33,7 +34,7 @@ protected: VkDescriptorSetLayout get_descriptor_set_layout(unsigned) const; unsigned fill_descriptor_writes(unsigned, std::vector &) const; - void apply(VkCommandBuffer) const; + void apply(VkCommandBuffer, const VulkanPipelineState *, unsigned, bool) const; }; using PipelineStateBackend = VulkanPipelineState;