Finality Engine
Loading...
Searching...
No Matches
VkHelpers.h File Reference
#include "VKCore.h"
#include <Core/Mesh.h>
#include <Core/RenderDevice.h>

Go to the source code of this file.

Functions

static VkSurfaceFormatKHR ChooseSurfaceFormatAndColorSpace (const std::vector< VkSurfaceFormatKHR > &surfaceFormats)
static VkQueryPool CreateQueryPool (VkDevice device, VkQueryType queryType, uint32_t queryCount)
static uint32_t ChooseNumImages (const VkSurfaceCapabilitiesKHR &Capabilities)
static VkPresentModeKHR ChoosePresentMode (const std::vector< VkPresentModeKHR > &PresentModes)
static VkImageView CreateImageView (VkDevice device, VkImage image, VkFormat format, VkImageAspectFlags aspectFlags, VkImageViewType viewType, uint32_t layerCount, uint32_t mipLevels)
static VkSemaphore VkCreateSemaphore (VkDevice device)
VkPipelineVertexInputStateCreateInfo CreatePipelineVertexInputState (std::vector< VkVertexInputBindingDescription > &outBindings, std::vector< VkVertexInputAttributeDescription > &outAttributes)
bool HasStencilComponent (VkFormat Format)
static void ImageMemBarrier (VkCommandBuffer CmdBuf, VkImage Image, VkFormat Format, VkImageLayout OldLayout, VkImageLayout NewLayout, int LayerCount, uint32_t MipLevels, uint32_t BaseMipLevel)

Variables

PFN_vkCmdBeginRenderingKHR pfnCmdBeginRenderingKHR = nullptr
PFN_vkCmdEndRenderingKHR pfnCmdEndRenderingKHR = nullptr

Detailed Description

Todo
TODO: Document responsibilities, ownership, public API contracts, failure behavior and usage for VkHelpers.h.

Definition in file VkHelpers.h.

Function Documentation

◆ ChooseSurfaceFormatAndColorSpace()

VkSurfaceFormatKHR ChooseSurfaceFormatAndColorSpace ( const std::vector< VkSurfaceFormatKHR > & surfaceFormats)
static

Definition at line 14 of file VkHelpers.h.

◆ CreateQueryPool()

VkQueryPool CreateQueryPool ( VkDevice device,
VkQueryType queryType,
uint32_t queryCount )
static

Definition at line 28 of file VkHelpers.h.

◆ ChooseNumImages()

uint32_t ChooseNumImages ( const VkSurfaceCapabilitiesKHR & Capabilities)
static

Definition at line 43 of file VkHelpers.h.

◆ ChoosePresentMode()

VkPresentModeKHR ChoosePresentMode ( const std::vector< VkPresentModeKHR > & PresentModes)
static

Definition at line 60 of file VkHelpers.h.

◆ CreateImageView()

VkImageView CreateImageView ( VkDevice device,
VkImage image,
VkFormat format,
VkImageAspectFlags aspectFlags,
VkImageViewType viewType,
uint32_t layerCount,
uint32_t mipLevels )
static

Definition at line 81 of file VkHelpers.h.

◆ VkCreateSemaphore()

VkSemaphore VkCreateSemaphore ( VkDevice device)
static

Definition at line 112 of file VkHelpers.h.

◆ CreatePipelineVertexInputState()

VkPipelineVertexInputStateCreateInfo CreatePipelineVertexInputState ( std::vector< VkVertexInputBindingDescription > & outBindings,
std::vector< VkVertexInputAttributeDescription > & outAttributes )
inline

Definition at line 126 of file VkHelpers.h.

◆ HasStencilComponent()

bool HasStencilComponent ( VkFormat Format)
inline

Definition at line 215 of file VkHelpers.h.

◆ ImageMemBarrier()

void ImageMemBarrier ( VkCommandBuffer CmdBuf,
VkImage Image,
VkFormat Format,
VkImageLayout OldLayout,
VkImageLayout NewLayout,
int LayerCount,
uint32_t MipLevels,
uint32_t BaseMipLevel )
static

Definition at line 222 of file VkHelpers.h.

Variable Documentation

◆ pfnCmdBeginRenderingKHR

PFN_vkCmdBeginRenderingKHR pfnCmdBeginRenderingKHR = nullptr
inline

Definition at line 11 of file VkHelpers.h.

◆ pfnCmdEndRenderingKHR

PFN_vkCmdEndRenderingKHR pfnCmdEndRenderingKHR = nullptr
inline

Definition at line 12 of file VkHelpers.h.