Skip to content

Commit

Permalink
Allow unsized p_next arguments for all push_next functions (#855)
Browse files Browse the repository at this point in the history
Co-authored-by: Marijn Suijten <marijn@traverseresearch.nl>
  • Loading branch information
lilly-lizard and MarijnS95 authored Mar 24, 2024
1 parent 9d225c5 commit e722239
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 110 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Windows `HANDLE` types (`HWND`, `HINSTANCE`, `HMONITOR`) are now defined as `isize` instead of `*const c_void` (#797)
- extensions/ext/ray_tracing_pipeline: Pass indirect SBT regions as single item reference (#829)
- Replaced `c_char` array setters with `CStr` setters (#831)
- `push_next()` functions now allow unsized `p_next` argument (#855)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion ash/src/vk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mod platform_types;
pub use platform_types::*;
/// Iterates through the pointer chain. Includes the item that is passed into the function.
/// Stops at the last [`BaseOutStructure`] that has a null [`BaseOutStructure::p_next`] field.
pub(crate) unsafe fn ptr_chain_iter<T>(
pub(crate) unsafe fn ptr_chain_iter<T: ?Sized>(
ptr: &mut T,
) -> impl Iterator<Item = *mut BaseOutStructure<'_>> {
let ptr = <*mut T>::cast::<BaseOutStructure<'_>>(ptr);
Expand Down
Loading

0 comments on commit e722239

Please sign in to comment.