Skip to content

Commit 51a1ab1

Browse files
committed
Used a slice to represent size and data parameters of getBufferSubData
1 parent 558c070 commit 51a1ab1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/wrapper.zig

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2699,14 +2699,13 @@ pub fn Wrap(comptime bindings: anytype) type {
26992699
pub fn getBufferSubData(
27002700
target: BufferTarget,
27012701
offset: usize,
2702-
size: usize,
2703-
data: ?[*]u8,
2702+
data: []u8,
27042703
) void {
27052704
bindings.getBufferSubData(
27062705
@intFromEnum(target),
27072706
@as(Intptr, @bitCast(offset)),
2708-
@as(Sizeiptr, @bitCast(size)),
2709-
data,
2707+
@as(Sizeiptr, @bitCast(data.len)),
2708+
data.ptr,
27102709
);
27112710
}
27122711

0 commit comments

Comments
 (0)