gpu: Fix build in 32-bit platforms
Because of the use of u64, this currently fails to build in 32-bit platforms like wasm. usize is platform dependent but safe enough for most use cases.
This commit is contained in:
parent
ff5636c6f6
commit
2b994d6b24
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ pub inline fn writeTexture(
|
||||||
queue.ptr,
|
queue.ptr,
|
||||||
destination,
|
destination,
|
||||||
@ptrCast(*const anyopaque, data.ptr),
|
@ptrCast(*const anyopaque, data.ptr),
|
||||||
@intCast(u64, data.len) * @sizeOf(std.meta.Elem(@TypeOf(data))),
|
@intCast(usize, data.len) * @sizeOf(std.meta.Elem(@TypeOf(data))),
|
||||||
data_layout,
|
data_layout,
|
||||||
write_size,
|
write_size,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue