Go to the source code of this file.
|
| class | impeller::glvk::ProcTable |
| | A proc. table consisting of methods that are useful when interoperating between OpenGL and Vulkan. This is different from the OpenGL proc. table since it may contain more interop extension related methods. More...
|
| |
◆ FOR_EACH_GLVK_PROC
| #define FOR_EACH_GLVK_PROC |
( |
|
PROC | ) |
|
Definition at line 13 of file proc_table.h.
60 {
61 public:
62 using Resolver = std::function<void*(const char* function_name)>;
63
64
65
66
67
68
69
70 explicit ProcTable(const Resolver& resolver);
71
72 ~ProcTable();
73
74 ProcTable(const ProcTable&) = delete;
75
76 ProcTable& operator=(const ProcTable&) = delete;
77
78
79
80
81
82
83
84
85
86
87 bool IsValid() const;
88
89#define GLVK_PROC(name) GLProc<decltype(gl##name)> name = {"gl" #name, nullptr};
90
92
93#undef GLVK_PROC
94
95 private:
96 bool is_valid_ = false;
97};
98
99}
100
101#endif
◆ GLVK_PROC
| #define GLVK_PROC |
( |
|
name | ) |
GLProc<decltype(gl##name)> name = {"gl" #name, nullptr}; |