mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-15 16:16:08 +00:00
OpenGL: Create ContextExternal for use without EGL
Allows passing in appropriate callbacks for managing the OpenGL context, as opposed to relying on Dawn+EGL for OpenGL context management.
This commit is contained in:
@@ -26,6 +26,10 @@ struct DAWN_NATIVE_EXPORT AdapterDiscoveryOptions : public AdapterDiscoveryOptio
|
||||
explicit AdapterDiscoveryOptions(WGPUBackendType type);
|
||||
|
||||
void* (*getProc)(const char*);
|
||||
// Context
|
||||
void (*makeCurrent)(void*);
|
||||
void (*destroy)(void*);
|
||||
void* userData;
|
||||
};
|
||||
|
||||
// TODO(crbug.com/dawn/810): This struct can be removed once Chrome is no longer using it.
|
||||
|
||||
Reference in New Issue
Block a user