Struct webgpu::identity::IdentityRecycler
source · pub struct IdentityRecycler {
sender: IpcSender<WebGPUMsg>,
self_sender: IpcSender<(Option<ErrorScopeId>, WebGPURequest)>,
}
Fields§
§sender: IpcSender<WebGPUMsg>
§self_sender: IpcSender<(Option<ErrorScopeId>, WebGPURequest)>
Trait Implementations§
source§impl Debug for IdentityRecycler
impl Debug for IdentityRecycler
source§impl IdentityHandler<Id<Adapter<Api>>> for IdentityRecycler
impl IdentityHandler<Id<Adapter<Api>>> for IdentityRecycler
source§impl IdentityHandler<Id<BindGroup<Api>>> for IdentityRecycler
impl IdentityHandler<Id<BindGroup<Api>>> for IdentityRecycler
source§impl IdentityHandler<Id<BindGroupLayout<Api>>> for IdentityRecycler
impl IdentityHandler<Id<BindGroupLayout<Api>>> for IdentityRecycler
§type Input = Id<BindGroupLayout<Api>>
type Input = Id<BindGroupLayout<Api>>
The type of proto-id consumed by this filter, to produce a true id.
source§fn process(&self, id: BindGroupLayoutId, _backend: Backend) -> Self::Input
fn process(&self, id: BindGroupLayoutId, _backend: Backend) -> Self::Input
Given a proto-id value
id
, return a true id for backend
.source§fn free(&self, id: BindGroupLayoutId)
fn free(&self, id: BindGroupLayoutId)
Free the true id
id
.source§impl IdentityHandler<Id<Buffer<Api>>> for IdentityRecycler
impl IdentityHandler<Id<Buffer<Api>>> for IdentityRecycler
source§impl IdentityHandler<Id<CommandBuffer<Api>>> for IdentityRecycler
impl IdentityHandler<Id<CommandBuffer<Api>>> for IdentityRecycler
§type Input = Id<CommandBuffer<Api>>
type Input = Id<CommandBuffer<Api>>
The type of proto-id consumed by this filter, to produce a true id.
source§fn process(&self, id: CommandBufferId, _backend: Backend) -> Self::Input
fn process(&self, id: CommandBufferId, _backend: Backend) -> Self::Input
Given a proto-id value
id
, return a true id for backend
.source§fn free(&self, id: CommandBufferId)
fn free(&self, id: CommandBufferId)
Free the true id
id
.source§impl IdentityHandler<Id<ComputePipeline<Api>>> for IdentityRecycler
impl IdentityHandler<Id<ComputePipeline<Api>>> for IdentityRecycler
§type Input = Id<ComputePipeline<Api>>
type Input = Id<ComputePipeline<Api>>
The type of proto-id consumed by this filter, to produce a true id.
source§fn process(&self, id: ComputePipelineId, _backend: Backend) -> Self::Input
fn process(&self, id: ComputePipelineId, _backend: Backend) -> Self::Input
Given a proto-id value
id
, return a true id for backend
.source§fn free(&self, id: ComputePipelineId)
fn free(&self, id: ComputePipelineId)
Free the true id
id
.source§impl IdentityHandler<Id<Device<Api>>> for IdentityRecycler
impl IdentityHandler<Id<Device<Api>>> for IdentityRecycler
source§impl IdentityHandler<Id<PipelineLayout<Api>>> for IdentityRecycler
impl IdentityHandler<Id<PipelineLayout<Api>>> for IdentityRecycler
§type Input = Id<PipelineLayout<Api>>
type Input = Id<PipelineLayout<Api>>
The type of proto-id consumed by this filter, to produce a true id.
source§fn process(&self, id: PipelineLayoutId, _backend: Backend) -> Self::Input
fn process(&self, id: PipelineLayoutId, _backend: Backend) -> Self::Input
Given a proto-id value
id
, return a true id for backend
.source§fn free(&self, id: PipelineLayoutId)
fn free(&self, id: PipelineLayoutId)
Free the true id
id
.source§impl IdentityHandler<Id<QuerySet<Api>>> for IdentityRecycler
impl IdentityHandler<Id<QuerySet<Api>>> for IdentityRecycler
source§impl IdentityHandler<Id<RenderBundle<Api>>> for IdentityRecycler
impl IdentityHandler<Id<RenderBundle<Api>>> for IdentityRecycler
§type Input = Id<RenderBundle<Api>>
type Input = Id<RenderBundle<Api>>
The type of proto-id consumed by this filter, to produce a true id.
source§fn process(&self, id: RenderBundleId, _backend: Backend) -> Self::Input
fn process(&self, id: RenderBundleId, _backend: Backend) -> Self::Input
Given a proto-id value
id
, return a true id for backend
.source§fn free(&self, id: RenderBundleId)
fn free(&self, id: RenderBundleId)
Free the true id
id
.source§impl IdentityHandler<Id<RenderPipeline<Api>>> for IdentityRecycler
impl IdentityHandler<Id<RenderPipeline<Api>>> for IdentityRecycler
§type Input = Id<RenderPipeline<Api>>
type Input = Id<RenderPipeline<Api>>
The type of proto-id consumed by this filter, to produce a true id.
source§fn process(&self, id: RenderPipelineId, _backend: Backend) -> Self::Input
fn process(&self, id: RenderPipelineId, _backend: Backend) -> Self::Input
Given a proto-id value
id
, return a true id for backend
.source§fn free(&self, id: RenderPipelineId)
fn free(&self, id: RenderPipelineId)
Free the true id
id
.source§impl IdentityHandler<Id<Sampler<Api>>> for IdentityRecycler
impl IdentityHandler<Id<Sampler<Api>>> for IdentityRecycler
source§impl IdentityHandler<Id<ShaderModule<Api>>> for IdentityRecycler
impl IdentityHandler<Id<ShaderModule<Api>>> for IdentityRecycler
§type Input = Id<ShaderModule<Api>>
type Input = Id<ShaderModule<Api>>
The type of proto-id consumed by this filter, to produce a true id.
source§fn process(&self, id: ShaderModuleId, _backend: Backend) -> Self::Input
fn process(&self, id: ShaderModuleId, _backend: Backend) -> Self::Input
Given a proto-id value
id
, return a true id for backend
.source§fn free(&self, id: ShaderModuleId)
fn free(&self, id: ShaderModuleId)
Free the true id
id
.source§impl IdentityHandler<Id<StagingBuffer<Api>>> for IdentityRecycler
impl IdentityHandler<Id<StagingBuffer<Api>>> for IdentityRecycler
§type Input = Id<StagingBuffer<Api>>
type Input = Id<StagingBuffer<Api>>
The type of proto-id consumed by this filter, to produce a true id.
source§fn process(&self, id: StagingBufferId, _backend: Backend) -> Self::Input
fn process(&self, id: StagingBufferId, _backend: Backend) -> Self::Input
Given a proto-id value
id
, return a true id for backend
.source§fn free(&self, id: StagingBufferId)
fn free(&self, id: StagingBufferId)
Free the true id
id
.source§impl IdentityHandler<Id<Surface>> for IdentityRecycler
impl IdentityHandler<Id<Surface>> for IdentityRecycler
source§impl IdentityHandler<Id<Texture<Api>>> for IdentityRecycler
impl IdentityHandler<Id<Texture<Api>>> for IdentityRecycler
source§impl IdentityHandler<Id<TextureView<Api>>> for IdentityRecycler
impl IdentityHandler<Id<TextureView<Api>>> for IdentityRecycler
§type Input = Id<TextureView<Api>>
type Input = Id<TextureView<Api>>
The type of proto-id consumed by this filter, to produce a true id.
source§fn process(&self, id: TextureViewId, _backend: Backend) -> Self::Input
fn process(&self, id: TextureViewId, _backend: Backend) -> Self::Input
Given a proto-id value
id
, return a true id for backend
.source§fn free(&self, id: TextureViewId)
fn free(&self, id: TextureViewId)
Free the true id
id
.Auto Trait Implementations§
impl !RefUnwindSafe for IdentityRecycler
impl Send for IdentityRecycler
impl !Sync for IdentityRecycler
impl Unpin for IdentityRecycler
impl !UnwindSafe for IdentityRecycler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more