Skip to content

Commit 56f6382

Browse files
authored
28.0 (#651)
* updated code to 28.0 * writeup
1 parent 1745321 commit 56f6382

93 files changed

Lines changed: 832 additions & 1184 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

Lines changed: 507 additions & 784 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ exclude = [
2828
]
2929

3030
[workspace.dependencies]
31-
wgpu = "27.0.0"
31+
wgpu = "28.0"
3232
anyhow = "1"
3333
rand = "0.8"
3434
glam = { version = "0.30.9", features = ["bytemuck"] }

code/beginner/tutorial1-window/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ anyhow = "1.0"
1616
winit = { version = "0.30" }
1717
env_logger = "0.10"
1818
log = "0.4"
19-
wgpu = "27.0.0"
19+
wgpu = "28.0"
2020
pollster = "0.3"
2121

2222
[target.'cfg(target_arch = "wasm32")'.dependencies]
2323
console_error_panic_hook = "0.1.6"
2424
console_log = "1.0"
25-
wgpu = { version = "27.0.0", features = ["webgl"]}
25+
wgpu = { version = "28.0", features = ["webgl"]}
2626
wasm-bindgen = "0.2"
2727
wasm-bindgen-futures = "0.4.30"
2828
web-sys = { version = "0.3.69", features = [

code/beginner/tutorial2-surface/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ anyhow = "1.0"
1212
winit = { version = "0.30", features = ["android-native-activity"] }
1313
env_logger = "0.10"
1414
log = "0.4"
15-
wgpu = "27.0.0"
15+
wgpu = "28.0"
1616
pollster = "0.3"
1717

1818
[target.'cfg(target_arch = "wasm32")'.dependencies]
1919
console_error_panic_hook = "0.1.6"
2020
console_log = "1.0"
21-
wgpu = { version = "27.0.0", features = ["webgl"]}
21+
wgpu = { version = "28.0", features = ["webgl"]}
2222
wasm-bindgen = "0.2"
2323
wasm-bindgen-futures = "0.4"
2424
web-sys = { version = "0.3", features = [

code/beginner/tutorial2-surface/src/challenge.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ impl State {
138138
depth_stencil_attachment: None,
139139
occlusion_query_set: None,
140140
timestamp_writes: None,
141+
multiview_mask: None,
141142
});
142143
}
143144

code/beginner/tutorial2-surface/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ impl State {
143143
depth_stencil_attachment: None,
144144
occlusion_query_set: None,
145145
timestamp_writes: None,
146+
multiview_mask: None,
146147
});
147148
}
148149

code/beginner/tutorial3-pipeline/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ anyhow = "1.0"
1212
winit = { version = "0.30", features = ["android-native-activity"] }
1313
env_logger = "0.10"
1414
log = "0.4"
15-
wgpu = "27.0.0"
15+
wgpu = "28.0"
1616
pollster = "0.3"
1717

1818
[target.'cfg(target_arch = "wasm32")'.dependencies]
1919
console_error_panic_hook = "0.1.6"
2020
console_log = "1.0"
21-
wgpu = { version = "27.0.0", features = ["webgl"]}
21+
wgpu = { version = "28.0", features = ["webgl"]}
2222
wasm-bindgen = "0.2"
2323
wasm-bindgen-futures = "0.4"
2424
web-sys = { version = "0.3", features = [

code/beginner/tutorial3-pipeline/src/challenge.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl State {
9494
device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
9595
label: Some("Render Pipeline Layout"),
9696
bind_group_layouts: &[],
97-
push_constant_ranges: &[],
97+
immediate_size: 0,
9898
});
9999

100100
let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
@@ -139,8 +139,8 @@ impl State {
139139
alpha_to_coverage_enabled: false,
140140
},
141141
// If the pipeline will be used with a multiview render pass, this
142-
// indicates how many array layers the attachments will have.
143-
multiview: None,
142+
// tells wgpu to render to just specific texture layers.
143+
multiview_mask: None,
144144
// Useful for optimizing shader compilation on Android
145145
cache: None,
146146
});
@@ -186,8 +186,8 @@ impl State {
186186
alpha_to_coverage_enabled: false,
187187
},
188188
// If the pipeline will be used with a multiview render pass, this
189-
// indicates how many array layers the attachments will have.
190-
multiview: None,
189+
// tells wgpu to render to just specific texture layers.
190+
multiview_mask: None,
191191
cache: None,
192192
});
193193

@@ -269,6 +269,7 @@ impl State {
269269
depth_stencil_attachment: None,
270270
occlusion_query_set: None,
271271
timestamp_writes: None,
272+
multiview_mask: None,
272273
});
273274

274275
render_pass.set_pipeline(if self.use_color {

code/beginner/tutorial3-pipeline/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl State {
9595
device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor {
9696
label: Some("Render Pipeline Layout"),
9797
bind_group_layouts: &[],
98-
push_constant_ranges: &[],
98+
immediate_size: 0,
9999
});
100100

101101
let render_pipeline = device.create_render_pipeline(&wgpu::RenderPipelineDescriptor {
@@ -140,8 +140,8 @@ impl State {
140140
alpha_to_coverage_enabled: false,
141141
},
142142
// If the pipeline will be used with a multiview render pass, this
143-
// indicates how many array layers the attachments will have.
144-
multiview: None,
143+
// tells wgpu to render to just specific texture layers.
144+
multiview_mask: None,
145145
// Useful for optimizing shader compilation on Android
146146
cache: None,
147147
});
@@ -214,6 +214,7 @@ impl State {
214214
depth_stencil_attachment: None,
215215
occlusion_query_set: None,
216216
timestamp_writes: None,
217+
multiview_mask: None,
217218
});
218219

219220
render_pass.set_pipeline(&self.render_pipeline);

code/beginner/tutorial4-buffer/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ crate-type = ["cdylib", "rlib"]
1111
[dependencies]
1212
anyhow = "1.0"
1313
winit = { version = "0.30", features = ["android-native-activity"] }
14-
wgpu = "27.0.0"
14+
wgpu = "28.0"
1515
env_logger = "0.10"
1616
log = "0.4"
1717
pollster = "0.3"
@@ -21,7 +21,7 @@ bytemuck = { version = "1.24", features = [ "derive" ] }
2121
[target.'cfg(target_arch = "wasm32")'.dependencies]
2222
console_error_panic_hook = "0.1"
2323
console_log = "1.0"
24-
wgpu = { version = "27.0.0", features = ["webgl"]}
24+
wgpu = { version = "28.0", features = ["webgl"]}
2525
wasm-bindgen = "0.2"
2626
wasm-bindgen-futures = "0.4"
2727
web-sys = { version = "0.3", features = [

0 commit comments

Comments
 (0)