GLUtil_Const.cs 2.76 KB
Newer Older
pcy's avatar
pcy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
pcy committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
			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
32
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,
			UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1;
pcy's avatar
pcy committed
52
53

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

		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
93
94
95
	}
}