diff options
author | 2021-05-24 20:26:56 +0700 | |
---|---|---|
committer | 2021-05-24 20:26:56 +0700 | |
commit | df971ac99beedb41537763f95f7b14d8bf7475a8 (patch) | |
tree | 70bf9d7aac84ae05f841b51dca6eb66c1769de93 /examples/integration | |
parent | 3918257883dba3cf260bd9764cb7b34101c435e6 (diff) | |
parent | 4cbc34524598756ce18cb25a664bc6f256d42851 (diff) | |
download | iced-df971ac99beedb41537763f95f7b14d8bf7475a8.tar.gz iced-df971ac99beedb41537763f95f7b14d8bf7475a8.tar.bz2 iced-df971ac99beedb41537763f95f7b14d8bf7475a8.zip |
Merge pull request #830 from Dispersia/upgrade-wgpu
Upgrade wgpu
Diffstat (limited to 'examples/integration')
-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, |