aurora/lib/dawn/BackendBinding.hpp

14 lines
368 B
C++
Raw Normal View History

2022-07-27 15:25:25 +00:00
#pragma once
#include <dawn/native/DawnNative.h>
#include <webgpu/webgpu_cpp.h>
2022-07-27 15:25:25 +00:00
struct SDL_Window;
namespace aurora::webgpu::utils {
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