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
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user