diff options
author | 2022-07-02 15:39:42 +0800 | |
---|---|---|
committer | 2022-07-02 15:39:42 +0800 | |
commit | c148557cabf1fb9127b00b248479de2eb1d1d477 (patch) | |
tree | 1f3fe0a654effa351997e5462fae2536e118f517 /wgpu/src/triangle | |
parent | e6e3eff8762e9e8350f00b340348dc2261dd0053 (diff) | |
download | iced-c148557cabf1fb9127b00b248479de2eb1d1d477.tar.gz iced-c148557cabf1fb9127b00b248479de2eb1d1d477.tar.bz2 iced-c148557cabf1fb9127b00b248479de2eb1d1d477.zip |
update `wgpu` to `0.13`
Diffstat (limited to 'wgpu/src/triangle')
-rw-r--r-- | wgpu/src/triangle/msaa.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/wgpu/src/triangle/msaa.rs b/wgpu/src/triangle/msaa.rs index 5d3ee311..7edeeb94 100644 --- a/wgpu/src/triangle/msaa.rs +++ b/wgpu/src/triangle/msaa.rs @@ -74,7 +74,7 @@ impl Blit { }); let shader = - device.create_shader_module(&wgpu::ShaderModuleDescriptor { + device.create_shader_module(wgpu::ShaderModuleDescriptor { label: Some("iced_wgpu::triangle::blit_shader"), source: wgpu::ShaderSource::Wgsl(std::borrow::Cow::Borrowed( include_str!("../shader/blit.wgsl"), @@ -93,13 +93,13 @@ impl Blit { fragment: Some(wgpu::FragmentState { module: &shader, entry_point: "fs_main", - targets: &[wgpu::ColorTargetState { + targets: &[Some(wgpu::ColorTargetState { format, blend: Some( wgpu::BlendState::PREMULTIPLIED_ALPHA_BLENDING, ), write_mask: wgpu::ColorWrites::ALL, - }], + })], }), primitive: wgpu::PrimitiveState { topology: wgpu::PrimitiveTopology::TriangleList, @@ -169,14 +169,14 @@ impl Blit { let mut render_pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor { label: Some("iced_wgpu::triangle::msaa render pass"), - color_attachments: &[wgpu::RenderPassColorAttachment { + color_attachments: &[Some(wgpu::RenderPassColorAttachment { view: target, resolve_target: None, ops: wgpu::Operations { load: wgpu::LoadOp::Load, store: true, }, - }], + })], depth_stencil_attachment: None, }); |