![]() |
PeriDyno 1.0.0
|
Functions | |
std::string | errorString (VkResult errorCode) |
Returns an error code as a string. | |
std::string | physicalDeviceTypeString (VkPhysicalDeviceType type) |
Returns the device type as a string. | |
VkBool32 | getSupportedDepthFormat (VkPhysicalDevice physicalDevice, VkFormat *depthFormat) |
VkBool32 | formatIsFilterable (VkPhysicalDevice physicalDevice, VkFormat format, VkImageTiling tiling) |
void | setImageLayout (VkCommandBuffer cmdbuffer, VkImage image, VkImageLayout oldImageLayout, VkImageLayout newImageLayout, VkImageSubresourceRange subresourceRange, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask) |
void | setImageLayout (VkCommandBuffer cmdbuffer, VkImage image, VkImageAspectFlags aspectMask, VkImageLayout oldImageLayout, VkImageLayout newImageLayout, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask) |
void | insertImageMemoryBarrier (VkCommandBuffer cmdbuffer, VkImage image, VkAccessFlags srcAccessMask, VkAccessFlags dstAccessMask, VkImageLayout oldImageLayout, VkImageLayout newImageLayout, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkImageSubresourceRange subresourceRange) |
Insert an image memory barrier into the command buffer. | |
void | exitFatal (const std::string &message, int32_t exitCode) |
void | exitFatal (const std::string &message, VkResult resultCode) |
VkShaderModule | loadShaderModule (const std::string fileName, VkDevice device) |
VkShaderModule | loadShader (const char *fileName, VkDevice device) |
bool | fileExists (const std::string &filename) |
Checks if a file exists. | |
uint32_t | alignedSize (uint32_t value, uint32_t alignment) |
VkShaderModule | loadShaderModule (const std::string &fileName, const std::map< std::string, std::string > ¯os, const std::string &MD5Encode, VkDevice device) |
VkShaderModule | loadShader (const std::string &fileName, const std::map< std::string, std::string > ¯os, const std::string &MD5Encode, VkDevice device) |
Variables | |
bool | errorModeSilent = false |
Disable message boxes on fatal errors. | |
uint32_t vks::tools::alignedSize | ( | uint32_t | value, |
uint32_t | alignment ) |
Definition at line 382 of file VulkanTools.cpp.
std::string vks::tools::errorString | ( | VkResult | errorCode | ) |
Returns an error code as a string.
Definition at line 17 of file VulkanTools.cpp.
void vks::tools::exitFatal | ( | const std::string & | message, |
int32_t | exitCode ) |
void vks::tools::exitFatal | ( | const std::string & | message, |
VkResult | resultCode ) |
bool vks::tools::fileExists | ( | const std::string & | filename | ) |
Checks if a file exists.
Definition at line 376 of file VulkanTools.cpp.
VkBool32 vks::tools::formatIsFilterable | ( | VkPhysicalDevice | physicalDevice, |
VkFormat | format, | ||
VkImageTiling | tiling ) |
Definition at line 94 of file VulkanTools.cpp.
VkBool32 vks::tools::getSupportedDepthFormat | ( | VkPhysicalDevice | physicalDevice, |
VkFormat * | depthFormat ) |
void vks::tools::insertImageMemoryBarrier | ( | VkCommandBuffer | cmdbuffer, |
VkImage | image, | ||
VkAccessFlags | srcAccessMask, | ||
VkAccessFlags | dstAccessMask, | ||
VkImageLayout | oldImageLayout, | ||
VkImageLayout | newImageLayout, | ||
VkPipelineStageFlags | srcStageMask, | ||
VkPipelineStageFlags | dstStageMask, | ||
VkImageSubresourceRange | subresourceRange ) |
Insert an image memory barrier into the command buffer.
Definition at line 252 of file VulkanTools.cpp.
VkShaderModule vks::tools::loadShader | ( | const char * | fileName, |
VkDevice | device ) |
Definition at line 342 of file VulkanTools.cpp.
VkShaderModule vks::tools::loadShader | ( | const std::string & | fileName, |
const std::map< std::string, std::string > & | macros, | ||
const std::string & | MD5Encode, | ||
VkDevice | device ) |
VkShaderModule vks::tools::loadShaderModule | ( | const std::string & | fileName, |
const std::map< std::string, std::string > & | macros, | ||
const std::string & | MD5Encode, | ||
VkDevice | device ) |
VkShaderModule vks::tools::loadShaderModule | ( | const std::string | fileName, |
VkDevice | device ) |
Definition at line 303 of file VulkanTools.cpp.
std::string vks::tools::physicalDeviceTypeString | ( | VkPhysicalDeviceType | type | ) |
Returns the device type as a string.
Definition at line 51 of file VulkanTools.cpp.
void vks::tools::setImageLayout | ( | VkCommandBuffer | cmdbuffer, |
VkImage | image, | ||
VkImageAspectFlags | aspectMask, | ||
VkImageLayout | oldImageLayout, | ||
VkImageLayout | newImageLayout, | ||
VkPipelineStageFlags | srcStageMask, | ||
VkPipelineStageFlags | dstStageMask ) |
void vks::tools::setImageLayout | ( | VkCommandBuffer | cmdbuffer, |
VkImage | image, | ||
VkImageLayout | oldImageLayout, | ||
VkImageLayout | newImageLayout, | ||
VkImageSubresourceRange | subresourceRange, | ||
VkPipelineStageFlags | srcStageMask, | ||
VkPipelineStageFlags | dstStageMask ) |
Definition at line 112 of file VulkanTools.cpp.
bool vks::tools::errorModeSilent = false |
Disable message boxes on fatal errors.
Definition at line 15 of file VulkanTools.cpp.