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

pub struct Hub<B: Backend, F: GlobalIdentityHandlerFactory> {
Show fields 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 query_sets: Registry<QuerySet<B>, QuerySetId, 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>query_sets: Registry<QuerySet<B>, QuerySetId, 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]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

impl<B, F> Send for Hub<B, F> where
    <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<QuerySet<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

impl<B, F> Sync for Hub<B, F> where
    <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<QuerySet<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

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>::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<QuerySet<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>::QueryPool: Unpin,
    <B as Backend>::Queue: 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>

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Downcast<T> for T

pub fn downcast(&self) -> &T

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

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

Performs the conversion.

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.

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

Performs the conversion.

impl<T> Upcast<T> for T

pub fn upcast(&self) -> Option<&T>