mach: fix deprecated mem.set() call (#770)

Updating to the @memset builtin fixes the cubemap and pbr-basic examples
assuming zigimg is also up to date

mem.set() appears to have been deprecated -
This commit is contained in:
Grant Morris 2023-05-18 22:49:42 -05:00 committed by GitHub
parent a2d222072e
commit 33e27d9bf1
Failed to generate hash of commit

View file

@ -42,7 +42,7 @@ pub fn VertexWriter(comptime VertexType: type, comptime IndexType: type) type {
result.next_collision_index = sparse_vertices_count;
result.next_packed_index = 0;
result.written_indices_count = 0;
std.mem.set(MapEntry, result.sparse_to_packed_map, .{});
@memset(result.sparse_to_packed_map, .{});
return result;
}