summaryrefslogtreecommitdiffstats
path: root/wgpu/src/triangle
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-07-03 17:35:31 +0200
committerLibravatar GitHub <noreply@github.com>2022-07-03 17:35:31 +0200
commit66eb6263003c1bbedd1fd14d6b12f172d20a6211 (patch)
tree46253081865e677d7199fd036f0fed309f531ea7 /wgpu/src/triangle
parente6e3eff8762e9e8350f00b340348dc2261dd0053 (diff)
parent9adc20922d16b990eede1f6c5f059e68efe15d0e (diff)
downloadiced-66eb6263003c1bbedd1fd14d6b12f172d20a6211.tar.gz
iced-66eb6263003c1bbedd1fd14d6b12f172d20a6211.tar.bz2
iced-66eb6263003c1bbedd1fd14d6b12f172d20a6211.zip
Merge pull request #1378 from Cupnfish/wgpu-0.13
update `wgpu` to `0.13`
Diffstat (limited to 'wgpu/src/triangle')
-rw-r--r--wgpu/src/triangle/msaa.rs10
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,
});