VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
graphicsDeviceCreate.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers on 05.09.2025.
5//
6#pragma once
7
8#include <memory>
9
10#include "graphicsDevice.h"
11#include "SDL3/SDL_video.h"
12
13namespace visutwin::canvas
14{
15 enum class Backend
16 {
20 };
21
23 {
25
26 void* swapChain{nullptr};
27
28 SDL_Window* window{nullptr};
29 };
30
31 std::unique_ptr<GraphicsDevice> createGraphicsDevice(const GraphicsDeviceOptions& options);
32}
std::unique_ptr< GraphicsDevice > createGraphicsDevice(const GraphicsDeviceOptions &options)