blob: 2d3ffbeed53d0345b977ab9e45776f8651b60ea8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef RENDERWINDOW_H_
#define RENDERWINDOW_H_
#include <SDL3/SDL.h>
#include <dawn/webgpu.h>
typedef struct {
SDL_Window* window;
WGPUInstance wgpuInstance;
WGPUSurface wgpuSurface;
WGPUAdapter wgpuAdapter;
WGPUDevice wgpuDevice;
WGPUSurfaceConfiguration configs;
WGPUQueue queue;
WGPUTexture screenTexture;
} RenderWindow;
RenderWindow InitRenderWindow(int width, int height, const char* title);
void QuitRenderWindow(RenderWindow* renderWindow);
#endif // RENDERWINDOW_H_
|