This commit is contained in:
marc0246 2023-04-18 20:56:25 +02:00
parent b7679f8bbb
commit 783b1ba7a4
No known key found for this signature in database
GPG Key ID: 689CB88C1090C684

View File

@ -11,7 +11,15 @@
### Breaking changes
Changes to shaders and pipelines:
- `EntryPoint` now owns instead of borrows a reference to the `ShaderModule`.
- Instead of an entry point and specialization constants, pipeline construction now takes a `PipelineShaderStageCreateInfo` structure.
- Specialization constants are now provided with a `HashMap` containing `SpecializationConstant` enum values. The `SpecializationConstants` trait is removed, and `vulkano_shaders` no longer generates structs for specialization constants.
- `GraphicsPipelineBuilder` now has a `stages` method that takes an iterator with all shader stages at once, instead of separate methods for each shader type.
- `GraphicsPipelineBuilder` now requires you to provide `input_assembly_state`, `rasterization_state`, `multisample_state` and `color_blend_state` instead of them having default values. You can still call `default()` to generate default values for each of them.
### Additions
- Vulkano-shaders: Added a `root_path_env` property to allow loading shaders generated by a build script.
### Bugs fixed