pub struct VulkanBackend { /* private fields */ }Expand description
Vulkan backend for GPU compute
Implementations§
Trait Implementations§
Source§impl Backend for VulkanBackend
impl Backend for VulkanBackend
Source§fn capabilities(&self) -> &BackendCapabilities
fn capabilities(&self) -> &BackendCapabilities
Get backend capabilities
Source§fn is_available() -> bool
fn is_available() -> bool
Check if this backend is available on the current system
Source§fn initialize() -> Result<Self>
fn initialize() -> Result<Self>
Initialize the backend
Source§fn backend_type(&self) -> BackendType
fn backend_type(&self) -> BackendType
Get backend type
Source§impl Default for VulkanBackend
impl Default for VulkanBackend
Source§fn default() -> Self
fn default() -> Self
Creates a Vulkan backend with default settings.
§Panics
Panics if no Vulkan-capable GPU device is available. Prefer
VulkanBackend::new() for fallible construction.
Auto Trait Implementations§
impl !RefUnwindSafe for VulkanBackend
impl !UnwindSafe for VulkanBackend
impl Freeze for VulkanBackend
impl Send for VulkanBackend
impl Sync for VulkanBackend
impl Unpin for VulkanBackend
impl UnsafeUnpin for VulkanBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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