pub trait HalInstance:
Send
+ Sync
+ 'static {
type Adapter: HalAdapter;
type Device: HalDevice;
// Required methods
fn enumerate_adapters(&self) -> Result<Vec<Self::Adapter>, HalError>;
fn create_device(
&self,
adapter: &Self::Adapter,
) -> Result<Self::Device, HalError>;
}Required Associated Types§
Required Methods§
fn enumerate_adapters(&self) -> Result<Vec<Self::Adapter>, HalError>
fn create_device( &self, adapter: &Self::Adapter, ) -> Result<Self::Device, HalError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl HalInstance for VulkanInstance
Available on crate feature vulkan only.
impl HalInstance for VulkanInstance
Available on crate feature
vulkan only.