Struct Player

Source
pub struct Player {
Show 16 fields pub(crate) pipeline_layouts: HashMap<PointerId<PipelineLayout>, Arc<PipelineLayout>>, pub(crate) shader_modules: HashMap<PointerId<ShaderModule>, Arc<ShaderModule>>, pub(crate) bind_group_layouts: HashMap<PointerId<BindGroupLayout>, Arc<BindGroupLayout>>, pub(crate) bind_groups: HashMap<PointerId<BindGroup>, Arc<BindGroup>>, pub(crate) render_bundles: HashMap<PointerId<RenderBundle>, Arc<RenderBundle>>, pub(crate) render_pipelines: HashMap<PointerId<RenderPipeline>, Arc<RenderPipeline>>, pub(crate) compute_pipelines: HashMap<PointerId<ComputePipeline>, Arc<ComputePipeline>>, pub(crate) pipeline_caches: HashMap<PointerId<PipelineCache>, Arc<PipelineCache>>, pub(crate) query_sets: HashMap<PointerId<QuerySet>, Arc<QuerySet>>, pub(crate) buffers: HashMap<PointerId<Buffer>, Arc<Buffer>>, pub(crate) textures: HashMap<PointerId<Texture>, Arc<Texture>>, pub(crate) texture_views: HashMap<PointerId<TextureView>, Arc<TextureView>>, pub(crate) external_textures: HashMap<PointerId<ExternalTexture>, Arc<ExternalTexture>>, pub(crate) samplers: HashMap<PointerId<Sampler>, Arc<Sampler>>, pub(crate) blas_s: HashMap<PointerId<Blas>, Arc<Blas>>, pub(crate) tlas_s: HashMap<PointerId<Tlas>, Arc<Tlas>>,
}

Fields§

§pipeline_layouts: HashMap<PointerId<PipelineLayout>, Arc<PipelineLayout>>§shader_modules: HashMap<PointerId<ShaderModule>, Arc<ShaderModule>>§bind_group_layouts: HashMap<PointerId<BindGroupLayout>, Arc<BindGroupLayout>>§bind_groups: HashMap<PointerId<BindGroup>, Arc<BindGroup>>§render_bundles: HashMap<PointerId<RenderBundle>, Arc<RenderBundle>>§render_pipelines: HashMap<PointerId<RenderPipeline>, Arc<RenderPipeline>>§compute_pipelines: HashMap<PointerId<ComputePipeline>, Arc<ComputePipeline>>§pipeline_caches: HashMap<PointerId<PipelineCache>, Arc<PipelineCache>>§query_sets: HashMap<PointerId<QuerySet>, Arc<QuerySet>>§buffers: HashMap<PointerId<Buffer>, Arc<Buffer>>§textures: HashMap<PointerId<Texture>, Arc<Texture>>§texture_views: HashMap<PointerId<TextureView>, Arc<TextureView>>§external_textures: HashMap<PointerId<ExternalTexture>, Arc<ExternalTexture>>§samplers: HashMap<PointerId<Sampler>, Arc<Sampler>>§blas_s: HashMap<PointerId<Blas>, Arc<Blas>>§tlas_s: HashMap<PointerId<Tlas>, Arc<Tlas>>

Implementations§

Source§

impl Player

Source

pub fn process( &mut self, device: &Arc<Device>, queue: &Arc<Queue>, action: Action<'_, PointerReferences>, dir: &Path, )

Source

pub fn resolve_buffer_id(&self, id: PointerId<Buffer>) -> Arc<Buffer>

Source

pub(crate) fn resolve_texture_id(&self, id: PointerId<Texture>) -> Arc<Texture>

Source

pub(crate) fn resolve_texture_view_id( &self, id: PointerId<TextureView>, ) -> Arc<TextureView>

Source

pub(crate) fn resolve_external_texture_id( &self, id: PointerId<ExternalTexture>, ) -> Arc<ExternalTexture>

Source

pub(crate) fn resolve_sampler_id(&self, id: PointerId<Sampler>) -> Arc<Sampler>

Source

pub(crate) fn resolve_bind_group_layout_id( &self, id: PointerId<BindGroupLayout>, ) -> Arc<BindGroupLayout>

Source

pub(crate) fn resolve_bind_group_id( &self, id: PointerId<BindGroup>, ) -> Arc<BindGroup>

Source

pub(crate) fn resolve_pipeline_layout_id( &self, id: PointerId<PipelineLayout>, ) -> Arc<PipelineLayout>

Source

pub(crate) fn resolve_shader_module_id( &self, id: PointerId<ShaderModule>, ) -> Arc<ShaderModule>

Source

pub(crate) fn resolve_render_pipeline_id( &self, id: PointerId<RenderPipeline>, ) -> Arc<RenderPipeline>

Source

pub(crate) fn resolve_compute_pipeline_id( &self, id: PointerId<ComputePipeline>, ) -> Arc<ComputePipeline>

Source

pub(crate) fn resolve_pipeline_cache_id( &self, id: PointerId<PipelineCache>, ) -> Arc<PipelineCache>

Source

pub(crate) fn resolve_render_bundle_id( &self, id: PointerId<RenderBundle>, ) -> Arc<RenderBundle>

Source

pub(crate) fn resolve_query_set_id( &self, id: PointerId<QuerySet>, ) -> Arc<QuerySet>

Source

pub(crate) fn resolve_blas_id(&self, id: PointerId<Blas>) -> Arc<Blas>

Source

pub(crate) fn resolve_tlas_id(&self, id: PointerId<Tlas>) -> Arc<Tlas>

Source

pub(crate) fn resolve_texel_copy_texture_info( &self, info: TexelCopyTextureInfo<PointerId<Texture>>, ) -> TexelCopyTextureInfo<Arc<Texture>>

Source

pub(crate) fn resolve_compute_pipeline_descriptor<'a>( &self, desc: TraceComputePipelineDescriptor<'a>, ) -> ResolvedComputePipelineDescriptor<'a>

Source

pub(crate) fn resolve_render_pipeline_descriptor<'a>( &self, desc: TraceGeneralRenderPipelineDescriptor<'a>, ) -> ResolvedGeneralRenderPipelineDescriptor<'a>

Source

pub(crate) fn resolve_bind_group_descriptor<'a>( &self, desc: TraceBindGroupDescriptor<'a>, ) -> ResolvedBindGroupDescriptor<'a>

Source

pub(crate) fn resolve_command( &self, command: Command<PointerReferences>, ) -> ArcCommand

Source

pub(crate) fn resolve_texel_copy_buffer_info( &self, info: TexelCopyBufferInfo<PointerId<Buffer>>, ) -> TexelCopyBufferInfo<Arc<Buffer>>

Source

pub(crate) fn resolve_compute_pass( &self, pass: BasePass<ComputeCommand<PointerReferences>, Infallible>, ) -> BasePass<ComputeCommand<ArcReferences>, Infallible>

Source

pub(crate) fn resolve_render_pass( &self, pass: BasePass<RenderCommand<PointerReferences>, Infallible>, ) -> BasePass<RenderCommand<ArcReferences>, Infallible>

Source

pub(crate) fn resolve_compute_command( &self, command: ComputeCommand<PointerReferences>, ) -> ComputeCommand<ArcReferences>

Source

pub(crate) fn resolve_render_command( &self, command: RenderCommand<PointerReferences>, ) -> RenderCommand<ArcReferences>

Source

pub(crate) fn resolve_pass_timestamp_writes( &self, writes: PassTimestampWrites<PointerId<QuerySet>>, ) -> PassTimestampWrites<Arc<QuerySet>>

Source

pub(crate) fn resolve_color_attachments( &self, attachments: ColorAttachments<PointerId<TextureView>>, ) -> ColorAttachments<Arc<TextureView>>

Source

pub(crate) fn resolve_depth_stencil_attachment( &self, attachment: ResolvedRenderPassDepthStencilAttachment<PointerId<TextureView>>, ) -> ResolvedRenderPassDepthStencilAttachment<Arc<TextureView>>

Source

pub(crate) fn resolve_blas_build_entry( &self, entry: OwnedBlasBuildEntry<PointerReferences>, ) -> OwnedBlasBuildEntry<ArcReferences>

Source

pub(crate) fn resolve_tlas_package( &self, package: OwnedTlasPackage<PointerReferences>, ) -> OwnedTlasPackage<ArcReferences>

Source

pub(crate) fn resolve_blas_geometries( &self, geometries: OwnedBlasGeometries<PointerReferences>, ) -> OwnedBlasGeometries<ArcReferences>

Source

pub(crate) fn resolve_blas_triangle_geometry( &self, geometry: OwnedBlasTriangleGeometry<PointerReferences>, ) -> OwnedBlasTriangleGeometry<ArcReferences>

Source

pub(crate) fn resolve_tlas_instance( &self, instance: OwnedTlasInstance<PointerReferences>, ) -> OwnedTlasInstance<ArcReferences>

Source

pub(crate) fn resolve_buffer_transition( &self, trans: BufferTransition<PointerId<Buffer>>, ) -> BufferTransition<Arc<Buffer>>

Source

pub(crate) fn resolve_texture_transition( &self, trans: TextureTransition<PointerId<Texture>>, ) -> TextureTransition<Arc<Texture>>

Trait Implementations§

Source§

impl Default for Player

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Player

§

impl !RefUnwindSafe for Player

§

impl Send for Player

§

impl Sync for Player

§

impl Unpin for Player

§

impl !UnwindSafe for Player

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
§

impl<T> Downcast<T> for T

§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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.
§

impl<T> Upcast<T> for T

§

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

Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSendSync for T

Source§

impl<T> WasmNotSync for T
where T: Sync,