CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
WGFence.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
14
16
17namespace CeresEngine {
18
20 class WGFence final : public GPUFence, public WGDeviceObject<WGFence, GPUFence> {
21 public:
23
24 private:
27
30
31 public:
36
39
42
43 public:
45 void reset() final;
46
49 };
50
51} // namespace CeresEngine
#define CE_EXPLICIT_FALSE
Definition Macros.hpp:416
A retain-release type of smart pointer.
Definition SmartPtr.hpp:132
GPUDevice & device
The owning device this object was created from.
Definition Common.hpp:55
Definition GPUFence.hpp:29
const Descriptor & descriptor
A structure that describes the object and it's properties.
Definition Common.hpp:69
Definition WebGPU.hpp:119
WebGPU RenderAPI fence object.
Definition WGFence.hpp:20
WGLFenceType mFence
The WebGPU API fence object.
Definition WGFence.hpp:29
~WGFence() final
Destroys the WGFence object.
CE_WG_HANDLE(WGLFence) WGLFenceType
Definition WGFence.hpp:22
WGFence(WGDevicePtr device, const GPUFenceDescriptor &descriptor)
Creates a new WGFence object.
const GPUFenceDescriptor mDescriptor
A structure that describes the fence and it's properties.
Definition WGFence.hpp:26
void reset() final
Definition Application.hpp:19
std::uint64_t UInt64
Definition DataTypes.hpp:26
auto wait()
Awaits (and blocks) until the continuation has finished running.
Definition Async.hpp:226
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25
Definition GPUFence.hpp:23