Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Mapping.cpp File Reference
#include "precompiled.h"
#include "Mapping.h"
#include "lib/code_annotation.h"
#include "lib/config2.h"
Include dependency graph for Mapping.cpp:

Namespaces

namespace  Renderer
 
namespace  Renderer::Backend
 
namespace  Renderer::Backend::Vulkan
 
namespace  Renderer::Backend::Vulkan::Mapping
 

Macros

#define CASE(NAME)   case CompareOp::NAME: op = VK_COMPARE_OP_##NAME; break
 
#define CASE(NAME)   case StencilOp::NAME: op = VK_STENCIL_OP_##NAME; break
 
#define CASE(NAME)   case BlendFactor::NAME: factor = VK_BLEND_FACTOR_##NAME; break
 
#define CASE(NAME)   case Format::NAME: resultFormat = VK_FORMAT_##NAME; break;
 
#define CASE2(NAME, VK_NAME)   case Format::NAME: resultFormat = VK_FORMAT_##VK_NAME; break;
 

Functions

VkCompareOp Renderer::Backend::Vulkan::Mapping::FromCompareOp (const CompareOp compareOp)
 
VkStencilOp Renderer::Backend::Vulkan::Mapping::FromStencilOp (const StencilOp stencilOp)
 
VkBlendFactor Renderer::Backend::Vulkan::Mapping::FromBlendFactor (const BlendFactor blendFactor)
 
VkBlendOp Renderer::Backend::Vulkan::Mapping::FromBlendOp (const BlendOp blendOp)
 
VkColorComponentFlags Renderer::Backend::Vulkan::Mapping::FromColorWriteMask (const uint32_t colorWriteMask)
 
VkPolygonMode Renderer::Backend::Vulkan::Mapping::FromPolygonMode (const PolygonMode polygonMode)
 
VkCullModeFlags Renderer::Backend::Vulkan::Mapping::FromCullMode (const CullMode cullMode)
 
VkFormat Renderer::Backend::Vulkan::Mapping::FromFormat (const Format format)
 
VkSampleCountFlagBits Renderer::Backend::Vulkan::Mapping::FromSampleCount (const uint32_t sampleCount)
 
VkSamplerAddressMode Renderer::Backend::Vulkan::Mapping::FromAddressMode (const Sampler::AddressMode addressMode)
 
VkAttachmentLoadOp Renderer::Backend::Vulkan::Mapping::FromAttachmentLoadOp (const AttachmentLoadOp loadOp)
 
VkAttachmentStoreOp Renderer::Backend::Vulkan::Mapping::FromAttachmentStoreOp (const AttachmentStoreOp storeOp)
 

Macro Definition Documentation

◆ CASE [1/4]

#define CASE (   NAME)    case CompareOp::NAME: op = VK_COMPARE_OP_##NAME; break

◆ CASE [2/4]

#define CASE (   NAME)    case StencilOp::NAME: op = VK_STENCIL_OP_##NAME; break

◆ CASE [3/4]

#define CASE (   NAME)    case BlendFactor::NAME: factor = VK_BLEND_FACTOR_##NAME; break

◆ CASE [4/4]

#define CASE (   NAME)    case Format::NAME: resultFormat = VK_FORMAT_##NAME; break;

◆ CASE2

#define CASE2 (   NAME,
  VK_NAME 
)    case Format::NAME: resultFormat = VK_FORMAT_##VK_NAME; break;