Plasma Engine  2.0
Loading...
Searching...
No Matches
plConversionUtilsVulkan Class Reference

Helper functions to convert and extract Vulkan objects from PL objects. More...

#include <ConversionUtilsVulkan.h>

Static Public Member Functions

template<typename T , typename R = typename std::underlying_type<T>::type>
static R GetUnderlyingValue (T value)
 Helper function to hash vk enums.
 
template<typename T >
static auto GetUnderlyingFlagsValue (T value)
 Helper function to hash vk flags.
 
static vk::SampleCountFlagBits GetSamples (plEnum< plGALMSAASampleCount > samples)
 
static vk::PresentModeKHR GetPresentMode (plEnum< plGALPresentMode > presentMode, const plDynamicArray< vk::PresentModeKHR > &supportedModes)
 
static vk::ImageSubresourceRange GetSubresourceRange (const plGALTextureCreationDescription &texDesc, const plGALRenderTargetViewCreationDescription &desc)
 
static vk::ImageSubresourceRange GetSubresourceRange (const plGALTextureCreationDescription &texDesc, const plGALTextureResourceViewCreationDescription &viewDesc)
 
static vk::ImageSubresourceRange GetSubresourceRange (const plGALTextureCreationDescription &texDesc, const plGALTextureUnorderedAccessViewCreationDescription &viewDesc)
 
static vk::ImageSubresourceRange GetSubresourceRange (const vk::ImageSubresourceLayers &layers)
 
static vk::ImageViewType GetImageViewType (plEnum< plGALTextureType > texType, bool bIsArray)
 
static bool IsDepthFormat (vk::Format format)
 
static bool IsStencilFormat (vk::Format format)
 
static vk::ImageLayout GetDefaultLayout (vk::Format format)
 
static vk::PrimitiveTopology GetPrimitiveTopology (plEnum< plGALPrimitiveTopology > topology)
 
static vk::ShaderStageFlagBits GetShaderStage (plGALShaderStage::Enum stage)
 
static vk::ShaderStageFlagBits GetShaderStages (plBitflags< plGALShaderStageFlags > stages)
 
static vk::PipelineStageFlags GetPipelineStage (plGALShaderStage::Enum stage)
 
static vk::PipelineStageFlags GetPipelineStage (vk::ShaderStageFlags flags)
 
static vk::PipelineStageFlags GetPipelineStages (plBitflags< plGALShaderStageFlags > stages)
 
static vk::DescriptorType GetDescriptorType (plGALShaderResourceType::Enum type)
 

Detailed Description

Helper functions to convert and extract Vulkan objects from PL objects.


The documentation for this class was generated from the following files: