mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 00:08:42 -06:00
oops forgor to cast trans buffers
This commit is contained in:
parent
8373d2be54
commit
1d4cbcc2b1
|
@ -343,13 +343,13 @@ fn process_completed_tasks(
|
||||||
|
|
||||||
let vtx_buffer_trans = renderer.device().create_buffer_init(&wgpu::util::BufferInitDescriptor {
|
let vtx_buffer_trans = renderer.device().create_buffer_init(&wgpu::util::BufferInitDescriptor {
|
||||||
label: Some("chunk_trans_vertex_buffer"),
|
label: Some("chunk_trans_vertex_buffer"),
|
||||||
contents: todo!(),
|
contents: bytemuck::cast_slice(&trans_vertices),
|
||||||
usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::VERTEX,
|
usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::VERTEX,
|
||||||
});
|
});
|
||||||
|
|
||||||
let idx_buffer_trans = renderer.device().create_buffer_init(&wgpu::util::BufferInitDescriptor {
|
let idx_buffer_trans = renderer.device().create_buffer_init(&wgpu::util::BufferInitDescriptor {
|
||||||
label: Some("chunk_trans_index_buffer"),
|
label: Some("chunk_trans_index_buffer"),
|
||||||
contents: todo!(),
|
contents: bytemuck::cast_slice(&trans_indices),
|
||||||
usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::INDEX,
|
usage: wgpu::BufferUsages::COPY_DST | wgpu::BufferUsages::INDEX,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue