Add a comment of how to clear the display to integration example
This commit is contained in:
parent
4c494c7244
commit
969de1d31c
@ -163,6 +163,29 @@ pub fn main() {
|
||||
program.background_color(),
|
||||
);
|
||||
|
||||
// If you are using this example and you have no `scene` on your application,
|
||||
// you can clear screen by this code.
|
||||
/*
|
||||
let _ =
|
||||
encoder.begin_render_pass(&wgpu::RenderPassDescriptor {
|
||||
color_attachments: &[
|
||||
wgpu::RenderPassColorAttachmentDescriptor {
|
||||
attachment: &frame.view,
|
||||
resolve_target: None,
|
||||
load_op: wgpu::LoadOp::Clear,
|
||||
store_op: wgpu::StoreOp::Store,
|
||||
clear_color: wgpu::Color {
|
||||
r: 1.0,
|
||||
g: 1.0,
|
||||
b: 1.0,
|
||||
a: 1.0,
|
||||
},
|
||||
},
|
||||
],
|
||||
depth_stencil_attachment: None,
|
||||
});
|
||||
*/
|
||||
|
||||
// And then iced on top
|
||||
let mouse_interaction = renderer.backend_mut().draw(
|
||||
&mut device,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user