![]() |
HoviTron Video Pipeline
|
Class that contains helper functions for Vulkan. More...
Go to the source code of this file.
Macros | |
| #define | INDEX_E(x, y, W) ((y)*(W) + (x)) |
Functions | |
| uint32_t | findMemoryType (vk::PhysicalDevice &physicalDevice, uint32_t typeFilter, vk::MemoryPropertyFlags properties) |
| uint32_t | findFastMemoryType (vk::PhysicalDevice &physicalDevice, uint32_t typeFilter, vk::MemoryPropertyFlags properties) |
| void | createImage (vk::Device &device, vk::PhysicalDevice &physicalDevice, uint32_t width, uint32_t height, vk::Format format, vk::ImageTiling tiling, vk::ImageUsageFlags usage, vk::MemoryPropertyFlags properties, vk::Image &image, vk::DeviceMemory &imageMemory) |
| vk::ImageView | createImageView (vk::Device &device, vk::Image image, vk::Format format, vk::ImageAspectFlags aspectFlags) |
| vk::CommandBuffer | beginSingleTimeCommands (VulkanContext *context, vk::CommandPool &commandPool) |
| void | endSingleTimeCommands (VulkanContext *context, vk::CommandPool &commandPool, vk::CommandBuffer commandBuffer) |
| void | transitionImageLayout (VulkanContext *context, vk::CommandPool &commandPool, vk::Image image, vk::Format format, vk::ImageLayout oldLayout, vk::ImageLayout newLayout) |
| void | createBuffer (vk::DeviceSize size, vk::BufferUsageFlags usage, vk::MemoryPropertyFlags properties, vk::Buffer &buffer, vk::DeviceMemory &bufferMemory, vk::Device &device, vk::PhysicalDevice &physicalDevice) |
| void | createFastBuffer (vk::DeviceSize size, vk::BufferUsageFlags usage, vk::MemoryPropertyFlags properties, vk::Buffer &buffer, vk::DeviceMemory &bufferMemory, vk::Device &device, vk::PhysicalDevice &physicalDevice) |
| std::vector< uint32_t > | generate_picture_EBO (const glm::vec2 &s) |
| glm::mat3x3 | glmEulerAnglesDegreeToRotationMatrix (glm::vec3) |
| glm::mat3x3 | glmEulerAnglesDegreeToRotationMatrixNotOMAF (glm::vec3) |
| glm::quat | ApproximateAverage (std::vector< glm::quat > quaternions) |
| glm::vec3 | eulerAngleXYZFromRotationMatrix (glm::mat3x3 &mat) |
| glm::vec3 | quatToEuler (glm::quat) |
Class that contains helper functions for Vulkan.
Definition in file VulkanHelperFunction.h.
| #define INDEX_E | ( | x, | |
| y, | |||
| W | |||
| ) | ((y)*(W) + (x)) |
Definition at line 41 of file VulkanHelperFunction.h.
| glm::quat ApproximateAverage | ( | std::vector< glm::quat > | quaternions | ) |
Average of quaternions "close" to each other (faster than full conversion)
Definition at line 406 of file VulkanHelperFunction.cpp.
| vk::CommandBuffer beginSingleTimeCommands | ( | VulkanContext * | context, |
| vk::CommandPool & | commandPool | ||
| ) |
Definition at line 117 of file VulkanHelperFunction.cpp.
| void createBuffer | ( | vk::DeviceSize | size, |
| vk::BufferUsageFlags | usage, | ||
| vk::MemoryPropertyFlags | properties, | ||
| vk::Buffer & | buffer, | ||
| vk::DeviceMemory & | bufferMemory, | ||
| vk::Device & | device, | ||
| vk::PhysicalDevice & | physicalDevice | ||
| ) |
Definition at line 243 of file VulkanHelperFunction.cpp.
| void createFastBuffer | ( | vk::DeviceSize | size, |
| vk::BufferUsageFlags | usage, | ||
| vk::MemoryPropertyFlags | properties, | ||
| vk::Buffer & | buffer, | ||
| vk::DeviceMemory & | bufferMemory, | ||
| vk::Device & | device, | ||
| vk::PhysicalDevice & | physicalDevice | ||
| ) |
Definition at line 224 of file VulkanHelperFunction.cpp.
| void createImage | ( | vk::Device & | device, |
| vk::PhysicalDevice & | physicalDevice, | ||
| uint32_t | width, | ||
| uint32_t | height, | ||
| vk::Format | format, | ||
| vk::ImageTiling | tiling, | ||
| vk::ImageUsageFlags | usage, | ||
| vk::MemoryPropertyFlags | properties, | ||
| vk::Image & | image, | ||
| vk::DeviceMemory & | imageMemory | ||
| ) |
Definition at line 73 of file VulkanHelperFunction.cpp.
| vk::ImageView createImageView | ( | vk::Device & | device, |
| vk::Image | image, | ||
| vk::Format | format, | ||
| vk::ImageAspectFlags | aspectFlags | ||
| ) |
Definition at line 98 of file VulkanHelperFunction.cpp.
| void endSingleTimeCommands | ( | VulkanContext * | context, |
| vk::CommandPool & | commandPool, | ||
| vk::CommandBuffer | commandBuffer | ||
| ) |
Definition at line 128 of file VulkanHelperFunction.cpp.
| glm::vec3 eulerAngleXYZFromRotationMatrix | ( | glm::mat3x3 & | mat | ) |
Definition at line 426 of file VulkanHelperFunction.cpp.
| uint32_t findFastMemoryType | ( | vk::PhysicalDevice & | physicalDevice, |
| uint32_t | typeFilter, | ||
| vk::MemoryPropertyFlags | properties | ||
| ) |
Definition at line 39 of file VulkanHelperFunction.cpp.
| uint32_t findMemoryType | ( | vk::PhysicalDevice & | physicalDevice, |
| uint32_t | typeFilter, | ||
| vk::MemoryPropertyFlags | properties | ||
| ) |
Definition at line 29 of file VulkanHelperFunction.cpp.
| std::vector< uint32_t > generate_picture_EBO | ( | const glm::vec2 & | s | ) |
Definition at line 265 of file VulkanHelperFunction.cpp.
| glm::mat3x3 glmEulerAnglesDegreeToRotationMatrix | ( | glm::vec3 | rotationDegrees | ) |
Get rotation as a matrix
Definition at line 131 of file helpersSynthesis.cpp.
| glm::mat3x3 glmEulerAnglesDegreeToRotationMatrixNotOMAF | ( | glm::vec3 | rotationDegrees | ) |
Get a matrix (from euler angles in openxr) NOT OMAF !
Definition at line 143 of file helpersSynthesis.cpp.
| glm::vec3 quatToEuler | ( | glm::quat | q | ) |
Definition at line 495 of file VulkanHelperFunction.cpp.
| void transitionImageLayout | ( | VulkanContext * | context, |
| vk::CommandPool & | commandPool, | ||
| vk::Image | image, | ||
| vk::Format | format, | ||
| vk::ImageLayout | oldLayout, | ||
| vk::ImageLayout | newLayout | ||
| ) |
Definition at line 139 of file VulkanHelperFunction.cpp.