pub struct VulkanInstance { /* private fields */ }👎Deprecated since 0.3.1:
This crate has been renamed. Please migrate to gpu-video.
Expand description
Context for all encoders and decoders. Also contains a wgpu::Instance.
Implementations§
Source§impl VulkanInstance
impl VulkanInstance
pub fn new() -> Result<Arc<Self>, VulkanInitError>
👎Deprecated since 0.3.1:
This crate has been renamed. Please migrate to gpu-video.
pub fn new_from( vulkan_library_path: impl AsRef<OsStr>, ) -> Result<Arc<Self>, VulkanInitError>
👎Deprecated since 0.3.1:
This crate has been renamed. Please migrate to gpu-video.
pub fn wgpu_instance(&self) -> Instance
👎Deprecated since 0.3.1:
This crate has been renamed. Please migrate to gpu-video.
Sourcepub fn create_adapter<'a>(
&'a self,
descriptor: &VulkanAdapterDescriptor<'_>,
) -> Result<VulkanAdapter<'a>, VulkanInitError>
👎Deprecated since 0.3.1: This crate has been renamed. Please migrate to gpu-video.
pub fn create_adapter<'a>( &'a self, descriptor: &VulkanAdapterDescriptor<'_>, ) -> Result<VulkanAdapter<'a>, VulkanInitError>
This crate has been renamed. Please migrate to gpu-video.
Creates an adapter that meets requirements specified in the descriptor.
Sourcepub fn iter_adapters<'a>(
&'a self,
) -> Result<impl Iterator<Item = VulkanAdapter<'a>> + 'a, VulkanInitError>
👎Deprecated since 0.3.1: This crate has been renamed. Please migrate to gpu-video.
pub fn iter_adapters<'a>( &'a self, ) -> Result<impl Iterator<Item = VulkanAdapter<'a>> + 'a, VulkanInitError>
This crate has been renamed. Please migrate to gpu-video.
Iterator over all available VulkanAdapters that support at least decoding or encoding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VulkanInstance
impl !RefUnwindSafe for VulkanInstance
impl Send for VulkanInstance
impl Sync for VulkanInstance
impl Unpin for VulkanInstance
impl UnsafeUnpin 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