Pyrogenesis  trunk
Mapping.h
Go to the documentation of this file.
1 /* Copyright (C) 2023 Wildfire Games.
2  * This file is part of 0 A.D.
3  *
4  * 0 A.D. is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * 0 A.D. is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef INCLUDED_RENDERER_BACKEND_VULKAN_MAPPING
19 #define INCLUDED_RENDERER_BACKEND_VULKAN_MAPPING
20 
25 
26 #include <glad/vulkan.h>
27 
28 namespace Renderer
29 {
30 
31 namespace Backend
32 {
33 
34 namespace Vulkan
35 {
36 
37 namespace Mapping
38 {
39 
40 VkCompareOp FromCompareOp(const CompareOp compareOp);
41 
42 VkStencilOp FromStencilOp(const StencilOp stencilOp);
43 
44 VkBlendFactor FromBlendFactor(const BlendFactor blendFactor);
45 
46 VkBlendOp FromBlendOp(const BlendOp blendOp);
47 
48 VkColorComponentFlags FromColorWriteMask(const uint32_t colorWriteMask);
49 
50 VkPolygonMode FromPolygonMode(const PolygonMode polygonMode);
51 
52 VkCullModeFlags FromCullMode(const CullMode cullMode);
53 
54 VkFormat FromFormat(const Format format);
55 
56 VkSampleCountFlagBits FromSampleCount(const uint32_t sampleCount);
57 
58 VkSamplerAddressMode FromAddressMode(const Sampler::AddressMode addressMode);
59 
60 VkAttachmentLoadOp FromAttachmentLoadOp(const AttachmentLoadOp loadOp);
61 
62 VkAttachmentStoreOp FromAttachmentStoreOp(const AttachmentStoreOp storeOp);
63 
64 } // namespace Mapping
65 
66 } // namespace Vulkan
67 
68 } // namespace Backend
69 
70 } // namespace Renderer
71 
72 #endif // INCLUDED_RENDERER_BACKEND_VULKAN_MAPPING
AttachmentLoadOp
Load operation is set for each attachment, what should be done with its content on BeginFramebufferPa...
Definition: IFramebuffer.h:36
VkStencilOp FromStencilOp(const StencilOp stencilOp)
Definition: Mapping.cpp:56
AttachmentStoreOp
Store operation is set for each attachment, what should be done with its content on EndFramebufferPas...
Definition: IFramebuffer.h:51
VkColorComponentFlags FromColorWriteMask(const uint32_t colorWriteMask)
Definition: Mapping.cpp:120
StencilOp
Definition: PipelineState.h:34
VkSamplerAddressMode FromAddressMode(const Sampler::AddressMode addressMode)
Definition: Mapping.cpp:221
Format
Definition: Format.h:27
VkFormat FromFormat(const Format format)
Definition: Mapping.cpp:158
VkPolygonMode FromPolygonMode(const PolygonMode polygonMode)
Definition: Mapping.cpp:134
VkAttachmentStoreOp FromAttachmentStoreOp(const AttachmentStoreOp storeOp)
Definition: Mapping.cpp:260
VkSampleCountFlagBits FromSampleCount(const uint32_t sampleCount)
Definition: Mapping.cpp:205
AddressMode
Definition: Sampler.h:41
VkBlendFactor FromBlendFactor(const BlendFactor blendFactor)
Definition: Mapping.cpp:75
CullMode
Definition: PipelineState.h:141
VkAttachmentLoadOp FromAttachmentLoadOp(const AttachmentLoadOp loadOp)
Definition: Mapping.cpp:242
VkCompareOp FromCompareOp(const CompareOp compareOp)
Definition: Mapping.cpp:37
Backend
Definition: Backend.h:27
BlendFactor
Definition: PipelineState.h:80
CompareOp
Definition: CompareOp.h:31
unsigned int uint32_t
Definition: wposix_types.h:53
Definition: VideoMode.h:28
VkCullModeFlags FromCullMode(const CullMode cullMode)
Definition: Mapping.cpp:141
VkBlendOp FromBlendOp(const BlendOp blendOp)
Definition: Mapping.cpp:106
PolygonMode
Definition: PipelineState.h:135
BlendOp
Definition: PipelineState.h:103