pub struct VulkanObjects {
pub device: Arc<Device>,
pub alloc: Arc<Mutex<Allocator>>,
pub queue: Queue,
}Expand description
A Vulkan device and metadata that is required by the shader runtime.
Fields§
§device: Arc<Device>The handle to the initialized ash::Device
alloc: Arc<Mutex<Allocator>>The instance of the gpu-allocator to use.
queue: QueueThe graphics queue to do work on.
Trait Implementations§
Source§impl TryFrom<(PhysicalDevice, Instance, Device)> for VulkanObjects
impl TryFrom<(PhysicalDevice, Instance, Device)> for VulkanObjects
Source§impl TryFrom<(PhysicalDevice, Instance, Device, Queue)> for VulkanObjects
impl TryFrom<(PhysicalDevice, Instance, Device, Queue)> for VulkanObjects
Source§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 VulkanObjects
impl !RefUnwindSafe for VulkanObjects
impl Send for VulkanObjects
impl Sync for VulkanObjects
impl Unpin for VulkanObjects
impl !UnwindSafe for VulkanObjects
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> 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