GLUtil_Const.cs 3.52 KB
Newer Older
pcy's avatar
pcy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System;
using System.Collections.Generic;
using System.Linq;

namespace PoroCYon.FNAGLSL {
	public static unsafe partial class GL {
		public const uint
			COMPILE_STATUS  = 0x8B81,
			INFO_LOG_LENGTH = 0x8B84,
			LINK_STATUS     = 0x8B82,
			CURRENT_PROGRAM = 0x8B8D,

			ACTIVE_ATTRIBUTES = 0x8B89,
			ACTIVE_UNIFORMS   = 0x8B86,
			INVALID_INDEX     = 0xFFFFFFFFu,
pcy's avatar
lol    
pcy committed
16
			DONT_CARE         = 0x1100,
pcy's avatar
pcy committed
17

pcy's avatar
pcy committed
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
			MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D,
			ACTIVE_TEXTURE = 0x84E0,

			TEXTURE0 = 0x84C0,

			TEXTURE_1D = 0x0DE0,
			TEXTURE_2D = 0x0DE1,
			TEXTURE_3D = 0x806F,
			TEXTURE_CUBE_MAP = 0x8513,

			TEXTURE_BINDING_1D = 0x8068,
			TEXTURE_BINDING_2D = 0x8069,
			TEXTURE_BINDING_3D = 0x806A,
			TEXTURE_BINDING_CUBE = 0X8514,

pcy's avatar
pcy committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
			UNIFORM_TYPE          = 0x8A37,
			UNIFORM_SIZE          = 0x8A38,
			UNIFORM_NAME_LENGTH   = 0x8A39,
			UNIFORM_BLOCK_INDEX   = 0x8A3A,
			UNIFORM_OFFSET        = 0x8A3B,
			UNIFORM_ARRAY_STRIDE  = 0x8A3C,
			UNIFORM_MATRIX_STRIDE = 0x8A3D,
			UNIFORM_IS_ROW_MAJOR  = 0x8A3E,
			UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA,

			UNIFORM_BLOCK_BINDING     = 0x8A3F,
			UNIFORM_BLOCK_DATA_SIZE   = 0x8A40,
			UNIFORM_BLOCK_NAME_LENGTH = 0x8A41,
			UNIFORM_BLOCK_ACTIVE_UNIFORMS        = 0x8A42,
			UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43,
			UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER          = 0x8A44,
			UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER        = 0x8A45,
			UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER        = 0x8A46,
			UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER    = 0x84F0,
pcy's avatar
lol    
pcy committed
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
			UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1,

			DEBUG_OUTPUT = 0x92E0,
			DEBUG_OUTPUT_SYNCHRONOUS = 0x8242,

			DEBUG_SOURCE_API = 0x8246,
			DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247,
			DEBUG_SOURCE_SHADER_COMPILER = 0x8248,
			DEBUG_SOURCE_THIRD_PARTY = 0x8249,
			DEBUG_SOURCE_APPLICATION = 0x824A,
			DEBUG_SOURCE_OTHER = 0x824B,

			DEBUG_TYPE_ERROR = 0x824C,
			DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D,
			DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E,
			DEBUG_TYPE_PORTABILITY = 0x824F,
			DEBUG_TYPE_PERFORMANCE = 0x8250,
			DEBUG_TYPE_MARKER = 0x8268,
			DEBUG_TYPE_PUSH_GROUP = 0x8269,
			DEBUG_TYPE_POP_GROUP = 0x829A,
			DEBUG_TYPE_OTHER = 0x8251,

			DEBUG_SEVERITY_HIGH = 0x9146,
			DEBUG_SEVERITY_MEDIUM = 0x9147,
			DEBUG_SEVERITY_LOW = 0x9148,
			DEBUG_SEVERITY_NOTIFICATION = 0x826B;

pcy's avatar
pcy committed
79
80

		public const byte FALSE = 0, TRUE = 1;
pcy's avatar
pcy committed
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

		public readonly static uint/*GLSLType*/[] samplerTypes = {
			(uint)GLSLType.SAMPLER_1D,
			(uint)GLSLType.SAMPLER_2D,
			(uint)GLSLType.SAMPLER_3D,
			(uint)GLSLType.SAMPLER_CUBE,
			/*SAMPLER_1D_SHADOW,
			SAMPLER_2D_SHADOW,
			SAMPLER_1D_ARRAY,
			SAMPLER_2D_ARRAY,
			SAMPLER_1D_ARRAY_SHADOW,
			SAMPLER_2D_ARRAY_SHADOW,
			SAMPLER_CUBE_SHADOW,
			SAMPLER_2D_MULTISAMPLE,
			SAMPLER_2D_MULTISAMPLE_ARRAY,
			SAMPLER_2D_RECT,
			SAMPLER_2D_RECT_SHADOW,
			SAMPLER_BUFFER,*/
			(uint)GLSLType.INT_SAMPLER_1D,
			(uint)GLSLType.INT_SAMPLER_2D,
			(uint)GLSLType.INT_SAMPLER_3D,
			(uint)GLSLType.INT_SAMPLER_CUBE,
			/*INT_SAMPLER_1D_ARRAY,
			INT_SAMPLER_2D_ARRAY,
			INT_SAMPLER_2D_MULTISAMPLE      ,
			INT_SAMPLER_2D_MULTISAMPLE_ARRAY,
			INT_SAMPLER_BUFFER ,
			INT_SAMPLER_2D_RECT,*/
			(uint)GLSLType.UNSIGNED_INT_SAMPLER_1D,
			(uint)GLSLType.UNSIGNED_INT_SAMPLER_2D,
			(uint)GLSLType.UNSIGNED_INT_SAMPLER_3D,
			(uint)GLSLType.UNSIGNED_INT_SAMPLER_CUBE
			/*,UNSIGNED_INT_SAMPLER_1D_ARRAY,
			UNSIGNED_INT_SAMPLER_2D_ARRAY,
			UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE      ,
			UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY,
			UNSIGNED_INT_SAMPLER_BUFFER ,
			UNSIGNED_INT_SAMPLER_2D_RECT*/
		};
pcy's avatar
pcy committed
120
121
122
	}
}