CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
WGRenderAPI.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "WebGPU.hpp"
11
13
14namespace CeresEngine {
15
16 class WGDevice;
17
19
42
43} // namespace CeresEngine
A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
Definition RenderAPI.hpp:81
WebGPU RenderAPI device object.
Definition WGDevice.hpp:32
Definition WGRenderAPI.hpp:20
GPUDevicePtr getDefaultDevice() final
GPUDevicePtr createDevice(const GPUDeviceDescriptor &descriptor, const DevicePickerFunc &pickerFunc=nullptr) final
WGDevicePtr mDevice
The default WebGPU device.
Definition WGRenderAPI.hpp:25
WGRenderAPI(const RenderAPIDescriptor &descriptor)
Definition Application.hpp:19
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
std::function< bool(const GPUDeviceInfo &, const GPURenderingCapabilities &)> DevicePickerFunc
Callback interface for the createDevice method.
Definition RenderAPI.hpp:79
Device descriptor structure.
Definition GPUDevice.hpp:313
Definition RenderAPI.hpp:61
Definition WGRenderAPI.hpp:18