mirror of
https://github.com/encounter/aurora.git
synced 2026-07-09 18:19:33 -07:00
da0e2886f3
This is UB because of some C++ insanity. Moving to shared_ptr fixes it.
13 lines
250 B
C++
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
|