Struct wgpu_core::hub::Hubs

source ·
pub struct Hubs<F: GlobalIdentityHandlerFactory> {
    pub(crate) vulkan: Hub<Vulkan, F>,
}

Fields§

§vulkan: Hub<Vulkan, F>

Implementations§

source§

impl<F: GlobalIdentityHandlerFactory> Hubs<F>

source

pub(crate) fn new(factory: &F) -> Self

Auto Trait Implementations§

§

impl<F> !RefUnwindSafe for Hubs<F>

§

impl<F> Send for Hubs<F>where <F as IdentityHandlerFactory<Id<RenderPipeline<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<CommandBuffer<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<BindGroup<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<Texture<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<TextureView<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<Sampler<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<QuerySet<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<Device<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<Adapter<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<RenderBundle<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<Buffer<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<StagingBuffer<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<PipelineLayout<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<BindGroupLayout<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<ShaderModule<Api>>>>::Filter: Send, <F as IdentityHandlerFactory<Id<ComputePipeline<Api>>>>::Filter: Send,

§

impl<F> Sync for Hubs<F>where <F as IdentityHandlerFactory<Id<RenderPipeline<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<CommandBuffer<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<BindGroup<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<Texture<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<TextureView<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<Sampler<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<QuerySet<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<Device<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<Adapter<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<RenderBundle<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<Buffer<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<StagingBuffer<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<PipelineLayout<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<BindGroupLayout<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<ShaderModule<Api>>>>::Filter: Sync, <F as IdentityHandlerFactory<Id<ComputePipeline<Api>>>>::Filter: Sync,

§

impl<F> Unpin for Hubs<F>where <F as IdentityHandlerFactory<Id<RenderPipeline<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<CommandBuffer<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<BindGroup<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<Texture<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<TextureView<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<Sampler<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<QuerySet<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<Device<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<Adapter<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<RenderBundle<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<Buffer<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<StagingBuffer<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<PipelineLayout<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<BindGroupLayout<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<ShaderModule<Api>>>>::Filter: Unpin, <F as IdentityHandlerFactory<Id<ComputePipeline<Api>>>>::Filter: Unpin,

§

impl<F> !UnwindSafe for Hubs<F>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WasmNotSend for Twhere T: Send,

source§

impl<T> WasmNotSync for Twhere T: Sync,