Divide Framework
0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
CommandTypes.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2018 DIVIDE-Studio
3
Copyright (c) 2009 Ionut Cava
4
5
This file is part of DIVIDE Framework.
6
7
Permission is hereby granted, free of charge, to any person obtaining a copy
8
of this software
9
and associated documentation files (the "Software"), to deal in the Software
10
without restriction,
11
including without limitation the rights to use, copy, modify, merge, publish,
12
distribute, sublicense,
13
and/or sell copies of the Software, and to permit persons to whom the
14
Software is furnished to do so,
15
subject to the following conditions:
16
17
The above copyright notice and this permission notice shall be included in
18
all copies or substantial portions of the Software.
19
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
IMPLIED,
22
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
PARTICULAR PURPOSE AND NONINFRINGEMENT.
24
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
25
DAMAGES OR OTHER LIABILITY,
26
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
27
IN CONNECTION WITH THE SOFTWARE
28
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
30
*/
31
32
#pragma once
33
#ifndef DVD_GFX_COMMAND_TYPES_H_
34
#define DVD_GFX_COMMAND_TYPES_H_
35
36
namespace
Divide
{
37
38
namespace
GFX {
39
40
enum class
CommandType
:
U8
{
41
BEGIN_RENDER_PASS
,
42
END_RENDER_PASS
,
43
BEGIN_GPU_QUERY
,
44
END_GPU_QUERY
,
45
SET_VIEWPORT
,
46
PUSH_VIEWPORT
,
47
POP_VIEWPORT
,
48
SET_SCISSOR
,
49
BLIT_RT
,
50
COPY_TEXTURE
,
51
READ_TEXTURE
,
52
CLEAR_TEXTURE
,
53
COMPUTE_MIPMAPS
,
54
SET_CAMERA
,
55
PUSH_CAMERA
,
56
POP_CAMERA
,
57
SET_CLIP_PLANES
,
58
BIND_PIPELINE
,
59
BIND_SHADER_RESOURCES
,
60
SEND_PUSH_CONSTANTS
,
61
DRAW_COMMANDS
,
62
DISPATCH_COMPUTE
,
63
MEMORY_BARRIER
,
64
READ_BUFFER_DATA
,
65
CLEAR_BUFFER_DATA
,
66
BEGIN_DEBUG_SCOPE
,
67
END_DEBUG_SCOPE
,
68
ADD_DEBUG_MESSAGE
,
69
COUNT
70
};
71
72
namespace
Names {
73
static
const
char
*
commandType
[] = {
74
"BEGIN_RENDER_PASS"
,
"END_RENDER_PASS"
,
"BEGIN_GPU_QUERY"
,
"END_GPU_QUERY"
,
"SET_VIEWPORT"
,
"PUSH_VIEWPORT"
,
"POP_VIEWPORT"
,
75
"SET_SCISSOR"
,
"BLIT_RT"
,
"COPY_TEXTURE"
,
"READ_TEXTURE"
,
"CLEAR_TEXTURE"
,
"COMPUTE_MIPMAPS"
,
76
"SET_CAMERA"
,
"PUSH_CAMERA"
,
"POP_CAMERA"
,
"SET_CLIP_PLANES"
,
"BIND_PIPELINE"
,
"BIND_SHADER_RESOURCES"
,
"SEND_PUSH_CONSTANTS"
,
77
"DRAW_COMMANDS"
,
"DISPATCH_COMPUTE"
,
"MEMORY_BARRIER"
,
"READ_BUFFER_DATA"
,
"CLEAR_BUFFER_DATA"
,
78
"BEGIN_DEBUG_SCOPE"
,
"END_DEBUG_SCOPE"
,
"ADD_DEBUG_MESSAGE"
,
"UNKNOWN"
79
};
80
};
81
82
static_assert
(
sizeof
(
Names::commandType
) /
sizeof
(
Names::commandType
[0]) ==
to_size
(
CommandType::COUNT
) + 1);
83
84
}
//namespace GFX
85
}
//namespace Divide
86
87
#endif
//DVD_GFX_COMMAND_TYPES_H_
Divide::GFX::Names::commandType
static const char * commandType[]
Definition:
CommandTypes.h:73
Divide::GFX::ErrorType::COUNT
@ COUNT
Divide::GFX::CommandType
CommandType
Definition:
CommandTypes.h:40
Divide::GFX::CommandType::BEGIN_RENDER_PASS
@ BEGIN_RENDER_PASS
Divide::GFX::CommandType::SET_VIEWPORT
@ SET_VIEWPORT
Divide::GFX::CommandType::CLEAR_BUFFER_DATA
@ CLEAR_BUFFER_DATA
Divide::GFX::CommandType::POP_VIEWPORT
@ POP_VIEWPORT
Divide::GFX::CommandType::COPY_TEXTURE
@ COPY_TEXTURE
Divide::GFX::CommandType::END_GPU_QUERY
@ END_GPU_QUERY
Divide::GFX::CommandType::PUSH_VIEWPORT
@ PUSH_VIEWPORT
Divide::GFX::CommandType::SET_CLIP_PLANES
@ SET_CLIP_PLANES
Divide::GFX::CommandType::BIND_PIPELINE
@ BIND_PIPELINE
Divide::GFX::CommandType::READ_BUFFER_DATA
@ READ_BUFFER_DATA
Divide::GFX::CommandType::END_RENDER_PASS
@ END_RENDER_PASS
Divide::GFX::CommandType::COUNT
@ COUNT
Divide::GFX::CommandType::POP_CAMERA
@ POP_CAMERA
Divide::GFX::CommandType::MEMORY_BARRIER
@ MEMORY_BARRIER
Divide::GFX::CommandType::SEND_PUSH_CONSTANTS
@ SEND_PUSH_CONSTANTS
Divide::GFX::CommandType::COMPUTE_MIPMAPS
@ COMPUTE_MIPMAPS
Divide::GFX::CommandType::DISPATCH_COMPUTE
@ DISPATCH_COMPUTE
Divide::GFX::CommandType::BEGIN_DEBUG_SCOPE
@ BEGIN_DEBUG_SCOPE
Divide::GFX::CommandType::BLIT_RT
@ BLIT_RT
Divide::GFX::CommandType::DRAW_COMMANDS
@ DRAW_COMMANDS
Divide::GFX::CommandType::READ_TEXTURE
@ READ_TEXTURE
Divide::GFX::CommandType::SET_CAMERA
@ SET_CAMERA
Divide::GFX::CommandType::BEGIN_GPU_QUERY
@ BEGIN_GPU_QUERY
Divide::GFX::CommandType::PUSH_CAMERA
@ PUSH_CAMERA
Divide::GFX::CommandType::END_DEBUG_SCOPE
@ END_DEBUG_SCOPE
Divide::GFX::CommandType::BIND_SHADER_RESOURCES
@ BIND_SHADER_RESOURCES
Divide::GFX::CommandType::ADD_DEBUG_MESSAGE
@ ADD_DEBUG_MESSAGE
Divide::GFX::CommandType::SET_SCISSOR
@ SET_SCISSOR
Divide::GFX::CommandType::CLEAR_TEXTURE
@ CLEAR_TEXTURE
Divide
Handle console commands that start with a forward slash.
Definition:
AIProcessor.cpp:7
Divide::U8
uint8_t U8
Definition:
PlatformDataTypes.h:44
Divide::to_size
constexpr size_t to_size(const T value)
Definition:
PlatformDataTypes.h:240
Source
Platform
Video
Headers
CommandTypes.h
Generated on Fri May 17 2024 16:59:54 for Divide Framework by
1.9.6