2022-07-27 15:25:25 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <dawn/native/DawnNative.h>
|
2022-08-02 20:37:56 +00:00
|
|
|
#include <webgpu/webgpu_cpp.h>
|
2022-07-27 15:25:25 +00:00
|
|
|
|
|
|
|
struct SDL_Window;
|
|
|
|
|
|
|
|
namespace aurora::webgpu::utils {
|
|
|
|
|
2022-08-02 20:37:56 +00:00
|
|
|
bool DiscoverAdapter(dawn::native::Instance* instance, SDL_Window* window, wgpu::BackendType type);
|
2023-05-27 15:44:36 +00:00
|
|
|
std::unique_ptr<wgpu::ChainedStruct> SetupWindowAndGetSurfaceDescriptor(SDL_Window* window);
|
2022-07-27 15:25:25 +00:00
|
|
|
|
|
|
|
} // namespace aurora::webgpu::utils
|