OpenShaderDesigner 0.0.1
Loading...
Searching...
No Matches
Enum.h
1// =====================================================================================================================
2// Copyright 2024 Medusa Slockbower
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14// =====================================================================================================================
15
16#ifndef ENUM_H
17#define ENUM_H
18
19#include <gl/glew.h>
20
21namespace GLW
22{
23 enum Primitive : GLenum
24 {
25 TRIANGLES = GL_TRIANGLES
26 , LINES = GL_LINES
27 , POINTS = GL_POINTS
28 };
29
30 enum BufferType : GLenum
31 {
32 AtomicCounter = GL_ATOMIC_COUNTER_BUFFER
33 , ElementArray = GL_ELEMENT_ARRAY_BUFFER
34 , IndirectCompute = GL_DISPATCH_INDIRECT_BUFFER
35 , IndirectDraw = GL_DRAW_INDIRECT_BUFFER
36 , PixelPack = GL_PIXEL_PACK_BUFFER
37 , PixelUnpack = GL_PIXEL_UNPACK_BUFFER
38 , ShaderStorage = GL_SHADER_STORAGE_BUFFER
39 , TransformFeedback = GL_TRANSFORM_FEEDBACK
40 , Uniform = GL_UNIFORM_BUFFER
41 , VertexArray = GL_ARRAY_BUFFER
42 };
43
44 enum BufferUsage : GLenum
45 {
49 STATIC = GL_NONE
50
54 , READ = GL_MAP_READ_BIT
55 , WRITE = GL_MAP_WRITE_BIT
56 , READ_WRITE = READ | WRITE
57
61 , DYNAMIC = GL_DYNAMIC_STORAGE_BIT
62
66 , PERSISTENT = GL_MAP_PERSISTENT_BIT
67
71 , COHERENT = GL_MAP_PERSISTENT_BIT | PERSISTENT
72 };
73
74 enum BufferStorage : GLenum
75 {
79 GPU = GL_NONE
80
84 , CPU = GL_CLIENT_STORAGE_BIT
85 };
86}
87
88#endif //ENUM_H