diff options
author | 2021-04-11 18:55:57 -0700 | |
---|---|---|
committer | 2021-04-11 18:55:57 -0700 | |
commit | 9a2c78c4059d2be37d10adda397fb6e64f38ac02 (patch) | |
tree | f529faa116378e7ab447b40bd93bf5811c3dfca8 /examples/integration/src | |
parent | 4b8ba8309f6645cdcb5bd605f8dd88097f8ee5a7 (diff) | |
download | iced-9a2c78c4059d2be37d10adda397fb6e64f38ac02.tar.gz iced-9a2c78c4059d2be37d10adda397fb6e64f38ac02.tar.bz2 iced-9a2c78c4059d2be37d10adda397fb6e64f38ac02.zip |
Upgrade wgpu
Diffstat (limited to 'examples/integration/src')
-rw-r--r-- | examples/integration/src/scene.rs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/examples/integration/src/scene.rs b/examples/integration/src/scene.rs index 36c0a41d..3e8277c8 100644 --- a/examples/integration/src/scene.rs +++ b/examples/integration/src/scene.rs @@ -20,8 +20,8 @@ impl Scene { ) -> wgpu::RenderPass<'a> { encoder.begin_render_pass(&wgpu::RenderPassDescriptor { label: None, - color_attachments: &[wgpu::RenderPassColorAttachmentDescriptor { - attachment: target, + color_attachments: &[wgpu::RenderPassColorAttachment { + view: target, resolve_target: None, ops: wgpu::Operations { load: wgpu::LoadOp::Clear({ @@ -75,15 +75,16 @@ fn build_pipeline(device: &wgpu::Device) -> wgpu::RenderPipeline { entry_point: "main", targets: &[wgpu::ColorTargetState { format: wgpu::TextureFormat::Bgra8UnormSrgb, - color_blend: wgpu::BlendState::REPLACE, - alpha_blend: wgpu::BlendState::REPLACE, + blend: Some(wgpu::BlendState { + color: wgpu::BlendComponent::REPLACE, + alpha: wgpu::BlendComponent::REPLACE, + }), write_mask: wgpu::ColorWrite::ALL, }], }), primitive: wgpu::PrimitiveState { topology: wgpu::PrimitiveTopology::TriangleList, front_face: wgpu::FrontFace::Ccw, - cull_mode: wgpu::CullMode::None, ..Default::default() }, depth_stencil: None, |