Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ghi_enums.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <Frame/picture_basics.h>
7#include <Utility/traits.h>
8
9#include <cstddef>
10
11namespace ph::editor::ghi
12{
13
18enum class ESizedPixelFormat : uint8
19{
20 Empty = 0,
21 RGB_8,
22 RGBA_8,
23 RGB_16F,
25 RGB_32F,
28};
29
30enum class EPixelFormat : uint8
31{
32 Empty = 0,
33 R,
34 RG,
35 RGB,
36 RGBA,
37 Depth,
39};
40
41enum class EPixelComponent : uint8
42{
43 Empty = 0,
44 Int8,
45 UInt8,
46 Int16,
47 UInt16,
48 Int32,
49 UInt32,
50 Int64,
51 UInt64,
52 Float16,
53 Float32,
55};
56
57enum class EFilterMode : uint8
58{
59 Point,
60 Linear
61};
62
63enum class EWrapMode : uint8
64{
66 Repeat
67};
68
69enum class EStorageElement : uint8
70{
71 Empty = 0,
72 Int8,
73 UInt8,
74 Int16,
75 UInt16,
76 Int32,
77 UInt32,
78 Int64,
79 UInt64,
80 Float16,
81 Float32,
83};
84
85enum class EStorageUsage : uint8
86{
87 Unspecified = 0,
88 Static,
90};
91
92enum class EMeshDrawMode : uint8
93{
94 Points,
101};
102
103enum class EShadingStage : uint8
104{
105 Unspecified = 0,
106 Vertex,
107 Fragment,
108 Compute
109};
110
111std::size_t num_bytes(ESizedPixelFormat sizedFormat);
112std::size_t num_bytes(EPixelComponent component);
113std::size_t num_bytes(EStorageElement element);
114
115template<CEnum DstEnumType>
116DstEnumType translate_to(EPicturePixelComponent pictureComponent);
117
118}// end namespace ph::editor::ghi
119
Definition PlatformDisplay.h:13
ESizedPixelFormat
Combined pixel layout and component type information. Unless stated explicitly, the characters RGB do...
Definition ghi_enums.h:19
EPixelFormat
Definition ghi_enums.h:31
EWrapMode
Definition ghi_enums.h:64
EStorageElement
Definition ghi_enums.h:70
EFilterMode
Definition ghi_enums.h:58
EShadingStage
Definition ghi_enums.h:104
EStorageUsage
Definition ghi_enums.h:86
DstEnumType translate_to(EPicturePixelComponent pictureComponent)
Definition ghi_enums.ipp:69
EMeshDrawMode
Definition ghi_enums.h:93
EPixelComponent
Definition ghi_enums.h:42
std::size_t num_bytes(ESizedPixelFormat sizedFormat)
Definition ghi_enums.ipp:12