3#include <vulkan/vulkan.h>
19uint32_t
FindMemoryType(VkPhysicalDevice physicalDevice, uint32_t typeFilter, VkMemoryPropertyFlags properties);
31void CreateBuffer(VkDevice device, VkPhysicalDevice physicalDevice,
unsigned int size, VkBufferUsageFlags usage, VkMemoryPropertyFlags memoryProperties, VkBuffer* buffer, VkDeviceMemory* deviceMemory);
46void CreateImage2D(VkDevice device, VkPhysicalDevice physicalDevice,
const glm::uvec2& size, uint32_t mipLevels, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, VkMemoryPropertyFlags memoryProperties, VkImage* image, VkDeviceMemory* deviceMemory);
55void TransitionImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout oldLayout, VkImageLayout newLayout);
Definition: ResourceView.hpp:12
uint32_t FindMemoryType(VkPhysicalDevice physicalDevice, uint32_t typeFilter, VkMemoryPropertyFlags properties)
Find the memory type to use for a certain allocation.
Definition: VulkanUtility.cpp:8
void TransitionImage(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout oldLayout, VkImageLayout newLayout)
Record transitioning an image into a command buffer.
Definition: VulkanUtility.cpp:95
void CreateImage2D(VkDevice device, VkPhysicalDevice physicalDevice, const glm::uvec2 &size, uint32_t mipLevels, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, VkMemoryPropertyFlags memoryProperties, VkImage *image, VkDeviceMemory *deviceMemory)
Create a 2D image, allocate and bind device memory to it.
Definition: VulkanUtility.cpp:54
void CreateBuffer(VkDevice device, VkPhysicalDevice physicalDevice, unsigned int size, VkBufferUsageFlags usage, VkMemoryPropertyFlags memoryProperties, VkBuffer *buffer, VkDeviceMemory *deviceMemory)
Create a buffer.
Definition: VulkanUtility.cpp:24
Definition: Editor.hpp:18