Skip to content

Commit

Permalink
Enable implicit conversion of lvk::CommandBuffer to VkCommandBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Nov 27, 2023
1 parent aa36c61 commit 6a43ecb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lvk/vulkan/VulkanClasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ class CommandBuffer final : public ICommandBuffer {

CommandBuffer& operator=(CommandBuffer&& other) = default;

operator VkCommandBuffer() const {
return getVkCommandBuffer();
}

void transitionToShaderReadOnly(TextureHandle surface) const override;

void cmdBindComputePipeline(lvk::ComputePipelineHandle handle) override;
Expand Down

0 comments on commit 6a43ecb

Please sign in to comment.