mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-21 22:34:43 +00:00
fmt
This commit is contained in:
parent
b70ebad5ba
commit
516b11b3ee
@ -352,8 +352,9 @@ impl ApplicationHandler for App {
|
|||||||
// Begin rendering by acquiring the gpu future from the window renderer.
|
// Begin rendering by acquiring the gpu future from the window renderer.
|
||||||
let previous_frame_end = window_renderer
|
let previous_frame_end = window_renderer
|
||||||
.acquire(Some(Duration::from_millis(1000)), |swapchain_images| {
|
.acquire(Some(Duration::from_millis(1000)), |swapchain_images| {
|
||||||
// Whenever the swapchain gets recreated, we need to recreate everything dependent upon it.
|
// Whenever the swapchain gets recreated, we need to recreate everything
|
||||||
// In this example, that is only the framebuffers.
|
// dependent upon it. In this example, that is only
|
||||||
|
// the framebuffers.
|
||||||
rcx.framebuffers =
|
rcx.framebuffers =
|
||||||
window_size_dependent_setup(swapchain_images, &rcx.render_pass);
|
window_size_dependent_setup(swapchain_images, &rcx.render_pass);
|
||||||
})
|
})
|
||||||
@ -403,10 +404,15 @@ impl ApplicationHandler for App {
|
|||||||
// We are now inside the first subpass of the render pass.
|
// We are now inside the first subpass of the render pass.
|
||||||
//
|
//
|
||||||
// TODO: Document state setting and how it affects subsequent draw commands.
|
// TODO: Document state setting and how it affects subsequent draw commands.
|
||||||
.set_viewport(0, [Viewport {
|
.set_viewport(
|
||||||
extent: window_size.into(),
|
0,
|
||||||
..Default::default()
|
[Viewport {
|
||||||
}].into_iter().collect())
|
extent: window_size.into(),
|
||||||
|
..Default::default()
|
||||||
|
}]
|
||||||
|
.into_iter()
|
||||||
|
.collect(),
|
||||||
|
)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.bind_pipeline_graphics(rcx.pipeline.clone())
|
.bind_pipeline_graphics(rcx.pipeline.clone())
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user