Stores lots of different functions which shorten the amount of code which needs to be written for default vulkan operations.
More...
|
| static void | initializeDebugFunctions (VkInstance instance) |
| static void | initializeFunctions (VkInstance instance, VkDevice device) |
| static const VulkanFunctions & | getFunctions () |
| template<typename T> |
| static void | loadVkFunction (VkInstance instance, const std::string &name, T &functionPointer) |
| template<typename T> |
| static void | loadVkDeviceFunction (VkDevice device, const std::string &name, T &functionPointer) |
| static void | createBuffer (VkDevice device, VkPhysicalDevice physicalDevice, VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags properties, VkBuffer &buffer, VkDeviceMemory &bufferMemory) |
| static void | uploadDataToExistingBuffer (VkDevice device, VkPhysicalDevice physicalDevice, VkCommandPool commandPool, VkQueue queue, VkDeviceSize size, const void *dataPtr, VkBuffer targetBuffer) |
| static bool | isValid (void *object) |
| static std::string | strIsValid (void *object) |
| static uint32_t | findMemoryType (VkPhysicalDevice physicalDevice, uint32_t typeFilter, VkMemoryPropertyFlags properties) |
| static bool | findSuitableMemoryType (VkPhysicalDevice physicalDevice, VkMemoryRequirements2 requirements, VkMemoryPropertyFlags properties, uint32_t &out_typeIndex) |
| static VkDeviceSize | align (VkDeviceSize value, VkDeviceSize alignment) |
| static void | copyBuffer (VkDevice device, VkCommandPool commandPool, VkQueue graphicsQueue, VkBuffer sourceBuffer, VkBuffer destinationBuffer, VkDeviceSize size) |
| static void | copyBufferMultiple (VkDevice device, VkCommandPool commandPool, VkQueue graphicsQueue, const std::vector< BufferCopyObject > &bufferCopyObjects) |
| static void | recordBufferCopyMultiple (Engine::Core::ApplicationContext *context, VkCommandBuffer commandBuffer, const std::vector< BufferCopyObject > &bufferCopyObjects) |
| static VkCommandBuffer | beginSingleTimeCommands (VkDevice device, VkCommandPool commandPool) |
| static void | endSingleTimeCommands (VkDevice device, VkQueue graphicsQueue, VkCommandPool commandPool, VkCommandBuffer commandBuffer) |
| static void | cleanupBuffer (VkDevice device, VkBuffer buffer, VkDeviceMemory bufferMemory) |
| static void | createImage (VkDevice device, VkPhysicalDevice physicalDevice, uint32_t width, uint32_t height, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, VkMemoryPropertyFlags properties, VkImage &image, VkDeviceMemory &imageMemory) |
| static void | transitionImageLayout (VkCommandBuffer commandBuffer, VkDevice device, VkQueue graphicsQueue, VkCommandPool commandPool, VkImage image, VkFormat format, VkImageLayout oldLayout, VkImageLayout newLayout, uint32_t layerCount=1) |
| static bool | hasStencilComponent (VkFormat format) |
| static void | copyBufferToImage (VkDevice device, VkCommandPool commandPool, VkQueue graphicsQueue, VkBuffer buffer, VkImage image, uint32_t width, uint32_t height) |
| static VkImageView | createImageView (VkDevice device, VkImage image, VkFormat format, VkImageAspectFlags aspectFlags) |
| static VkDescriptorBufferInfo | fullBufferInfo (VkBuffer buffer) |
| static VkResult | allocateDescriptorSets (VkDevice device, const VkDescriptorSetAllocateInfo *pAllocateInfo, VkDescriptorSet *pDescriptorSets, const std::string &name) |
| static VkResult | createSemaphore (VkDevice device, const VkSemaphoreCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkSemaphore *pSemaphore, const std::string &name) |
| static VkResult | allocateCommandBuffers (VkDevice device, const VkCommandBufferAllocateInfo *pAllocateInfo, VkCommandBuffer *pCommandBuffers, const std::string &name) |
| static VkResult | createDescriptorSetLayout (VkDevice device, const VkDescriptorSetLayoutCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDescriptorSetLayout *pSetLayout, const std::string &name) |
| static VkResult | createPipelineLayout (VkDevice device, const VkPipelineLayoutCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkPipelineLayout *pPipelineLayout, const std::string &name) |
| static void | createFence (VkDevice device, const VkFenceCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkFence *pFence, const std::string &name) |
| static VkResult | createDescriptorPool (VkDevice device, const VkDescriptorPoolCreateInfo *pCreateInfo, const VkAllocationCallbacks *pAllocator, VkDescriptorPool *pDescriptorPool, const std::string &name) |
| static void | beginLabel (VkCommandBuffer, const char *, const float *) |
| static void | endLabel (VkCommandBuffer) |
| template<typename VulkanObjectType> |
| static void | setObjectName (VkDevice device, VulkanObjectType objectHandle, const std::string &name) |
| template<typename VulkanObjectType> |
| static std::string | getDebugName (VulkanObjectType objectHandle) |
Stores lots of different functions which shorten the amount of code which needs to be written for default vulkan operations.
Definition at line 59 of file VulkanHelper.h.