pub struct VulkanInstance {
pub device: Device,
pub instance: Instance,
pub physical_device: PhysicalDevice,
pub get_instance_proc_addr: Option<PFN_vkGetInstanceProcAddr>,
pub queue: Option<Queue>,
}Expand description
A collection of handles needed to access the Vulkan instance.
Fields§
§device: DeviceA VkDevice handle.
instance: InstanceA VkInstance handle.
physical_device: PhysicalDeviceA VkPhysicalDevice handle.
get_instance_proc_addr: Option<PFN_vkGetInstanceProcAddr>A function pointer to the Vulkan library entry point.
If this is None, FilterChainError::HandleIsNull will be returned.
queue: Option<Queue>The graphics queue to use to submit commands. If this is None,
a queue will be chosen.
Trait Implementations§
Source§impl Clone for VulkanInstance
impl Clone for VulkanInstance
Source§fn clone(&self) -> VulkanInstance
fn clone(&self) -> VulkanInstance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl TryFrom<VulkanInstance> for VulkanObjects
impl TryFrom<VulkanInstance> for VulkanObjects
Source§type Error = FilterChainError
type Error = FilterChainError
The type returned in the event of a conversion error.
Source§fn try_from(vulkan: VulkanInstance) -> Result<Self, FilterChainError>
fn try_from(vulkan: VulkanInstance) -> Result<Self, FilterChainError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for VulkanInstance
impl RefUnwindSafe for VulkanInstance
impl Send for VulkanInstance
impl Sync for VulkanInstance
impl Unpin for VulkanInstance
impl UnwindSafe for VulkanInstance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more