2
0

BsVulkanCommandBuffer.h 953 B

1234567891011121314151617181920212223242526272829303132333435
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsVulkanPrerequisites.h"
  5. #include "BsCommandBuffer.h"
  6. #include "BsVulkanRenderAPI.h"
  7. namespace BansheeEngine
  8. {
  9. /** @addtogroup Vulkan
  10. * @{
  11. */
  12. /** CommandBuffer implementation for Vulkan. */
  13. class VulkanCommandBuffer : public CommandBuffer
  14. {
  15. public:
  16. ~VulkanCommandBuffer();
  17. /** Returns the internal Vulkan command buffer wrapped by this object. */
  18. VkCommandBuffer getInternal() const { return mBuffer; }
  19. private:
  20. friend class VulkanCommandBufferManager;
  21. VulkanCommandBuffer(const SPtr<VulkanDevice>& device, CommandBufferType type, UINT32 syncMask, bool secondary);
  22. VkCommandBuffer mBuffer;
  23. VkCommandPool mPool;
  24. VkDevice mDevice;
  25. };
  26. /** @} */
  27. }