Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Utilities.h File Reference
#include "ps/CStr.h"
#include <glad/vulkan.h>
Include dependency graph for Utilities.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Renderer
 
namespace  Renderer::Backend
 
namespace  Renderer::Backend::Vulkan
 
namespace  Renderer::Backend::Vulkan::Utilities
 

Macros

#define ENSURE_VK_SUCCESS(EXPR)
 

Functions

void Renderer::Backend::Vulkan::Utilities::SetTextureLayout (VkCommandBuffer commandBuffer, CTexture *texture, const VkImageLayout oldLayout, const VkImageLayout newLayout, const VkAccessFlags srcAccessMask, const VkAccessFlags dstAccessMask, const VkPipelineStageFlags srcStageMask, const VkPipelineStageFlags dstStageMask)
 
void Renderer::Backend::Vulkan::Utilities::SubmitImageMemoryBarrier (VkCommandBuffer commandBuffer, VkImage image, const uint32_t level, const uint32_t layer, const VkAccessFlags srcAccessMask, const VkAccessFlags dstAccessMask, const VkImageLayout oldLayout, const VkImageLayout newLayout, const VkPipelineStageFlags srcStageMask, const VkPipelineStageFlags dstStageMask, const VkImageAspectFlags aspectMask)
 
void Renderer::Backend::Vulkan::Utilities::SubmitBufferMemoryBarrier (VkCommandBuffer commandBuffer, CBuffer *buffer, const VkDeviceSize offset, const VkDeviceSize size, const VkAccessFlags srcAccessMask, const VkAccessFlags dstAccessMask, const VkPipelineStageFlags srcStageMask, const VkPipelineStageFlags dstStageMask)
 
void Renderer::Backend::Vulkan::Utilities::SubmitMemoryBarrier (VkCommandBuffer commandBuffer, const VkAccessFlags srcAccessMask, const VkAccessFlags dstAccessMask, const VkPipelineStageFlags srcStageMask, const VkPipelineStageFlags dstStageMask)
 
void Renderer::Backend::Vulkan::Utilities::SubmitPipelineBarrier (VkCommandBuffer commandBuffer, const VkPipelineStageFlags srcStageMask, const VkPipelineStageFlags dstStageMask)
 
void Renderer::Backend::Vulkan::Utilities::SubmitDebugSyncMemoryBarrier (VkCommandBuffer commandBuffer)
 
const char * Renderer::Backend::Vulkan::Utilities::GetVkResultName (const VkResult result)
 

Macro Definition Documentation

◆ ENSURE_VK_SUCCESS

#define ENSURE_VK_SUCCESS (   EXPR)
Value:
do \
{ \
const VkResult result = (EXPR); \
if (result != VK_SUCCESS) \
{ \
LOGERROR(#EXPR " returned %d (%s) instead of VK_SUCCESS", static_cast<int>(result), Utilities::GetVkResultName(result)); \
ENSURE(false && #EXPR); \
} \
} while (0)
const char * GetVkResultName(const VkResult result)
Definition: Utilities.cpp:164