[][src]Struct bedrock::Instance

pub struct Instance(_);

Opaque handle to a instance object

Methods

impl Instance[src]

Following methods are enabled with [feature = "Implements"]

pub fn extra_procedure<F: FnTransmute>(&self, name: &str) -> Option<F>[src]

Return a function pointer for a command

Failures

If function is not provided by instance or name is empty, returns None

pub fn enumerate_physical_devices(&self) -> Result<Vec<PhysicalDevice>>[src]

Enumerates the physical devices accessible to a Vulkan instance

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_INITIALIZATION_FAILED

pub fn iter_physical_devices(&self) -> Result<IterPhysicalDevices>[src]

Lazyly enumerates the physical devices accessible to a Vulkan instance

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_INITIALIZATION_FAILED

pub fn enumerate_layer_properties() -> Result<Vec<VkLayerProperties>>[src]

Returns up to all of global layer properties

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY

pub fn enumerate_extension_properties(
    layer_name: Option<&str>
) -> Result<Vec<VkExtensionProperties>>
[src]

Returns up to all of global extension properties

Failures

On failure, this command returns

  • VK_ERROR_OUT_OF_HOST_MEMORY
  • VK_ERROR_OUT_OF_DEVICE_MEMORY
  • VK_ERROR_LAYER_NOT_PRESENT

impl Instance[src]

pub fn debug_message(
    &self,
    flags: VkDebugReportFlagsEXT,
    object_type: DebugReportObjectType,
    object: u64,
    location: size_t,
    message_count: i32,
    layer_prefix: &str,
    message: &str
)
[src]

Inject its own messages into the debug stream

Trait Implementations

impl Clone for Instance[src]

impl VkHandle for Instance[src]

type Handle = VkInstance

Auto Trait Implementations

impl !RefUnwindSafe for Instance

impl !Send for Instance

impl !Sync for Instance

impl Unpin for Instance

impl !UnwindSafe for Instance

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.