some cleanup from clippy
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 9m20s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 9m20s
This commit is contained in:
parent
b1458785e5
commit
1568223b9d
11 changed files with 30 additions and 38 deletions
|
@ -31,7 +31,7 @@ use vulkano::{
|
|||
};
|
||||
|
||||
use crate::core::render::{
|
||||
primitives::{mvp::MVP, transform::TransformRaw, vertex::Vertex3D},
|
||||
primitives::{mvp::Mvp, transform::TransformRaw, vertex::Vertex3D},
|
||||
texture::Texture,
|
||||
};
|
||||
|
||||
|
@ -214,7 +214,7 @@ impl Square {
|
|||
&self,
|
||||
command_buffer: &mut AutoCommandBufferBuilder<PrimaryAutoCommandBuffer>,
|
||||
descriptor_set_allocator: &Arc<StandardDescriptorSetAllocator>,
|
||||
mvp_uniform: &Subbuffer<[MVP]>,
|
||||
mvp_uniform: &Subbuffer<[Mvp]>,
|
||||
transform_uniform: &Subbuffer<[TransformRaw]>,
|
||||
texture: &Texture,
|
||||
) -> Result<(), Box<dyn Error>> {
|
||||
|
|
|
@ -59,7 +59,7 @@ impl Scene for MainScene {
|
|||
let num_instances = 100;
|
||||
let instance_size = 10.0;
|
||||
let instance_spacing = 10.0;
|
||||
let num_instances_per_row = (num_instances as f32 / instance_spacing as f32).ceil() as u32;
|
||||
let num_instances_per_row = (num_instances as f32 / instance_spacing).ceil() as u32;
|
||||
let instances: Vec<Transform> = (0..num_instances)
|
||||
.map(|i| Transform {
|
||||
position: Vec3::new(
|
||||
|
@ -276,9 +276,7 @@ impl Scene for MainScene {
|
|||
});
|
||||
});
|
||||
|
||||
let render_future = gui.draw_on_image(render_future, swapchain_image_view.clone());
|
||||
|
||||
render_future
|
||||
gui.draw_on_image(render_future, swapchain_image_view.clone())
|
||||
});
|
||||
|
||||
Ok(render_future)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue