The Joe Engine
Joe's engine programming playground
Common.cpp File Reference
#include "Common.h"
#include "JoeEngineConfig.h"

Namespaces

 JoeEngine
 

Functions

VkCommandBuffer JoeEngine::BeginSingleTimeCommands (VkDevice device, VkCommandPool commandPool)
 Begin single time command buffer recording. More...
 
void JoeEngine::EndSingleTimeCommands (VkDevice device, VkCommandBuffer commandBuffer, const JEVulkanQueue &graphicsQueue, VkCommandPool commandPool)
 End single time command buffer recording. More...
 
bool JoeEngine::HasStencilComponent (VkFormat format)
 Check if a depth format has a stencil component. More...
 
uint32_t JoeEngine::FindMemoryType (VkPhysicalDevice physicalDevice, uint32_t typeFilter, VkMemoryPropertyFlags properties)
 Get memory for an allocation. More...
 
void JoeEngine::CreateBuffer (VkPhysicalDevice physicalDevice, VkDevice device, VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags properties, VkBuffer &buffer, VkDeviceMemory &bufferMemory)
 Create buffer on the GPU. More...
 
void JoeEngine::CopyBuffer (VkDevice device, VkCommandPool commandPool, const JEVulkanQueue &graphicsQueue, VkBuffer srcBuffer, VkBuffer dstBuffer, VkDeviceSize size)
 Copy buffer CPU to GPU. More...
 
void JoeEngine::CreateImage (VkPhysicalDevice physicalDevice, VkDevice device, uint32_t width, uint32_t height, VkFormat format, VkImageTiling tiling, VkImageUsageFlags usage, VkMemoryPropertyFlags properties, VkImage &image, VkDeviceMemory &imageMemory)
 Create image. More...
 
VkImageView JoeEngine::CreateImageView (VkDevice device, VkImage image, VkFormat format, VkImageAspectFlags aspectFlags)
 Create image view. More...
 
void JoeEngine::TransitionImageLayout (VkDevice device, VkCommandPool commandPool, const JEVulkanQueue &graphicsQueue, VkImage image, VkFormat format, VkImageLayout oldLayout, VkImageLayout newLayout)
 Transition image from initial to final layout. More...
 
VkFormat JoeEngine::FindSupportedFormat (VkPhysicalDevice physicalDevice, const std::vector< VkFormat > &candidates, VkImageTiling tiling, VkFormatFeatureFlags features)
 Check if several candidate formats are supported. More...
 
VkFormat JoeEngine::FindDepthFormat (VkPhysicalDevice physicalDevice)
 Find a supported format among several candidate depth formats. More...
 

Variables

const std::string JoeEngine::JEBuiltInPostProcessingShaderPaths [2] = { "frag_post_chromatic_aberration.spv", "frag_post_grayscale.spv" }