Skip to content

Commit

Permalink
vk/platform_types: Mark SECURITY_ATTRIBUTES as a true ffi::c_void (#433)
Browse files Browse the repository at this point in the history
`()` is an empty tuple which can be constructed, while `ffi::c_void`
cannot.  This is only ever used as an opaque pointer anyway and not used
by Ash; those wishing to access members directly should cast it to a
struct representation of choice (`winapi`, `windows-rs` or something
custom).

Fixes #156
  • Loading branch information
MarijnS95 authored May 10, 2021
1 parent 498b8d8 commit 3152f4a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ash/src/vk/platform_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ pub type zx_handle_t = u32;
pub type _screen_context = c_void;
#[allow(non_camel_case_types)]
pub type _screen_window = c_void;
// FIXME: Platform specific types that should come from a library id:0
// typedefs are only here so that the code compiles for now
#[allow(non_camel_case_types)]
pub type SECURITY_ATTRIBUTES = ();
pub type SECURITY_ATTRIBUTES = c_void;
// Opaque types
pub type ANativeWindow = c_void;
pub type AHardwareBuffer = c_void;
Expand Down

0 comments on commit 3152f4a

Please sign in to comment.