[][src]Struct wgpu_core::hub::Hub

pub struct Hub<B: Backend, F: GlobalIdentityHandlerFactory> {
    pub adapters: Registry<Adapter<B>, AdapterId, F>,
    pub devices: Registry<Device<B>, DeviceId, F>,
    pub swap_chains: Registry<SwapChain<B>, SwapChainId, F>,
    pub pipeline_layouts: Registry<PipelineLayout<B>, PipelineLayoutId, F>,
    pub shader_modules: Registry<ShaderModule<B>, ShaderModuleId, F>,
    pub bind_group_layouts: Registry<BindGroupLayout<B>, BindGroupLayoutId, F>,
    pub bind_groups: Registry<BindGroup<B>, BindGroupId, F>,
    pub command_buffers: Registry<CommandBuffer<B>, CommandBufferId, F>,
    pub render_bundles: Registry<RenderBundle, RenderBundleId, F>,
    pub render_pipelines: Registry<RenderPipeline<B>, RenderPipelineId, F>,
    pub compute_pipelines: Registry<ComputePipeline<B>, ComputePipelineId, F>,
    pub buffers: Registry<Buffer<B>, BufferId, F>,
    pub textures: Registry<Texture<B>, TextureId, F>,
    pub texture_views: Registry<TextureView<B>, TextureViewId, F>,
    pub samplers: Registry<Sampler<B>, SamplerId, F>,
}

Fields

adapters: Registry<Adapter<B>, AdapterId, F>devices: Registry<Device<B>, DeviceId, F>swap_chains: Registry<SwapChain<B>, SwapChainId, F>pipeline_layouts: Registry<PipelineLayout<B>, PipelineLayoutId, F>shader_modules: Registry<ShaderModule<B>, ShaderModuleId, F>bind_group_layouts: Registry<BindGroupLayout<B>, BindGroupLayoutId, F>bind_groups: Registry<BindGroup<B>, BindGroupId, F>command_buffers: Registry<CommandBuffer<B>, CommandBufferId, F>render_bundles: Registry<RenderBundle, RenderBundleId, F>render_pipelines: Registry<RenderPipeline<B>, RenderPipelineId, F>compute_pipelines: Registry<ComputePipeline<B>, ComputePipelineId, F>buffers: Registry<Buffer<B>, BufferId, F>textures: Registry<Texture<B>, TextureId, F>texture_views: Registry<TextureView<B>, TextureViewId, F>samplers: Registry<Sampler<B>, SamplerId, F>

Trait Implementations

impl<B: Debug + Backend, F: Debug + GlobalIdentityHandlerFactory> Debug for Hub<B, F>[src]

Auto Trait Implementations

impl<B, F> !RefUnwindSafe for Hub<B, F>

impl<B, F> Send for Hub<B, F> where
    <B as Backend>::Buffer: Send,
    <B as Backend>::CommandBuffer: Send,
    <B as Backend>::CommandPool: Send,
    <B as Backend>::CommandQueue: Send,
    <B as Backend>::ComputePipeline: Send,
    <B as Backend>::DescriptorPool: Send,
    <B as Backend>::DescriptorSet: Send,
    <B as Backend>::DescriptorSetLayout: Send,
    <B as Backend>::Device: Send,
    <B as Backend>::Fence: Send,
    <F as IdentityHandlerFactory<Id<Adapter<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<BindGroup<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<BindGroupLayout<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<Buffer<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<CommandBuffer<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<ComputePipeline<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<Device<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<PipelineLayout<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<RenderBundle>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<RenderPipeline<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<Sampler<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<ShaderModule<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<SwapChain<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<Texture<Backend>>>>::Filter: Send,
    <F as IdentityHandlerFactory<Id<TextureView<Backend>>>>::Filter: Send,
    <B as Backend>::Framebuffer: Send,
    <B as Backend>::GraphicsPipeline: Send,
    <B as Backend>::Image: Send,
    <B as Backend>::ImageView: Send,
    <B as Backend>::PhysicalDevice: Send,
    <B as Backend>::PipelineLayout: Send,
    <B as Backend>::QueueFamily: Send,
    <B as Backend>::RenderPass: Send,
    <B as Backend>::Sampler: Send,
    <B as Backend>::Semaphore: Send,
    <B as Backend>::ShaderModule: Send,
    <<B as Backend>::Surface as PresentationSurface<B>>::SwapchainImage: Send

impl<B, F> Sync for Hub<B, F> where
    <B as Backend>::Buffer: Send + Sync,
    <B as Backend>::CommandBuffer: Send + Sync,
    <B as Backend>::CommandPool: Send,
    <B as Backend>::CommandQueue: Send + Sync,
    <B as Backend>::ComputePipeline: Send + Sync,
    <B as Backend>::DescriptorPool: Send,
    <B as Backend>::DescriptorSet: Send + Sync,
    <B as Backend>::DescriptorSetLayout: Send + Sync,
    <B as Backend>::Device: Send + Sync,
    <B as Backend>::Fence: Send,
    <F as IdentityHandlerFactory<Id<Adapter<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<BindGroup<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<BindGroupLayout<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<Buffer<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<CommandBuffer<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<ComputePipeline<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<Device<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<PipelineLayout<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<RenderBundle>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<RenderPipeline<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<Sampler<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<ShaderModule<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<SwapChain<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<Texture<Backend>>>>::Filter: Sync,
    <F as IdentityHandlerFactory<Id<TextureView<Backend>>>>::Filter: Sync,
    <B as Backend>::Framebuffer: Send + Sync,
    <B as Backend>::GraphicsPipeline: Send + Sync,
    <B as Backend>::Image: Send + Sync,
    <B as Backend>::ImageView: Send + Sync,
    <B as Backend>::PhysicalDevice: Send + Sync,
    <B as Backend>::PipelineLayout: Send + Sync,
    <B as Backend>::QueueFamily: Send + Sync,
    <B as Backend>::RenderPass: Send,
    <B as Backend>::Sampler: Send + Sync,
    <B as Backend>::Semaphore: Send + Sync,
    <B as Backend>::ShaderModule: Send + Sync,
    <<B as Backend>::Surface as PresentationSurface<B>>::SwapchainImage: Send + Sync

impl<B, F> Unpin for Hub<B, F> where
    <B as Backend>::Buffer: Unpin,
    <B as Backend>::CommandBuffer: Unpin,
    <B as Backend>::CommandPool: Unpin,
    <B as Backend>::CommandQueue: Unpin,
    <B as Backend>::ComputePipeline: Unpin,
    <B as Backend>::DescriptorPool: Unpin,
    <B as Backend>::DescriptorSet: Unpin,
    <B as Backend>::DescriptorSetLayout: Unpin,
    <B as Backend>::Device: Unpin,
    <B as Backend>::Fence: Unpin,
    <F as IdentityHandlerFactory<Id<Adapter<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<BindGroup<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<BindGroupLayout<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<Buffer<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<CommandBuffer<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<ComputePipeline<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<Device<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<PipelineLayout<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<RenderBundle>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<RenderPipeline<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<Sampler<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<ShaderModule<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<SwapChain<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<Texture<Backend>>>>::Filter: Unpin,
    <F as IdentityHandlerFactory<Id<TextureView<Backend>>>>::Filter: Unpin,
    <B as Backend>::Framebuffer: Unpin,
    <B as Backend>::GraphicsPipeline: Unpin,
    <B as Backend>::Image: Unpin,
    <B as Backend>::ImageView: Unpin,
    <B as Backend>::Memory: Unpin,
    <B as Backend>::PhysicalDevice: Unpin,
    <B as Backend>::PipelineLayout: Unpin,
    <B as Backend>::QueueFamily: Unpin,
    <B as Backend>::RenderPass: Unpin,
    <B as Backend>::Sampler: Unpin,
    <B as Backend>::Semaphore: Unpin,
    <B as Backend>::ShaderModule: Unpin,
    <<B as Backend>::Surface as PresentationSurface<B>>::SwapchainImage: Unpin

impl<B, F> UnwindSafe for Hub<B, F> where
    <B as Backend>::Buffer: UnwindSafe,
    <B as Backend>::CommandBuffer: UnwindSafe,
    <B as Backend>::CommandPool: UnwindSafe,
    <B as Backend>::CommandQueue: UnwindSafe,
    <B as Backend>::ComputePipeline: UnwindSafe,
    <B as Backend>::DescriptorPool: UnwindSafe,
    <B as Backend>::DescriptorSet: UnwindSafe,
    <B as Backend>::DescriptorSetLayout: UnwindSafe,
    <B as Backend>::Device: UnwindSafe,
    <B as Backend>::Fence: UnwindSafe,
    <F as IdentityHandlerFactory<Id<Adapter<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<BindGroup<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<BindGroupLayout<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<Buffer<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<CommandBuffer<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<ComputePipeline<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<Device<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<PipelineLayout<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<RenderBundle>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<RenderPipeline<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<Sampler<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<ShaderModule<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<SwapChain<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<Texture<Backend>>>>::Filter: UnwindSafe,
    <F as IdentityHandlerFactory<Id<TextureView<Backend>>>>::Filter: UnwindSafe,
    <B as Backend>::Framebuffer: UnwindSafe,
    <B as Backend>::GraphicsPipeline: UnwindSafe,
    <B as Backend>::Image: UnwindSafe,
    <B as Backend>::ImageView: UnwindSafe,
    <B as Backend>::Memory: RefUnwindSafe + UnwindSafe,
    <B as Backend>::PhysicalDevice: UnwindSafe,
    <B as Backend>::PipelineLayout: UnwindSafe,
    <B as Backend>::QueueFamily: UnwindSafe,
    <B as Backend>::RenderPass: UnwindSafe,
    <B as Backend>::Sampler: UnwindSafe,
    <B as Backend>::Semaphore: UnwindSafe,
    <B as Backend>::ShaderModule: UnwindSafe,
    <<B as Backend>::Surface as PresentationSurface<B>>::SwapchainImage: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.