@@ -217,6 +217,18 @@ pub fn debugMessageCallback(context: anytype, comptime handler: DebugMessageCall
217
217
checkError ();
218
218
}
219
219
220
+ pub fn debugMessageInsert (source : DebugSource , msg_type : DebugMessageType , id : u32 , severity : DebugSeverity , message : []const u8 ) void {
221
+ binding .debugMessageInsert (
222
+ @intFromEnum (source ),
223
+ @intFromEnum (msg_type ),
224
+ id ,
225
+ @intFromEnum (severity ),
226
+ @intCast (message .len ),
227
+ message .ptr
228
+ );
229
+ checkError ();
230
+ }
231
+
220
232
pub fn clearColor (r : f32 , g : f32 , b : f32 , a : f32 ) void {
221
233
binding .clearColor (r , g , b , a );
222
234
checkError ();
@@ -1552,6 +1564,11 @@ pub const BlendFactor = enum(types.Enum) {
1552
1564
one_minus_constant_color = binding .ONE_MINUS_CONSTANT_COLOR ,
1553
1565
constant_alpha = binding .CONSTANT_ALPHA ,
1554
1566
one_minus_constant_alpha = binding .ONE_MINUS_CONSTANT_ALPHA ,
1567
+ src_alpha_saturate = binding .SRC_ALPHA_SATURATE ,
1568
+ src1_color = binding .SRC1_COLOR ,
1569
+ one_minus_src1_color = binding .ONE_MINUS_SRC1_COLOR ,
1570
+ src1_alpha = binding .SRC1_ALPHA ,
1571
+ one_minus_src1_alpha = binding .ONE_MINUS_SRC1_ALPHA ,
1555
1572
};
1556
1573
1557
1574
pub fn blendFunc (sfactor : BlendFactor , dfactor : BlendFactor ) void {
@@ -1564,6 +1581,29 @@ pub fn blendFuncSeparate(srcRGB: BlendFactor, dstRGB: BlendFactor, srcAlpha: Ble
1564
1581
checkError ();
1565
1582
}
1566
1583
1584
+ pub const BlendEquation = enum (types .Enum ) {
1585
+ add = binding .FUNC_ADD ,
1586
+ subtract = binding .FUNC_SUBTRACT ,
1587
+ reverse_subtract = binding .FUNC_REVERSE_SUBTRACT ,
1588
+ min = binding .MIN ,
1589
+ max = binding .MAX ,
1590
+ };
1591
+
1592
+ pub fn blendEquation (equation : BlendEquation ) void {
1593
+ binding .blendEquation (@intFromEnum (equation ));
1594
+ checkError ();
1595
+ }
1596
+
1597
+ pub fn blendEquationi (buf : u32 , equation : BlendEquation ) void {
1598
+ binding .blendEquationi (buf , @intFromEnum (equation ));
1599
+ checkError ();
1600
+ }
1601
+
1602
+ pub fn blendEquationSeparate (equationRgb : BlendEquation , equationAlpha : BlendEquation ) void {
1603
+ binding .blendEquationSeparate (@intFromEnum (equationRgb ), @intFromEnum (equationAlpha ));
1604
+ checkError ();
1605
+ }
1606
+
1567
1607
pub const DrawMode = enum (types .Enum ) {
1568
1608
point = binding .POINT ,
1569
1609
line = binding .LINE ,
@@ -1937,6 +1977,18 @@ pub const PixelType = enum(types.Enum) {
1937
1977
unsigned_int_2_10_10_10_rev = binding .UNSIGNED_INT_2_10_10_10_REV ,
1938
1978
};
1939
1979
1980
+ pub fn texBuffer (
1981
+ texture_target : TextureTarget ,
1982
+ pixel_internal_format : TextureInternalFormat ,
1983
+ buffer : types .Buffer
1984
+ ) void {
1985
+ binding .texBuffer (
1986
+ @intFromEnum (texture_target ),
1987
+ @intFromEnum (pixel_internal_format ),
1988
+ @intFromEnum (buffer ));
1989
+ checkError ();
1990
+ }
1991
+
1940
1992
pub fn textureImage2D (
1941
1993
texture : TextureTarget ,
1942
1994
level : usize ,
0 commit comments