@@ -1572,6 +1572,7 @@ pub fn Wrap(comptime bindings: anytype) type {
1572
1572
level : u32 ,
1573
1573
internal_format : InternalFormat ,
1574
1574
width : u32 ,
1575
+ border : bool = false ,
1575
1576
format : PixelFormat ,
1576
1577
pixel_type : PixelType ,
1577
1578
data : ? [* ]const u8 ,
@@ -1581,7 +1582,7 @@ pub fn Wrap(comptime bindings: anytype) type {
1581
1582
@bitCast (args .level ),
1582
1583
@intFromEnum (args .internal_format ),
1583
1584
@bitCast (args .width ),
1584
- 0 ,
1585
+ @intFromBool ( args . border ) ,
1585
1586
@intFromEnum (args .format ),
1586
1587
@intFromEnum (args .pixel_type ),
1587
1588
args .data ,
@@ -1605,6 +1606,7 @@ pub fn Wrap(comptime bindings: anytype) type {
1605
1606
internal_format : InternalFormat ,
1606
1607
width : u32 ,
1607
1608
height : u32 ,
1609
+ border : bool = false ,
1608
1610
format : PixelFormat ,
1609
1611
pixel_type : PixelType ,
1610
1612
data : ? [* ]const u8 ,
@@ -1615,7 +1617,7 @@ pub fn Wrap(comptime bindings: anytype) type {
1615
1617
@intFromEnum (args .internal_format ),
1616
1618
@bitCast (args .width ),
1617
1619
@bitCast (args .height ),
1618
- 0 ,
1620
+ @intFromBool ( args . border ) ,
1619
1621
@intFromEnum (args .format ),
1620
1622
@intFromEnum (args .pixel_type ),
1621
1623
args .data ,
@@ -2812,11 +2814,11 @@ pub fn Wrap(comptime bindings: anytype) type {
2812
2814
}
2813
2815
2814
2816
// pub var uniform2i: *const fn (location: Int, v0: Int, v1: Int) callconv(.C) void = undefined;
2815
- pub fn uniform2i (location : UniformLocation , v0 : i32 , v1 : i32 ) void {
2817
+ pub fn uniform2i (location : UniformLocation , v0 : i32 , v1 : i32 ) void {
2816
2818
bindings .uniform2i (@as (Int , @bitCast (location )), v0 , v1 );
2817
2819
}
2818
2820
// pub var uniform3i: *const fn (location: Int, v0: Int, v1: Int, v2: Int) callconv(.C) void = undefined;
2819
- pub fn uniform3i (location : UniformLocation , v0 : i32 , v1 : i32 , v2 : i32 ) void {
2821
+ pub fn uniform3i (location : UniformLocation , v0 : i32 , v1 : i32 , v2 : i32 ) void {
2820
2822
bindings .uniform3i (@as (Int , @bitCast (location )), v0 , v1 , v2 );
2821
2823
}
2822
2824
// pub var uniform4i: *const fn (
@@ -2826,7 +2828,7 @@ pub fn Wrap(comptime bindings: anytype) type {
2826
2828
// v2: Int,
2827
2829
// v3: Int,
2828
2830
// ) callconv(.C) void = undefined;
2829
- pub fn uniform4i (location : UniformLocation , v0 : i32 , v1 : i32 , v2 : i32 , v3 : i32 ) void {
2831
+ pub fn uniform4i (location : UniformLocation , v0 : i32 , v1 : i32 , v2 : i32 , v3 : i32 ) void {
2830
2832
bindings .uniform4i (@as (Int , @bitCast (location )), v0 , v1 , v2 , v3 );
2831
2833
}
2832
2834
// pub var uniform1fv: *const fn (
0 commit comments