BsVulkanUtility.h 813 B

1234567891011121314151617181920212223242526
  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 "BsPixelUtil.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Vulkan
  9. * @{
  10. */
  11. /** Contains various helper methods for dealing with Vulkan. */
  12. class VulkanUtility
  13. {
  14. public:
  15. /** Converts between Banshee and Vulkan pixel format. */
  16. static VkFormat getPixelFormat(PixelFormat format, bool sRGB = false);
  17. /** Gets Vulkan flags representing the number of samples in an image. Sample count must be a power of 2. */
  18. static VkSampleCountFlagBits getSampleFlags(UINT32 numSamples);
  19. };
  20. /** @} */
  21. }