mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Make libdawn_native a shared library.
The interface exposed by libdawn_native is declared in the new headers living in src/include/dawn_native so that they both the users and the libraries use the DAWN_NATIVE_EXPORT macros.
This commit is contained in:
committed by
Corentin Wallez
parent
36afbb6a0d
commit
196ade667f
@@ -18,6 +18,7 @@
|
||||
#include "common/Platform.h"
|
||||
#include "common/SwapChainUtils.h"
|
||||
#include "dawn/dawn_wsi.h"
|
||||
#include "dawn_native/OpenGLBackend.h"
|
||||
|
||||
// Glad needs to be included before GLFW otherwise it complain that GL.h was already included
|
||||
#include "glad/glad.h"
|
||||
@@ -25,10 +26,6 @@
|
||||
#include <cstdio>
|
||||
#include "GLFW/glfw3.h"
|
||||
|
||||
namespace dawn_native { namespace opengl {
|
||||
void Init(void* (*getProc)(const char*), dawnProcTable* procs, dawnDevice* device);
|
||||
}} // namespace dawn_native::opengl
|
||||
|
||||
namespace utils {
|
||||
class SwapChainImplGL {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user