This repository has been archived by the owner on Jan 31, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathgl_nv_command_list.h
155 lines (129 loc) · 3.24 KB
/
gl_nv_command_list.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/*
* Copyright (c) 2016-2021, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* SPDX-FileCopyrightText: Copyright (c) 2016-2021 NVIDIA CORPORATION
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef NV_COMMANDLIST_H__
#define NV_COMMANDLIST_H__
#include <nvgl/extensions_gl.hpp>
# if defined(__MINGW32__) || defined(__CYGWIN__)
# define GLEXT_APIENTRY __stdcall
# elif (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__)
# define GLEXT_APIENTRY __stdcall
# else
# define GLEXT_APIENTRY
# endif
/*
#pragma pack(push,1)
typedef struct {
GLuint header;
} TerminateSequenceCommandNV;
typedef struct {
GLuint header;
} NOPCommandNV;
typedef struct {
GLuint header;
GLuint count;
GLuint firstIndex;
GLuint baseVertex;
} DrawElementsCommandNV;
typedef struct {
GLuint header;
GLuint count;
GLuint first;
} DrawArraysCommandNV;
typedef struct {
GLuint header;
GLenum mode;
GLuint count;
GLuint instanceCount;
GLuint firstIndex;
GLuint baseVertex;
GLuint baseInstance;
} DrawElementsInstancedCommandNV;
typedef struct {
GLuint header;
GLenum mode;
GLuint count;
GLuint instanceCount;
GLuint first;
GLuint baseInstance;
} DrawArraysInstancedCommandNV;
typedef struct {
GLuint header;
GLuint addressLo;
GLuint addressHi;
GLuint typeSizeInByte;
} ElementAddressCommandNV;
typedef struct {
GLuint header;
GLuint index;
GLuint addressLo;
GLuint addressHi;
} AttributeAddressCommandNV;
typedef struct {
GLuint header;
GLushort index;
GLushort stage;
GLuint addressLo;
GLuint addressHi;
} UniformAddressCommandNV;
typedef struct {
GLuint header;
float red;
float green;
float blue;
float alpha;
} BlendColorCommandNV;
typedef struct {
GLuint header;
GLuint frontStencilRef;
GLuint backStencilRef;
} StencilRefCommandNV;
typedef struct {
GLuint header;
float lineWidth;
} LineWidthCommandNV;
typedef struct {
GLuint header;
float scale;
float bias;
} PolygonOffsetCommandNV;
typedef struct {
GLuint header;
float alphaRef;
} AlphaRefCommandNV;
typedef struct {
GLuint header;
GLuint x;
GLuint y;
GLuint width;
GLuint height;
} ViewportCommandNV; // only ViewportIndex 0
typedef struct {
GLuint header;
GLuint x;
GLuint y;
GLuint width;
GLuint height;
} ScissorCommandNV; // only ViewportIndex 0
typedef struct {
GLuint header;
GLuint frontFace; // 0 for CW, 1 for CCW
} FrontFaceCommandNV;
#pragma pack(pop)
*/
#endif