Started on proposal on interface to expose raw function pointers for extensions.

Added raw_fp() to Surface and Swapchain
Àdded instance_handle() to Surface
Added device_handle() to Device

Signed-off-by: Nils Petter Skålerud <np_skalerud@hotmail.com>
This commit is contained in:
Nils Petter Skålerud 2019-08-27 00:49:53 +02:00
parent 9838cf9566
commit 855143b93b
2 changed files with 16 additions and 0 deletions

View file

@ -138,4 +138,12 @@ impl Surface {
allocation_callbacks.as_raw_ptr(), allocation_callbacks.as_raw_ptr(),
); );
} }
pub fn raw_fp(&self) -> &vk::KhrSurfaceFn {
&self.surface_fn
}
pub fn instance_handle(&self) -> vk::Instance {
self.handle
}
} }

View file

@ -126,4 +126,12 @@ impl Swapchain {
_ => Err(err_code), _ => Err(err_code),
} }
} }
pub fn raw_fp(&self) -> &vk::KhrSwapchainFn {
&self.swapchain_fn
}
pub fn device_handle(&self) -> vk::Device {
self.handle
}
} }