We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 558c070 commit 51a1ab1Copy full SHA for 51a1ab1
src/wrapper.zig
@@ -2699,14 +2699,13 @@ pub fn Wrap(comptime bindings: anytype) type {
2699
pub fn getBufferSubData(
2700
target: BufferTarget,
2701
offset: usize,
2702
- size: usize,
2703
- data: ?[*]u8,
+ data: []u8,
2704
) void {
2705
bindings.getBufferSubData(
2706
@intFromEnum(target),
2707
@as(Intptr, @bitCast(offset)),
2708
- @as(Sizeiptr, @bitCast(size)),
2709
- data,
+ @as(Sizeiptr, @bitCast(data.len)),
+ data.ptr,
2710
);
2711
}
2712
0 commit comments