Fix warning
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 6m25s

This commit is contained in:
Florian RICHER 2025-05-25 21:10:58 +02:00
parent a4a6c0c60a
commit 6dae0339db
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
3 changed files with 6 additions and 8 deletions

View file

@ -83,12 +83,12 @@ impl Scene {
vulkano_window_renderer: &VulkanoWindowRenderer,
) -> Result<Self, Box<dyn Error>> {
let pipeline = create_triangle_pipeline(
&vulkano_context.vulkano_context().device(),
vulkano_context.vulkano_context().device(),
vulkano_window_renderer.swapchain_format(),
)?;
let vertex_buffer = Vertex2D::create_buffer(
Vec::from_iter(VERTICES),
&vulkano_context.vulkano_context().memory_allocator(),
vulkano_context.vulkano_context().memory_allocator(),
)?;
Ok(Scene {
@ -108,7 +108,7 @@ impl Scene {
let instance_count = vertex_count / 3;
let uniform_buffer = self.get_uniform_buffer(
&vulkan_context.vulkano_context().memory_allocator(),
vulkan_context.vulkano_context().memory_allocator(),
vulkano_window_renderer.aspect_ratio(),
);
let layout = &self.pipeline.layout().set_layouts()[0];