pub struct VulkanContextDescriptor {
pub instance: *mut c_void,
pub physical_device: *mut c_void,
pub device: *mut c_void,
pub graphics_queue: *mut c_void,
pub graphics_queue_family_index: u32,
pub get_instance_proc_addr: *mut c_void,
pub get_device_proc_addr: *mut c_void,
}Expand description
The Vulkan device and queue that a render session uses.
Keep these objects alive until a detach or release of the session completes, or an abandon of it returns.
See mln_vulkan_context_descriptor in the
C API reference.
Fields§
§instance: *mut c_voidA VkInstance.
physical_device: *mut c_voidA VkPhysicalDevice.
device: *mut c_voidA VkDevice.
graphics_queue: *mut c_voidA VkQueue from graphics_queue_family_index that supports graphics.
If you submit to it too, set RenderSessionAttachOptions::queue_lock.
graphics_queue_family_index: u32§get_instance_proc_addr: *mut c_voidYour vkGetInstanceProcAddr, or null to use the Vulkan loader’s.
get_device_proc_addr: *mut c_voidYour vkGetDeviceProcAddr, or null to look it up from the instance.
Implementations§
Trait Implementations§
Source§impl Clone for VulkanContextDescriptor
impl Clone for VulkanContextDescriptor
Source§fn clone(&self) -> VulkanContextDescriptor
fn clone(&self) -> VulkanContextDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VulkanContextDescriptor
Source§impl Debug for VulkanContextDescriptor
impl Debug for VulkanContextDescriptor
Source§impl PartialEq for VulkanContextDescriptor
impl PartialEq for VulkanContextDescriptor
impl StructuralPartialEq for VulkanContextDescriptor
Auto Trait Implementations§
impl !Send for VulkanContextDescriptor
impl !Sync for VulkanContextDescriptor
impl Freeze for VulkanContextDescriptor
impl RefUnwindSafe for VulkanContextDescriptor
impl Unpin for VulkanContextDescriptor
impl UnsafeUnpin for VulkanContextDescriptor
impl UnwindSafe for VulkanContextDescriptor
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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