build
Asserts that the entire array has been filled
The memory ownership is transferred to Triangles.
making Builder.deinit unnecessary, but safe, to call
Parameters
- self:*Builder
- *Builder
Source
Implementation
pub fn build(self: *Builder) Triangles {
defer self.* = .{ .vertexes = .empty, .indices = .empty };
// Ownership is transferred as the the full allocated slices are returned
return self.build_unowned();
}