pub struct Hub<A: HalApi, F: GlobalIdentityHandlerFactory> {Show 16 fields
pub adapters: Registry<Adapter<A>, AdapterId, F>,
pub devices: Registry<Device<A>, DeviceId, F>,
pub pipeline_layouts: Registry<PipelineLayout<A>, PipelineLayoutId, F>,
pub shader_modules: Registry<ShaderModule<A>, ShaderModuleId, F>,
pub bind_group_layouts: Registry<BindGroupLayout<A>, BindGroupLayoutId, F>,
pub bind_groups: Registry<BindGroup<A>, BindGroupId, F>,
pub command_buffers: Registry<CommandBuffer<A>, CommandBufferId, F>,
pub render_bundles: Registry<RenderBundle<A>, RenderBundleId, F>,
pub render_pipelines: Registry<RenderPipeline<A>, RenderPipelineId, F>,
pub compute_pipelines: Registry<ComputePipeline<A>, ComputePipelineId, F>,
pub query_sets: Registry<QuerySet<A>, QuerySetId, F>,
pub buffers: Registry<Buffer<A>, BufferId, F>,
pub staging_buffers: Registry<StagingBuffer<A>, StagingBufferId, F>,
pub textures: Registry<Texture<A>, TextureId, F>,
pub texture_views: Registry<TextureView<A>, TextureViewId, F>,
pub samplers: Registry<Sampler<A>, SamplerId, F>,
}
Fields
adapters: Registry<Adapter<A>, AdapterId, F>
devices: Registry<Device<A>, DeviceId, F>
pipeline_layouts: Registry<PipelineLayout<A>, PipelineLayoutId, F>
shader_modules: Registry<ShaderModule<A>, ShaderModuleId, F>
bind_group_layouts: Registry<BindGroupLayout<A>, BindGroupLayoutId, F>
bind_groups: Registry<BindGroup<A>, BindGroupId, F>
command_buffers: Registry<CommandBuffer<A>, CommandBufferId, F>
render_bundles: Registry<RenderBundle<A>, RenderBundleId, F>
render_pipelines: Registry<RenderPipeline<A>, RenderPipelineId, F>
compute_pipelines: Registry<ComputePipeline<A>, ComputePipelineId, F>
query_sets: Registry<QuerySet<A>, QuerySetId, F>
buffers: Registry<Buffer<A>, BufferId, F>
staging_buffers: Registry<StagingBuffer<A>, StagingBufferId, F>
textures: Registry<Texture<A>, TextureId, F>
texture_views: Registry<TextureView<A>, TextureViewId, F>
samplers: Registry<Sampler<A>, SamplerId, F>
Implementations
sourceimpl<A: HalApi, F: GlobalIdentityHandlerFactory> Hub<A, F>
impl<A: HalApi, F: GlobalIdentityHandlerFactory> Hub<A, F>
pub fn generate_report(&self) -> HubReport
Auto Trait Implementations
impl<A, F> !RefUnwindSafe for Hub<A, F>
impl<A, F> Send for Hub<A, F> where
A: Send,
<F as IdentityHandlerFactory<Id<BindGroup<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<CommandBuffer<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<Device<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<Adapter<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<Buffer<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<StagingBuffer<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<RenderBundle<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<BindGroupLayout<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<PipelineLayout<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<ShaderModule<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<ComputePipeline<Api>>>>::Filter: Send,
<F as IdentityHandlerFactory<Id<RenderPipeline<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,
impl<A, F> Sync for Hub<A, F> where
A: Send + Sync,
<F as IdentityHandlerFactory<Id<BindGroup<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<CommandBuffer<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<Device<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<Adapter<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<Buffer<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<StagingBuffer<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<RenderBundle<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<BindGroupLayout<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<PipelineLayout<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<ShaderModule<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<ComputePipeline<Api>>>>::Filter: Sync,
<F as IdentityHandlerFactory<Id<RenderPipeline<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,
impl<A, F> Unpin for Hub<A, F> where
A: Unpin,
<A as Api>::Adapter: Unpin,
<A as Api>::BindGroup: Unpin,
<A as Api>::BindGroupLayout: Unpin,
<A as Api>::Buffer: Unpin,
<A as Api>::CommandBuffer: Unpin,
<A as Api>::CommandEncoder: Unpin,
<A as Api>::ComputePipeline: Unpin,
<A as Api>::Device: Unpin,
<A as Api>::Fence: Unpin,
<F as IdentityHandlerFactory<Id<BindGroup<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<CommandBuffer<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<Device<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<Adapter<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<Buffer<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<StagingBuffer<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<RenderBundle<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<BindGroupLayout<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<PipelineLayout<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<ShaderModule<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<ComputePipeline<Api>>>>::Filter: Unpin,
<F as IdentityHandlerFactory<Id<RenderPipeline<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,
<A as Api>::PipelineLayout: Unpin,
<A as Api>::QuerySet: Unpin,
<A as Api>::Queue: Unpin,
<A as Api>::RenderPipeline: Unpin,
<A as Api>::Sampler: Unpin,
<A as Api>::ShaderModule: Unpin,
<A as Api>::SurfaceTexture: Unpin,
<A as Api>::Texture: Unpin,
<A as Api>::TextureView: Unpin,
impl<A, F> !UnwindSafe for Hub<A, F>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more