Files
aurora/lib/dawn/BackendBinding.hpp
Pieter-Jan Briers da0e2886f3 asan: fix std::unique_ptr<wgpu::ChainedStruct> base cast (#63)
This is UB because of some C++ insanity. Moving to shared_ptr fixes it.
2026-03-16 10:09:25 -06:00

13 lines
250 B
C++

#pragma once
#include <memory>
#include <webgpu/webgpu_cpp.h>
struct SDL_Window;
namespace aurora::webgpu::utils {
std::shared_ptr<wgpu::ChainedStruct> SetupWindowAndGetSurfaceDescriptor(SDL_Window* window);
} // namespace aurora::webgpu::utils