This commit is contained in:
marc0246 2023-05-18 13:06:40 +02:00
parent 6816292750
commit 1bf682dc28
No known key found for this signature in database
GPG Key ID: 689CB88C1090C684

View File

@ -31,6 +31,12 @@ Changes to error reporting:
- `VulkanError` is renamed to `RuntimeError`. - `VulkanError` is renamed to `RuntimeError`.
- Added new types `ValidationError` and `VulkanError` (enum of `ValidationError` + `RuntimeError`) to return errors from any function. Some existing functions have been converted to use these types, others will follow later. - Added new types `ValidationError` and `VulkanError` (enum of `ValidationError` + `RuntimeError`) to return errors from any function. Some existing functions have been converted to use these types, others will follow later.
Changes to command buffers:
- `SyncCommandBuffer(Builder)` is merged into `*AutoCommandBuffer(Builder)`. The commands that formerly belonged to `SyncCommandBufferBuilder` are now available as `_unchecked` versions on `AutoCommandBufferBuilder`.
- Command buffers are now created with a wrapping `Arc` like other object types.
- The type parameter of `PrimaryCommandBuffer` and `SecondaryCommandBuffer` is now the allocator itself (like for the builder) rather than its allocation type.
- `UnsafeCommandBuffer(Builder)` now takes ownership of the command buffer allocation, and has a type parameter for the allocator.
### Additions ### Additions
- Vulkano-shaders: Added a `root_path_env` property to allow loading shaders generated by a build script. - Vulkano-shaders: Added a `root_path_env` property to allow loading shaders generated by a build script.