Midnight Graphics
Create Fast and Simple Graphics in C++
Sync.hpp
1
#pragma once
2
3
#include <Def.hpp>
4
5
namespace
mn::Graphics::Backend
6
{
7
struct
Fence
8
{
9
Fence
();
10
~
Fence
();
11
12
void
wait()
const
;
13
void
reset()
const
;
14
15
auto
getHandle()
const
{
return
handle; }
16
17
private
:
18
Handle<Fence>
handle;
19
};
20
21
struct
Semaphore
22
{
23
Semaphore
();
24
~
Semaphore
();
25
26
auto
getHandle()
const
{
return
handle; }
27
28
private
:
29
Handle<Semaphore>
handle;
30
};
31
}
mn::Graphics::Backend::Fence
Definition:
Sync.hpp:8
mn::Graphics::Backend::Semaphore
Definition:
Sync.hpp:22
mn::Utility::TypedHandle
Definition:
TypedHandle.hpp:9
include
midnight
Graphics
Backend
Sync.hpp
Generated by
1.9.1