Skip to content

Commit bc68444

Browse files
committed
Update CHANGELOG.md with SpirV passthrough major change
1 parent 60847eb commit bc68444

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

CHANGELOG.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,32 @@ layout(location = 0, index = 1) out vec4 output1;
181181
182182
By @wumpf in [#7144](https://github.com/gfx-rs/wgpu/pull/7144)
183183
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+
184210
### New Features
185211

186212
- 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)
203229

204230
- Support getting vertices of the hit triangle when raytracing. By @Vecvec in [#7183](https://github.com/gfx-rs/wgpu/pull/7183) .
205231

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).
207232
- Add Metal compute shader passthrough. Use `create_shader_module_passthrough` on device. By @syl20bnr in [#7326](https://github.com/gfx-rs/wgpu/pull/7326).
208233

209234
#### Naga

0 commit comments

Comments
 (0)