Add other breaking changes to 0.13 changelog (#2825)

* add other breaking changes to 0.13 changelog

* fix typo
This commit is contained in:
David Huculak authored and GitHub committed 2022-07-01 01:44:29 +00:00
1 parent 1ceef24261
commit 93dbffa5d3
1 file changed
+47 -1
+47 -1
View File
@@ -97,7 +97,7 @@ based GPUs, such as mobile devices and Apple's M chips.
`Features::TIMESTAMP_QUERIES` now allows for calling `write_timestamp` only on `CommandEncoder`s.
`Features::WRITE_TIMESTAMP_INSIDE_PASSES` is needed to calling `write_timestamp` on `RenderPassEncoder`s or `ComputePassEncoder`s.
`Features::WRITE_TIMESTAMP_INSIDE_PASSES` is needed to call `write_timestamp` on `RenderPassEncoder`s or `ComputePassEncoder`s.
#### map_async
@@ -119,6 +119,52 @@ is an under-documented area that we hope to improve in the future.
Calling `queue.submit` now returns an opaque submission index that can be used as an argument to
`device.poll` to say which submission to wait to complete.
### Other Breaking Changes
`Device::create_shader_module` now takes the shader descriptor by value:
```diff
- device.create_shader_module(&shader_module_descriptor)
+ device.create_shader_module(shader_module_descriptor)
```
Color attachments can be sparse, so they are now optional:
```diff
FragmentState {
- targets: &[color_target_state]
+ targets: &[Some(color_target_state)]
// ..
}
```
```diff
RenderPassDescriptor {
- color_attachments: &[render_pass_color_attachment]
+ color_attachments: &[Some(render_pass_color_attachment)]
// ..
}
```
```diff
RenderBundleEncoderDescriptor {
- color_formats: &[texture_format]
+ color_formats: &[Some(texture_format)]
// ..
}
```
`Extent3d::max_mips` now requires you to pass a TextureDimension to specify whether or not depth_or_array_layers should be ignored:
```diff
Extent3d {
width: 1920,
height: 1080,
depth_or_array_layers: 6,
- }.max_mips()
+ }.max_mips(wgpu::TextureDimension::D3)
```
### Added/New Features
#### General