16 auto error_fn =
reinterpret_cast<PFNGLGETERRORPROC
>(resolver(
"glGetError"));
22 #define GLVK_PROC(proc_ivar) \
23 if (auto fn_ptr = resolver(proc_ivar.name)) { \
24 proc_ivar.function = \
25 reinterpret_cast<decltype(proc_ivar.function)>(fn_ptr); \
26 proc_ivar.error_fn = error_fn; \
28 VALIDATION_LOG << "Could not resolve " << proc_ivar.name; \
std::function< void *(const char *function_name)> Resolver
ProcTable(const Resolver &resolver)
Create a proc table using a resolver to resolve OpenGL methods.
FOR_EACH_GLVK_PROC(GLVK_PROC)
bool IsValid() const
Determines if a proc. table is suitable for interop purposes. The absence of optional extension metho...
#define GLVK_PROC(proc_ivar)