[][src]Struct lava::VkInstance

pub struct VkInstance { /* fields omitted */ }

Wrapper for VkInstance.

Methods

impl VkInstance[src]

pub fn create_surface<F: Fn(u64, *const u8, *mut u64) -> i32>(
    &self,
    create_fn: F
) -> LavaResult<VkSurface>
[src]

impl VkInstance[src]

pub fn vk_handle(&self) -> u64[src]

Returns the internal Vulkan handle for the object.

pub fn is_null(&self) -> bool[src]

Indicates if the Vulkan internal handle for this object is 0.

pub fn null() -> Self[src]

Creates an object with a null Vulkan internal handle.

Calling a method with a null handle will most likely result in a crash.

pub fn destroy(&self)[src]

Wrapper for vkDestroyInstance.

pub fn enumerate_physical_devices(&self) -> LavaResult<Vec<VkPhysicalDevice>>[src]

pub fn enumerate_physical_device_groups(
    &self
) -> LavaResult<Vec<VkPhysicalDeviceGroupProperties>>
[src]

pub fn create_display_plane_surface(
    &self,
    create_info: VkDisplaySurfaceCreateInfo
) -> LavaResult<VkSurface>
[src]

pub fn create_debug_report_callback(
    &self,
    create_info: VkDebugReportCallbackCreateInfo
) -> LavaResult<VkDebugReportCallback>
[src]

pub fn debug_report_message(
    &self,
    flags: VkDebugReportFlags,
    object_type: VkDebugReportObjectType,
    object: usize,
    location: usize,
    message_code: isize,
    layer_prefix: &str,
    message: &str
)
[src]

pub fn create_debug_utils_messenger(
    &self,
    create_info: VkDebugUtilsMessengerCreateInfo
) -> LavaResult<VkDebugUtilsMessenger>
[src]

pub fn submit_debug_utils_message(
    &self,
    message_severity: VkDebugUtilsMessageSeverityFlags,
    message_types: VkDebugUtilsMessageTypeFlags,
    callback_data: VkDebugUtilsMessengerCallbackData
)
[src]

pub fn create_headless_surface(
    &self,
    create_info: VkHeadlessSurfaceCreateInfo
) -> LavaResult<VkSurface>
[src]

Trait Implementations

impl Copy for VkInstance[src]

impl PartialEq<VkInstance> for VkInstance[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Default for VkInstance[src]

impl Clone for VkInstance[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for VkInstance[src]

Auto Trait Implementations

impl !Send for VkInstance

impl !Sync for VkInstance

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]