[−][src]Struct bedrock::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_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORYVK_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_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORYVK_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_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORY
pub fn enumerate_extension_properties(
layer_name: Option<&str>
) -> Result<Vec<VkExtensionProperties>>[src]
layer_name: Option<&str>
) -> Result<Vec<VkExtensionProperties>>
Returns up to all of global extension properties
Failures
On failure, this command returns
VK_ERROR_OUT_OF_HOST_MEMORYVK_ERROR_OUT_OF_DEVICE_MEMORYVK_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]
&self,
flags: VkDebugReportFlagsEXT,
object_type: DebugReportObjectType,
object: u64,
location: size_t,
message_count: i32,
layer_prefix: &str,
message: &str
)
Inject its own messages into the debug stream
Trait Implementations
impl Clone for Instance[src]
impl VkHandle for Instance[src]
type Handle = VkInstance
fn native_ptr(&self) -> VkInstance[src]
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]
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,
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> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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.
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>,