We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55dc692 commit fc3279cCopy full SHA for fc3279c
ash/src/vk.rs
@@ -33,7 +33,7 @@ pub use platform_types::*;
33
pub trait Handle: Sized {
34
const TYPE: ObjectType;
35
fn as_raw(self) -> u64;
36
- fn from_raw(_: u64) -> Self;
+ fn from_raw(_: *mut u8) -> Self;
37
38
/// Returns whether the handle is a `NULL` value.
39
///
ash/src/vk/macros.rs
@@ -137,8 +137,8 @@ macro_rules! define_handle {
137
fn as_raw(self) -> u64 {
138
self.0 as u64
139
}
140
- fn from_raw(x: u64) -> Self {
141
- Self(x as _)
+ fn from_raw(x: *mut u8) -> Self {
+ Self(x)
142
143
144
unsafe impl Send for $name {}
0 commit comments