BsVulkanDescriptorSet.h 954 B

123456789101112131415161718192021222324252627282930313233
  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 "BsVulkanResource.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Vulkan
  9. * @{
  10. */
  11. /** Wrapper for the Vulkan descriptor set object. */
  12. class VulkanDescriptorSet : public VulkanResource
  13. {
  14. public:
  15. VulkanDescriptorSet(VulkanResourceManager* owner, VkDescriptorSet set, VkDescriptorPool pool);
  16. ~VulkanDescriptorSet();
  17. /** Returns a handle to the Vulkan descriptor set object. */
  18. VkDescriptorSet getHandle() const { return mSet; }
  19. /** Updates the descriptor set with the provided values. */
  20. void write(VkWriteDescriptorSet* entries, UINT32 count);
  21. protected:
  22. VkDescriptorSet mSet;
  23. VkDescriptorPool mPool;
  24. };
  25. /** @} */
  26. }