PeriDyno 1.0.0
Loading...
Searching...
No Matches
VulkanTools.cpp File Reference
#include "VulkanTools.h"
Include dependency graph for VulkanTools.cpp:

Go to the source code of this file.

Namespaces

namespace  vks
 
namespace  vks::tools
 

Macros

#define STR(r)
 
#define STR(r)
 

Functions

std::string vks::tools::errorString (VkResult errorCode)
 Returns an error code as a string.
 
std::string vks::tools::physicalDeviceTypeString (VkPhysicalDeviceType type)
 Returns the device type as a string.
 
VkBool32 vks::tools::getSupportedDepthFormat (VkPhysicalDevice physicalDevice, VkFormat *depthFormat)
 
VkBool32 vks::tools::formatIsFilterable (VkPhysicalDevice physicalDevice, VkFormat format, VkImageTiling tiling)
 
void vks::tools::setImageLayout (VkCommandBuffer cmdbuffer, VkImage image, VkImageLayout oldImageLayout, VkImageLayout newImageLayout, VkImageSubresourceRange subresourceRange, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask)
 
void vks::tools::setImageLayout (VkCommandBuffer cmdbuffer, VkImage image, VkImageAspectFlags aspectMask, VkImageLayout oldImageLayout, VkImageLayout newImageLayout, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask)
 
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.
 
void vks::tools::exitFatal (const std::string &message, int32_t exitCode)
 
void vks::tools::exitFatal (const std::string &message, VkResult resultCode)
 
VkShaderModule vks::tools::loadShaderModule (const std::string fileName, VkDevice device)
 
VkShaderModule vks::tools::loadShader (const char *fileName, VkDevice device)
 
bool vks::tools::fileExists (const std::string &filename)
 Checks if a file exists.
 
uint32_t vks::tools::alignedSize (uint32_t value, uint32_t alignment)
 

Variables

bool vks::tools::errorModeSilent = false
 Disable message boxes on fatal errors.
 

Macro Definition Documentation

◆ STR [1/2]

#define STR ( r)
Value:
case VK_ ##r: return #r

◆ STR [2/2]

#define STR ( r)
Value:
case VK_PHYSICAL_DEVICE_TYPE_ ##r: return #r