violet
Simple, cross-platform graphics API
Loading...
Searching...
No Matches
id.h
1
#ifndef __VIOLET_ID_H__
2
#define __VIOLET_ID_H__
3
4
#include <cstddef>
5
6
namespace
violet {
7
8
template
<
typename
T>
9
struct
Handle
{
10
size_t
id;
11
};
12
13
struct
Buffer
;
14
15
template
<>
16
struct
Handle
<
Buffer
> {
17
size_t
id;
18
void
*
19
contents
;
20
};
21
22
}
// namespace violet
23
24
#endif
violet::Buffer
Definition
render.h:124
violet::Handle< Buffer >::contents
void * contents
Pointer to buffer contents. Valid for as long as the GPU buffer is alive.
Definition
id.h:19
violet::Handle
Definition
id.h:9
include
violet
id.h
Generated by
1.12.0