Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
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
28namespace Renderer
29{
30
31namespace Backend
32{
33
34namespace Vulkan
35{
36
37namespace Mapping
38{
39
40VkCompareOp FromCompareOp(const CompareOp compareOp);
41
42VkStencilOp FromStencilOp(const StencilOp stencilOp);
43
44VkBlendFactor FromBlendFactor(const BlendFactor blendFactor);
45
46VkBlendOp FromBlendOp(const BlendOp blendOp);
47
48VkColorComponentFlags FromColorWriteMask(const uint32_t colorWriteMask);
49
50VkPolygonMode FromPolygonMode(const PolygonMode polygonMode);
51
52VkCullModeFlags FromCullMode(const CullMode cullMode);
53
54VkFormat FromFormat(const Format format);
55
56VkSampleCountFlagBits FromSampleCount(const uint32_t sampleCount);
57
58VkSamplerAddressMode FromAddressMode(const Sampler::AddressMode addressMode);
59
60VkAttachmentLoadOp FromAttachmentLoadOp(const AttachmentLoadOp loadOp);
61
62VkAttachmentStoreOp 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
AddressMode
Definition: Sampler.h:42
VkBlendFactor FromBlendFactor(const BlendFactor blendFactor)
Definition: Mapping.cpp:75
VkSampleCountFlagBits FromSampleCount(const uint32_t sampleCount)
Definition: Mapping.cpp:206
VkBlendOp FromBlendOp(const BlendOp blendOp)
Definition: Mapping.cpp:106
VkAttachmentStoreOp FromAttachmentStoreOp(const AttachmentStoreOp storeOp)
Definition: Mapping.cpp:261
VkColorComponentFlags FromColorWriteMask(const uint32_t colorWriteMask)
Definition: Mapping.cpp:120
VkAttachmentLoadOp FromAttachmentLoadOp(const AttachmentLoadOp loadOp)
Definition: Mapping.cpp:243
VkFormat FromFormat(const Format format)
Definition: Mapping.cpp:158
VkCompareOp FromCompareOp(const CompareOp compareOp)
Definition: Mapping.cpp:37
VkStencilOp FromStencilOp(const StencilOp stencilOp)
Definition: Mapping.cpp:56
VkSamplerAddressMode FromAddressMode(const Sampler::AddressMode addressMode)
Definition: Mapping.cpp:222
VkCullModeFlags FromCullMode(const CullMode cullMode)
Definition: Mapping.cpp:141
VkPolygonMode FromPolygonMode(const PolygonMode polygonMode)
Definition: Mapping.cpp:134
CompareOp
Definition: CompareOp.h:32
Format
Definition: Format.h:28
PolygonMode
Definition: PipelineState.h:136
AttachmentStoreOp
Store operation is set for each attachment, what should be done with its content on EndFramebufferPas...
Definition: IFramebuffer.h:52
StencilOp
Definition: PipelineState.h:35
BlendOp
Definition: PipelineState.h:104
BlendFactor
Definition: PipelineState.h:81
Backend
Definition: Backend.h:28
CullMode
Definition: PipelineState.h:142
AttachmentLoadOp
Load operation is set for each attachment, what should be done with its content on BeginFramebufferPa...
Definition: IFramebuffer.h:37
Definition: VideoMode.h:29
unsigned int uint32_t
Definition: wposix_types.h:53