Struct pilka_dyn::ash::VkInstance [−]
The entry point for vulkan application.
Fields
entry: EntryCustom<Arc<Library>>
instance: Instance
Implementations
impl VkInstance
pub fn new(
validation_layers: &[&str],
extention_names: &[&CStr]
) -> Result<VkInstance, Box<dyn Error + 'static, Global>>
validation_layers: &[&str],
extention_names: &[&CStr]
) -> Result<VkInstance, Box<dyn Error + 'static, Global>>
pub fn create_surface<W>(&self, window: &W) -> Result<VkSurface, Result> where
W: HasRawWindowHandle,
W: HasRawWindowHandle,
Make surface and surface loader.
pub fn create_device_and_queues(
&self,
surface: Option<&VkSurface>
) -> Result<(VkDevice, VkDeviceProperties, VkQueues), Result>
&self,
surface: Option<&VkSurface>
) -> Result<(VkDevice, VkDeviceProperties, VkQueues), Result>
pub fn create_swapchain_loader(&self, device: &VkDevice) -> Swapchain
Methods from Deref<Target = Instance>
Trait Implementations
impl Deref for VkInstance
type Target = Instance
The resulting type after dereferencing.
pub fn deref(&self) -> &<VkInstance as Deref>::Target
impl DerefMut for VkInstance
pub fn deref_mut(&mut self) -> &mut <VkInstance as Deref>::Target
impl Drop for VkInstance
pub fn drop(&mut self)
Auto Trait Implementations
impl RefUnwindSafe for VkInstance
[src]
impl !Send for VkInstance
[src]
impl !Sync for VkInstance
[src]
impl Unpin for VkInstance
[src]
impl UnwindSafe for VkInstance
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,