Skip to content

Commit 871d859

Browse files
committed
Clean up before continuing with wrapper implementation
`bindings.zig` changes: * used literals instead of variables for enums in OpenGL 4.2, * moved `DEBUGPROC` to the beginning of OpenGL 4.3, * adjusted wrong enum name from `VIEW_CLASS_RGTC1_RG` to `VIEW_CLASS_RGTC2_RG` in OpenGL 4.3, * added missing enums to OpenGL 4.4, * removed enum `TEXTURE_BINDING` from OpenGL 4.5, * changed ARB enums to non-ARB ones in OpenGL 4.5, * added missing enums to OpenGL 4.5, * added `POLYGON_OFFSET_CLAMP` to OpenGL 4.6, * added spacing between sections. `wrapper.zig` changes: * added changes from merge zig-gamedev#25 to wrapper placeholders, * applied enum changes done in `bindings.zig`, * moved `DEBUGPROC` to the beginning of OpenGL 4.3, * added many missing enums to OpenGL 4.3, * added missing function placeholders to OpenGL 4.3, * added missing function placeholders to OpenGL 4.5, * return type of `getGraphicsResetStatus` uses non-ARB enums in OpenGL 4.5, * added spacing between sections.
1 parent d235e52 commit 871d859

File tree

2 files changed

+1397
-304
lines changed

2 files changed

+1397
-304
lines changed

src/bindings.zig

Lines changed: 69 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ pub const TEXTURE_MIN_FILTER = 0x2801;
186186
pub const TEXTURE_WRAP_S = 0x2802;
187187
pub const TEXTURE_WRAP_T = 0x2803;
188188
pub const REPEAT = 0x2901;
189+
189190
pub var cullFace: *const fn (mode: Enum) callconv(.c) void = undefined;
190191
pub var frontFace: *const fn (mode: Enum) callconv(.c) void = undefined;
191192
pub var hint: *const fn (target: Enum, mode: Enum) callconv(.c) void = undefined;
@@ -282,6 +283,7 @@ pub var getTexLevelParameteriv: *const fn (
282283
pub var isEnabled: *const fn (cap: Enum) callconv(.c) Boolean = undefined;
283284
pub var depthRange: *const fn (n: Double, f: Double) callconv(.c) void = undefined;
284285
pub var viewport: *const fn (x: Int, y: Int, width: Sizei, height: Sizei) callconv(.c) void = undefined;
286+
285287
//--------------------------------------------------------------------------------------------------
286288
//
287289
// OpenGL 1.1 (Core Profile)
@@ -321,6 +323,7 @@ pub const RGB10_A2 = 0x8059;
321323
pub const RGBA12 = 0x805A;
322324
pub const RGBA16 = 0x805B;
323325
pub const VERTEX_ARRAY = 0x8074;
326+
324327
pub var drawArrays: *const fn (mode: Enum, first: Int, count: Sizei) callconv(.c) void = undefined;
325328
pub var drawElements: *const fn (
326329
mode: Enum,
@@ -390,6 +393,7 @@ pub var bindTexture: *const fn (target: Enum, texture: Uint) callconv(.c) void =
390393
pub var deleteTextures: *const fn (n: Sizei, textures: [*c]const Uint) callconv(.c) void = undefined;
391394
pub var genTextures: *const fn (n: Sizei, textures: [*c]Uint) callconv(.c) void = undefined;
392395
pub var isTexture: *const fn (texture: Uint) callconv(.c) Boolean = undefined;
396+
393397
//--------------------------------------------------------------------------------------------------
394398
//
395399
// OpenGL 1.2 (Core Profile)
@@ -431,6 +435,7 @@ pub const SMOOTH_POINT_SIZE_GRANULARITY = 0x0B13;
431435
pub const SMOOTH_LINE_WIDTH_RANGE = 0x0B22;
432436
pub const SMOOTH_LINE_WIDTH_GRANULARITY = 0x0B23;
433437
pub const ALIASED_LINE_WIDTH_RANGE = 0x846E;
438+
434439
pub var drawRangeElements: *const fn (
435440
mode: Enum,
436441
start: Uint,
@@ -475,6 +480,7 @@ pub var copyTexSubImage3D: *const fn (
475480
width: Sizei,
476481
height: Sizei,
477482
) callconv(.c) void = undefined;
483+
478484
//--------------------------------------------------------------------------------------------------
479485
//
480486
// OpenGL 1.3 (Core Profile)
@@ -539,6 +545,7 @@ pub const TEXTURE_COMPRESSED = 0x86A1;
539545
pub const NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2;
540546
pub const COMPRESSED_TEXTURE_FORMATS = 0x86A3;
541547
pub const CLAMP_TO_BORDER = 0x812D;
548+
542549
pub var activeTexture: *const fn (texture: Enum) callconv(.c) void = undefined;
543550
pub var sampleCoverage: *const fn (value: Float, invert: Boolean) callconv(.c) void = undefined;
544551
pub var compressedTexImage3D: *const fn (
@@ -605,6 +612,7 @@ pub var compressedTexSubImage1D: *const fn (
605612
data: ?*const anyopaque,
606613
) callconv(.c) void = undefined;
607614
pub var getCompressedTexImage: *const fn (target: Enum, level: Int, img: ?*anyopaque) callconv(.c) void = undefined;
615+
608616
//--------------------------------------------------------------------------------------------------
609617
//
610618
// OpenGL 1.4 (Core Profile)
@@ -637,6 +645,7 @@ pub const FUNC_REVERSE_SUBTRACT = 0x800B;
637645
pub const FUNC_SUBTRACT = 0x800A;
638646
pub const MIN = 0x8007;
639647
pub const MAX = 0x8008;
648+
640649
pub var blendFuncSeparate: *const fn (
641650
sfactorRGB: Enum,
642651
dfactorRGB: Enum,
@@ -662,6 +671,7 @@ pub var pointParameteri: *const fn (pname: Enum, param: Int) callconv(.c) void =
662671
pub var pointParameteriv: *const fn (pname: Enum, params: [*c]const Int) callconv(.c) void = undefined;
663672
pub var blendColor: *const fn (red: Float, green: Float, blue: Float, alpha: Float) callconv(.c) void = undefined;
664673
pub var blendEquation: *const fn (mode: Enum) callconv(.c) void = undefined;
674+
665675
//--------------------------------------------------------------------------------------------------
666676
//
667677
// OpenGL 1.5 (Core Profile)
@@ -698,6 +708,7 @@ pub const DYNAMIC_READ = 0x88E9;
698708
pub const DYNAMIC_COPY = 0x88EA;
699709
pub const SAMPLES_PASSED = 0x8914;
700710
pub const SRC1_ALPHA = 0x8589;
711+
701712
pub var genQueries: *const fn (n: Sizei, ids: [*c]Uint) callconv(.c) void = undefined;
702713
pub var deleteQueries: *const fn (n: Sizei, ids: [*c]const Uint) callconv(.c) void = undefined;
703714
pub var isQuery: *const fn (id: Uint) callconv(.c) Boolean = undefined;
@@ -736,6 +747,7 @@ pub var getBufferPointerv: *const fn (
736747
pname: Enum,
737748
params: [*c]?*anyopaque,
738749
) callconv(.c) void = undefined;
750+
739751
//--------------------------------------------------------------------------------------------------
740752
//
741753
// OpenGL 2.0 (Core Profile)
@@ -826,6 +838,7 @@ pub const UPPER_LEFT = 0x8CA2;
826838
pub const STENCIL_BACK_REF = 0x8CA3;
827839
pub const STENCIL_BACK_VALUE_MASK = 0x8CA4;
828840
pub const STENCIL_BACK_WRITEMASK = 0x8CA5;
841+
829842
pub var blendEquationSeparate: *const fn (modeRGB: Enum, modeAlpha: Enum) callconv(.c) void = undefined;
830843
pub var drawBuffers: *const fn (n: Sizei, bufs: [*c]const Enum) callconv(.c) void = undefined;
831844
pub var stencilOpSeparate: *const fn (
@@ -1047,6 +1060,7 @@ pub var vertexAttribPointer: *const fn (
10471060
stride: Sizei,
10481061
pointer: ?*const anyopaque,
10491062
) callconv(.c) void = undefined;
1063+
10501064
//--------------------------------------------------------------------------------------------------
10511065
//
10521066
// OpenGL 2.1 (Core Profile)
@@ -1068,6 +1082,7 @@ pub const SRGB_ALPHA = 0x8C42;
10681082
pub const SRGB8_ALPHA8 = 0x8C43;
10691083
pub const COMPRESSED_SRGB = 0x8C48;
10701084
pub const COMPRESSED_SRGB_ALPHA = 0x8C49;
1085+
10711086
pub var uniformMatrix2x3fv: *const fn (
10721087
location: Int,
10731088
count: Sizei,
@@ -1104,6 +1119,7 @@ pub var uniformMatrix4x3fv: *const fn (
11041119
transpose: Boolean,
11051120
value: [*c]const Float,
11061121
) callconv(.c) void = undefined;
1122+
11071123
//--------------------------------------------------------------------------------------------------
11081124
//
11091125
// OpenGL 3.0 (Core Profile)
@@ -1342,6 +1358,7 @@ pub const RG16UI = 0x823A;
13421358
pub const RG32I = 0x823B;
13431359
pub const RG32UI = 0x823C;
13441360
pub const VERTEX_ARRAY_BINDING = 0x85B5;
1361+
13451362
pub var colorMaski: *const fn (
13461363
index: Uint,
13471364
r: Boolean,
@@ -1548,6 +1565,7 @@ pub var bindVertexArray: *const fn (array: Uint) callconv(.c) void = undefined;
15481565
pub var deleteVertexArrays: *const fn (n: Sizei, arrays: [*c]const Uint) callconv(.c) void = undefined;
15491566
pub var genVertexArrays: *const fn (n: Sizei, arrays: [*c]Uint) callconv(.c) void = undefined;
15501567
pub var isVertexArray: *const fn (array: Uint) callconv(.c) Boolean = undefined;
1568+
15511569
//--------------------------------------------------------------------------------------------------
15521570
//
15531571
// OpenGL 3.1 (Core Profile)
@@ -1614,6 +1632,7 @@ pub const UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44;
16141632
pub const UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45;
16151633
pub const UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46;
16161634
pub const INVALID_INDEX = 0xFFFFFFFF;
1635+
16171636
pub var drawArraysInstanced: *const fn (
16181637
mode: Enum,
16191638
first: Int,
@@ -1678,6 +1697,7 @@ pub var uniformBlockBinding: *const fn (
16781697
uniformBlockIndex: Uint,
16791698
uniformBlockBinding: Uint,
16801699
) callconv(.c) void = undefined;
1700+
16811701
//--------------------------------------------------------------------------------------------------
16821702
//
16831703
// OpenGL 3.2 (Core Profile)
@@ -1751,6 +1771,7 @@ pub const UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D;
17511771
pub const MAX_COLOR_TEXTURE_SAMPLES = 0x910E;
17521772
pub const MAX_DEPTH_TEXTURE_SAMPLES = 0x910F;
17531773
pub const MAX_INTEGER_SAMPLES = 0x9110;
1774+
17541775
pub var drawElementsBaseVertex: *const fn (
17551776
mode: Enum,
17561777
count: Sizei,
@@ -1850,6 +1871,7 @@ pub const TEXTURE_SWIZZLE_RGBA = 0x8E46;
18501871
pub const TIME_ELAPSED = 0x88BF;
18511872
pub const TIMESTAMP = 0x8E28;
18521873
pub const INT_2_10_10_10_REV = 0x8D9F;
1874+
18531875
pub var bindFragDataLocationIndexed: *const fn (
18541876
program: Uint,
18551877
colorNumber: Uint,
@@ -1939,6 +1961,7 @@ pub const MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A;
19391961
pub const MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B;
19401962
pub const MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C;
19411963
pub const FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D;
1964+
pub const MAX_VERTEX_STREAMS = 0x8E71;
19421965
pub const DOUBLE_VEC2 = 0x8FFC;
19431966
pub const DOUBLE_VEC3 = 0x8FFD;
19441967
pub const DOUBLE_VEC4 = 0x8FFE;
@@ -1997,7 +2020,6 @@ pub const TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23;
19972020
pub const TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24;
19982021
pub const TRANSFORM_FEEDBACK_BINDING = 0x8E25;
19992022
pub const MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70;
2000-
pub const MAX_VERTEX_STREAMS = 0x8E71;
20012023

20022024
// TODO: should probably be in wrapper.zig
20032025
pub const DrawArraysIndirectCommand = extern struct {
@@ -2016,6 +2038,7 @@ pub const DrawElementsIndirectCommand = extern struct {
20162038
/// base_instance should always be set to zero for GL versions < 4.2
20172039
base_instance: Uint = 0,
20182040
};
2041+
20192042
pub var minSampleShading: *const fn (value: Float) callconv(.c) void = undefined;
20202043
pub var blendEquationi: *const fn (buf: Uint, mode: Enum) callconv(.c) void = undefined;
20212044
pub var blendEquationSeparatei: *const fn (buf: Uint, modeRGB: Enum, modeAlpha: Enum) callconv(.c) void = undefined;
@@ -2104,6 +2127,7 @@ pub const VIEWPORT_BOUNDS_RANGE = 0x825D;
21042127
pub const LAYER_PROVOKING_VERTEX = 0x825E;
21052128
pub const VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F;
21062129
pub const UNDEFINED_VERTEX = 0x8260;
2130+
21072131
pub var releaseShaderCompiler: *const fn () callconv(.c) void = undefined;
21082132
pub var shaderBinary: *const fn (
21092133
count: Sizei,
@@ -2570,10 +2594,10 @@ pub var getDoublei_v: *const fn (
25702594
// OpenGL 4.2 (Core Profile)
25712595
//
25722596
//--------------------------------------------------------------------------------------------------
2573-
pub const COPY_READ_BUFFER_BINDING = COPY_READ_BUFFER;
2574-
pub const COPY_WRITE_BUFFER_BINDING = COPY_WRITE_BUFFER;
2575-
pub const TRANSFORM_FEEDBACK_PAUSED = TRANSFORM_FEEDBACK_BUFFER_PAUSED;
2576-
pub const TRANSFORM_FEEDBACK_ACTIVE = TRANSFORM_FEEDBACK_BUFFER_ACTIVE;
2597+
pub const COPY_READ_BUFFER_BINDING = 0x8F36;
2598+
pub const COPY_WRITE_BUFFER_BINDING = 0x8F37;
2599+
pub const TRANSFORM_FEEDBACK_ACTIVE = 0x8E24;
2600+
pub const TRANSFORM_FEEDBACK_PAUSED = 0x8E23;
25772601
pub const UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127;
25782602
pub const UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128;
25792603
pub const UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129;
@@ -2682,6 +2706,7 @@ pub const COMPRESSED_SRGB_ALPHA_BPTC_UNORM = 0x8E8D;
26822706
pub const COMPRESSED_RGB_BPTC_SIGNED_FLOAT = 0x8E8E;
26832707
pub const COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT = 0x8E8F;
26842708
pub const TEXTURE_IMMUTABLE_FORMAT = 0x912F;
2709+
26852710
pub var drawArraysInstancedBaseInstance: *const fn (
26862711
mode: Enum,
26872712
first: Int,
@@ -2769,6 +2794,16 @@ pub var drawTransformFeedbackStreamInstanced: *const fn (
27692794
// OpenGL 4.3 (Core Profile)
27702795
//
27712796
//--------------------------------------------------------------------------------------------------
2797+
pub const DEBUGPROC = *const fn (
2798+
source: Enum,
2799+
type: Enum,
2800+
id: Uint,
2801+
severity: Enum,
2802+
length: Sizei,
2803+
message: [*c]const Char,
2804+
userParam: ?*const anyopaque,
2805+
) callconv(.c) void;
2806+
27722807
pub const NUM_SHADING_LANGUAGE_VERSIONS = 0x82E9;
27732808
pub const VERTEX_ATTRIB_ARRAY_LONG = 0x874E;
27742809
pub const COMPRESSED_RGB8_ETC2 = 0x9274;
@@ -2802,15 +2837,6 @@ pub const ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED;
28022837
pub const DISPATCH_INDIRECT_BUFFER = 0x90EE;
28032838
pub const DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF;
28042839
pub const COMPUTE_SHADER_BIT = 0x00000020;
2805-
pub const DEBUGPROC = *const fn (
2806-
source: Enum,
2807-
type: Enum,
2808-
id: Uint,
2809-
severity: Enum,
2810-
length: Sizei,
2811-
message: [*c]const Char,
2812-
userParam: ?*const anyopaque,
2813-
) callconv(.c) void;
28142840
pub const DEBUG_OUTPUT_SYNCHRONOUS = 0x8242;
28152841
pub const DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243;
28162842
pub const DEBUG_CALLBACK_FUNCTION = 0x8244;
@@ -2953,7 +2979,7 @@ pub const VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD;
29532979
pub const VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE;
29542980
pub const VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF;
29552981
pub const VIEW_CLASS_RGTC1_RED = 0x82D0;
2956-
pub const VIEW_CLASS_RGTC1_RG = 0x82D1;
2982+
pub const VIEW_CLASS_RGTC2_RG = 0x82D1;
29572983
pub const VIEW_CLASS_BPTC_UNORM = 0x82D2;
29582984
pub const VIEW_CLASS_BPTC_FLOAT = 0x82D3;
29592985
pub const UNIFORM = 0x92E1;
@@ -3036,6 +3062,7 @@ pub const VERTEX_BINDING_STRIDE = 0x82D8;
30363062
pub const MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9;
30373063
pub const MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA;
30383064
pub const VERTEX_BINDING_BUFFER = 0x8F4F;
3065+
30393066
pub var clearBufferData: *const fn (
30403067
target: Enum,
30413068
internalformat: Enum,
@@ -3319,24 +3346,28 @@ pub var getPointerv: *const fn (
33193346
pname: Enum,
33203347
params: [*c]?*anyopaque,
33213348
) callconv(.c) void = undefined;
3349+
33223350
//--------------------------------------------------------------------------------------------------
33233351
//
33243352
// OpenGL 4.4 (Core Profile)
33253353
//
33263354
//--------------------------------------------------------------------------------------------------
3327-
pub const BUFFER_IMMUTABLE_STORAGE = 0x821F;
3328-
pub const BUFFER_STORAGE_FLAGS = 0x8220;
3329-
pub const CLIENT_STORAGE_BIT = 0x0200;
3330-
pub const DYNAMIC_STORAGE_BIT = 0x0100;
3331-
pub const CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000;
3355+
pub const MAX_VERTEX_ATTRIB_STRIDE = 0x82E5;
3356+
pub const PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED = 0x8221;
3357+
pub const TEXTURE_BUFFER_BINDING = 0x8C2A;
33323358
pub const MAP_PERSISTENT_BIT = 0x0040;
33333359
pub const MAP_COHERENT_BIT = 0x0080;
3360+
pub const DYNAMIC_STORAGE_BIT = 0x0100;
3361+
pub const CLIENT_STORAGE_BIT = 0x0200;
3362+
pub const CLIENT_MAPPED_BUFFER_BARRIER_BIT = 0x00004000;
3363+
pub const BUFFER_IMMUTABLE_STORAGE = 0x821F;
3364+
pub const BUFFER_STORAGE_FLAGS = 0x8220;
33343365
pub const CLEAR_TEXTURE = 0x9365;
33353366
pub const LOCATION_COMPONENT = 0x934A;
33363367
pub const TRANSFORM_FEEDBACK_BUFFER_INDEX = 0x934B;
33373368
pub const TRANSFORM_FEEDBACK_BUFFER_STRIDE = 0x934C;
3338-
pub const MAX_VERTEX_ATTRIB_STRIDE = 0x82E5;
33393369
pub const QUERY_BUFFER = 0x9192;
3370+
pub const QUERY_BUFFER_BARRIER_BIT = 0x00008000;
33403371
pub const QUERY_BUFFER_BINDING = 0x9193;
33413372
pub const QUERY_RESULT_NO_WAIT = 0x9194;
33423373
pub const MIRROR_CLAMP_TO_EDGE = 0x8743;
@@ -3409,8 +3440,11 @@ pub var bindVertexBuffers: *const fn (
34093440
// OpenGL 4.5 (Core Profile)
34103441
//
34113442
//--------------------------------------------------------------------------------------------------
3443+
pub const CONTEXT_LOST = 0x0507;
34123444
pub const NEGATIVE_ONE_TO_ONE = 0x935E;
34133445
pub const ZERO_TO_ONE = 0x935F;
3446+
pub const CLIP_ORIGIN = 0x935C;
3447+
pub const CLIP_DEPTH_MODE = 0x935D;
34143448
pub const QUERY_WAIT_INVERTED = 0x8E17;
34153449
pub const QUERY_NO_WAIT_INVERTED = 0x8E18;
34163450
pub const QUERY_BY_REGION_WAIT_INVERTED = 0x8E19;
@@ -3419,14 +3453,16 @@ pub const MAX_CULL_DISTANCES = 0x82F9;
34193453
pub const MAX_COMBINED_CLIP_AND_CULL_DISTANCES = 0x82FA;
34203454
pub const TEXTURE_TARGET = 0x1006;
34213455
pub const QUERY_TARGET = 0x82EA;
3422-
pub const TEXTURE_BINDING = 0x82EB;
3423-
pub const CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004;
3424-
pub const LOSE_CONTEXT_ON_RESET_ARB = 0x8252;
3425-
pub const GUILTY_CONTEXT_RESET_ARB = 0x8253;
3426-
pub const INNOCENT_CONTEXT_RESET_ARB = 0x8254;
3427-
pub const UNKNOWN_CONTEXT_RESET_ARB = 0x8255;
3428-
pub const RESET_NOTIFICATION_STRATEGY_ARB = 0x8256;
3429-
pub const NO_RESET_NOTIFICATION_ARB = 0x8261;
3456+
pub const GUILTY_CONTEXT_RESET = 0x8253;
3457+
pub const INNOCENT_CONTEXT_RESET = 0x8254;
3458+
pub const UNKNOWN_CONTEXT_RESET = 0x8255;
3459+
pub const RESET_NOTIFICATION_STRATEGY = 0x8256;
3460+
pub const LOSE_CONTEXT_ON_RESET = 0x8252;
3461+
pub const NO_RESET_NOTIFICATION = 0x8261;
3462+
pub const CONTEXT_FLAG_ROBUST_ACCESS_BIT = 0x00000004;
3463+
pub const CONTEXT_RELEASE_BEHAVIOR = 0x82FB;
3464+
pub const CONTEXT_RELEASE_BEHAVIOR_FLUSH = 0x82FC;
3465+
34303466
pub var clipControl: *const fn (
34313467
origin: Enum,
34323468
depth: Enum,
@@ -4114,8 +4150,11 @@ pub var textureBarrier: *const fn () callconv(.c) void = undefined;
41144150
// OpenGL 4.6 (Core Profile)
41154151
//
41164152
//--------------------------------------------------------------------------------------------------
4153+
pub const SHADER_BINARY_FORMAT_SPIR_V = 0x9551;
4154+
pub const SPIR_V_BINARY = 0x9552;
41174155
pub const PARAMETER_BUFFER = 0x80EE;
41184156
pub const PARAMETER_BUFFER_BINDING = 0x80EF;
4157+
pub const CONTEXT_FLAG_NO_ERROR_BIT = 0x00000008;
41194158
pub const VERTICES_SUBMITTED = 0x82EE;
41204159
pub const PRIMITIVES_SUBMITTED = 0x82EF;
41214160
pub const VERTEX_SHADER_INVOCATIONS = 0x82F0;
@@ -4126,15 +4165,13 @@ pub const FRAGMENT_SHADER_INVOCATIONS = 0x82F4;
41264165
pub const COMPUTE_SHADER_INVOCATIONS = 0x82F5;
41274166
pub const CLIPPING_INPUT_PRIMITIVES = 0x82F6;
41284167
pub const CLIPPING_OUTPUT_PRIMITIVES = 0x82F7;
4129-
pub const SPIR_V_BINARY = 0x9552;
4130-
pub const SHADER_BINARY_FORMAT_SPIR_V = 0x9551;
4168+
pub const POLYGON_OFFSET_CLAMP = 0x8E1B;
41314169
pub const SPIR_V_EXTENSIONS = 0x9553;
41324170
pub const NUM_SPIR_V_EXTENSIONS = 0x9554;
41334171
pub const TEXTURE_MAX_ANISOTROPY = 0x84FE;
41344172
pub const MAX_TEXTURE_MAX_ANISOTROPY = 0x84FF;
41354173
pub const TRANSFORM_FEEDBACK_OVERFLOW = 0x82EC;
41364174
pub const TRANSFORM_FEEDBACK_STREAM_OVERFLOW = 0x82ED;
4137-
pub const CONTEXT_FLAG_NO_ERROR_BIT = 0x00000008;
41384175

41394176
pub var multiDrawArraysIndirectCount: *const fn (
41404177
mode: Enum,

0 commit comments

Comments
 (0)