Skip to content

Commit 17de687

Browse files
authored
Merge pull request #105 from Calcoph/master
update to wgpu 0.18
2 parents 03f514f + 967d062 commit 17de687

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation = "https://docs.rs/wgpu_glyph"
1111
readme = "README.md"
1212

1313
[dependencies]
14-
wgpu = "0.17"
14+
wgpu = "0.18"
1515
glyph_brush = "0.7"
1616
log = "0.4"
1717

examples/clipping.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,13 @@ fn main() -> Result<(), Box<dyn Error>> {
122122
a: 1.0,
123123
},
124124
),
125-
store: true,
125+
store: wgpu::StoreOp::Store,
126126
},
127127
},
128128
)],
129129
depth_stencil_attachment: None,
130+
timestamp_writes: None,
131+
occlusion_query_set: None,
130132
},
131133
);
132134
}

examples/depth.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,13 @@ fn main() -> Result<(), Box<dyn Error>> {
113113
a: 1.0,
114114
},
115115
),
116-
store: true,
116+
store: wgpu::StoreOp::Store,
117117
},
118118
},
119119
)],
120120
depth_stencil_attachment: None,
121+
timestamp_writes: None,
122+
occlusion_query_set: None,
121123
},
122124
);
123125
}
@@ -162,11 +164,11 @@ fn main() -> Result<(), Box<dyn Error>> {
162164
view: &depth_view,
163165
depth_ops: Some(wgpu::Operations {
164166
load: wgpu::LoadOp::Clear(0.0),
165-
store: true,
167+
store: wgpu::StoreOp::Store,
166168
}),
167169
stencil_ops: Some(wgpu::Operations {
168170
load: wgpu::LoadOp::Clear(0),
169-
store: true,
171+
store: wgpu::StoreOp::Store,
170172
}),
171173
},
172174
size.width,

examples/hello.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,13 @@ fn main() -> Result<(), Box<dyn Error>> {
122122
a: 1.0,
123123
},
124124
),
125-
store: true,
125+
store: wgpu::StoreOp::Store,
126126
},
127127
},
128128
)],
129129
depth_stencil_attachment: None,
130+
timestamp_writes: None,
131+
occlusion_query_set: None,
130132
},
131133
);
132134
}

src/pipeline.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,12 @@ fn draw<D>(
387387
resolve_target: None,
388388
ops: wgpu::Operations {
389389
load: wgpu::LoadOp::Load,
390-
store: true,
390+
store: wgpu::StoreOp::Store,
391391
},
392392
})],
393393
depth_stencil_attachment,
394+
timestamp_writes: None,
395+
occlusion_query_set: None,
394396
});
395397

396398
render_pass.set_pipeline(&pipeline.raw);

0 commit comments

Comments
 (0)