X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbackends%2Fvulkan%2Fpipelinestate_backend.h;h=d482081bb400d4bc987c71048366eee26585536d;hp=82f664c1c9b881ae7ffafd083111317cde9f6e29;hb=b7808c60e0bbbb198500066880b6ed37c0b0e9d0;hpb=50492d9a5106b3dd76e3d6fa5ac88d9f97ba3c47 diff --git a/source/backends/vulkan/pipelinestate_backend.h b/source/backends/vulkan/pipelinestate_backend.h index 82f664c1..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, unsigned, bool) const; + void apply(VkCommandBuffer, const VulkanPipelineState *, unsigned, bool) const; }; using PipelineStateBackend = VulkanPipelineState;