Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generator: Mark QNX c_void types as opaque to get raw pointers #950

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased] - ReleaseDate

### Changed

- Treat QNX "void" type aliases as "opaque" to make them raw pointers instead of borrows in public structures (#950)

### Added

- Update Vulkan-Headers to 1.3.296 (#910)
Expand Down
6 changes: 3 additions & 3 deletions ash/src/vk/definitions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9264,12 +9264,12 @@ impl<'a> ScreenSurfaceCreateInfoQNX<'a> {
self
}
#[inline]
pub fn context(mut self, context: &'a mut _screen_context) -> Self {
pub fn context(mut self, context: *mut _screen_context) -> Self {
self.context = context;
self
}
#[inline]
pub fn window(mut self, window: &'a mut _screen_window) -> Self {
pub fn window(mut self, window: *mut _screen_window) -> Self {
self.window = window;
self
}
Expand Down Expand Up @@ -56278,7 +56278,7 @@ unsafe impl<'a> TaggedStructure for ImportScreenBufferInfoQNX<'a> {
unsafe impl ExtendsMemoryAllocateInfo for ImportScreenBufferInfoQNX<'_> {}
impl<'a> ImportScreenBufferInfoQNX<'a> {
#[inline]
pub fn buffer(mut self, buffer: &'a mut _screen_buffer) -> Self {
pub fn buffer(mut self, buffer: *mut _screen_buffer) -> Self {
self.buffer = buffer;
self
}
Expand Down
3 changes: 3 additions & 0 deletions generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@ fn is_opaque_type(ty: &str) -> bool {
| "CAMetalLayer"
| "IDirectFB"
| "IDirectFBSurface"
| "_screen_buffer"
| "_screen_context"
| "_screen_window"
)
}

Expand Down