You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,6 +181,32 @@ layout(location = 0, index = 1) out vec4 output1;
181
181
182
182
By @wumpf in [#7144](https://github.com/gfx-rs/wgpu/pull/7144)
183
183
184
+
#### Unify interface for SpirV shader passthrough
185
+
186
+
Replace device `create_shader_module_spirv` function with a generic `create_shader_module_passthrough` function
187
+
taking a `ShaderModuleDescriptorPassthrough` enum as parameter.
188
+
189
+
Update your calls to `create_shader_module_spirv` and use `create_shader_module_passthrough` instead:
190
+
191
+
```diff
192
+
- device.create_shader_module_spirv(
193
+
- wgpu::ShaderModuleDescriptorSpirV {
194
+
- label: Some(&name),
195
+
- source: Cow::Borrowed(&source),
196
+
- }
197
+
- )
198
+
+ device.create_shader_module_passthrough(
199
+
+ wgpu::ShaderModuleDescriptorPassthrough::SpirV(
200
+
+ wgpu::ShaderModuleDescriptorSpirV {
201
+
+ label: Some(&name),
202
+
+ source: Cow::Borrowed(&source),
203
+
+ },
204
+
+ ),
205
+
+ )
206
+
```
207
+
208
+
By @syl20bnr in [#7326](https://github.com/gfx-rs/wgpu/pull/7326).
209
+
184
210
### New Features
185
211
186
212
- Added mesh shader support to `wgpu_hal`. By @SupaMaggie70Incorporated in [#7089](https://github.com/gfx-rs/wgpu/pull/7089)
@@ -203,7 +229,6 @@ By @wumpf in [#7144](https://github.com/gfx-rs/wgpu/pull/7144)
203
229
204
230
- Support getting vertices of the hit triangle when raytracing. By @Vecvec in [#7183](https://github.com/gfx-rs/wgpu/pull/7183) .
205
231
206
-
- Replace device `create_shader_module_spirv` with generic `create_shader_module_passthrough` taking a `ShaderModuleDescriptorPassthrough` enum as parameter. By @syl20bnr in [#7326](https://github.com/gfx-rs/wgpu/pull/7326).
207
232
- Add Metal compute shader passthrough. Use `create_shader_module_passthrough` on device. By @syl20bnr in [#7326](https://github.com/gfx-rs/wgpu/pull/7326).
0 commit comments