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>,
}
§command_buffers: Registry<CommandBuffer<A>, CommandBufferId, F>
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.