From 7d8c2b14c3cdf426284a7afade545e04a767073e Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Sat, 4 May 2024 23:18:27 +0200 Subject: [PATCH] oops forgor to cast trans buffers --- kubi/src/world/loading.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubi/src/world/loading.rs b/kubi/src/world/loading.rs index 3defe94..48be8d1 100644 --- a/kubi/src/world/loading.rs +++ b/kubi/src/world/loading.rs @@ -343,13 +343,13 @@ fn process_completed_tasks( let vtx_buffer_trans = renderer.device().create_buffer_init(&wgpu::util::BufferInitDescriptor { label: Some("chunk_trans_vertex_buffer"), - contents: todo!(), + contents: bytemuck::cast_slice(&trans_vertices), usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::VERTEX, }); let idx_buffer_trans = renderer.device().create_buffer_init(&wgpu::util::BufferInitDescriptor { label: Some("chunk_trans_index_buffer"), - contents: todo!(), + contents: bytemuck::cast_slice(&trans_indices), usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::INDEX, });