Struct Hub

Source
pub struct Hub<B: Backend, F: GlobalIdentityHandlerFactory> {
Show 15 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 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§

Source§

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

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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

§

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

§

impl<B, F> Send for Hub<B, F>

§

impl<B, F> Sync for Hub<B, F>

§

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

§

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

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more