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...
#include <proc_table.h>
Public Types | |
using | Resolver = std::function< void *(const char *function_name)> |
Public Member Functions | |
ProcTable (const Resolver &resolver) | |
Create a proc table using a resolver to resolve OpenGL methods. More... | |
~ProcTable () | |
ProcTable (const ProcTable &)=delete | |
ProcTable & | operator= (const ProcTable &)=delete |
bool | IsValid () const |
Determines if a proc. table is suitable for interop purposes. The absence of optional extension methods that have fallbacks don't result in an invalid proc. table. But an invalid proc table must always be discarded as there can be no error recovery. More... | |
FOR_EACH_GLVK_PROC (GLVK_PROC) | |
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.
Definition at line 61 of file proc_table.h.
using impeller::glvk::ProcTable::Resolver = std::function<void*(const char* function_name)> |
Definition at line 63 of file proc_table.h.
|
explicit |
Create a proc table using a resolver to resolve OpenGL methods.
[in] | resolver | The resolver |
Definition at line 11 of file proc_table.cc.
References FOR_EACH_GLVK_PROC(), GLVK_PROC, and VALIDATION_LOG.
|
default |
|
delete |
impeller::glvk::ProcTable::FOR_EACH_GLVK_PROC | ( | GLVK_PROC | ) |
Referenced by ProcTable().
bool impeller::glvk::ProcTable::IsValid | ( | ) | const |
Determines if a proc. table is suitable for interop purposes. The absence of optional extension methods that have fallbacks don't result in an invalid proc. table. But an invalid proc table must always be discarded as there can be no error recovery.
Definition at line 41 of file proc_table.cc.