Fix warning
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 6m25s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 6m25s
This commit is contained in:
parent
a4a6c0c60a
commit
6dae0339db
3 changed files with 6 additions and 8 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue