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:
Corentin Wallez
2018-07-25 13:37:28 +02:00
committed by Corentin Wallez
parent 36afbb6a0d
commit 196ade667f
21 changed files with 252 additions and 72 deletions

View File

@@ -15,27 +15,11 @@
#include "utils/BackendBinding.h"
#include "common/Assert.h"
#include "dawn/dawn_wsi.h"
#include "dawn_native/VulkanBackend.h"
#include <vulkan/vulkan.h>
// Include GLFW after Vulkan so that it declares the Vulkan-specific functions
// Include GLFW after VulkanBackend so that it declares the Vulkan-specific functions
#include "GLFW/glfw3.h"
#include <vector>
namespace dawn_native { namespace vulkan {
void Init(dawnProcTable* procs,
dawnDevice* device,
const std::vector<const char*>& requiredInstanceExtensions);
VkInstance GetInstance(dawnDevice device);
dawnSwapChainImplementation CreateNativeSwapChainImpl(dawnDevice device, VkSurfaceKHR surface);
dawnTextureFormat GetNativeSwapChainPreferredFormat(
const dawnSwapChainImplementation* swapChain);
}} // namespace dawn_native::vulkan
namespace utils {
class SwapChainImplVulkan {