From 08e1b095f54a657e17152f5722ed3f98d1175eda Mon Sep 17 00:00:00 2001 From: cwfitzgerald Date: Wed, 22 Jan 2025 02:42:30 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20master=20from=20@=20gfx-rs/wgp?= =?UTF-8?q?u@3dd925b6976d7de810c1e32aba49e72236f811af=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/player/trait.GlobalPlay.html | 44 ++++----- doc/src/wgpu_core/device/resource.rs.html | 18 ++-- doc/trait.impl/core/convert/trait.From.js | 4 +- doc/type.impl/alloc/sync/struct.Arc.js | 4 +- doc/wgpu_core/device/fn.create_validator.html | 4 +- .../device/resource/enum.DeferredDestroy.html | 2 +- doc/wgpu_core/device/resource/index.html | 2 +- .../device/resource/struct.Device.html | 74 +++++++------- doc/wgpu_core/index.html | 2 +- .../enum.CreateShaderModuleError.html | 8 +- .../pipeline/enum.ShaderModuleSource.html | 4 +- .../struct.ProgrammableStageDescriptor.html | 4 +- ...t.ResolvedProgrammableStageDescriptor.html | 4 +- doc/wgpu_core/resource/trait.Labeled.html | 2 +- .../resource/trait.ResourceType.html | 2 +- doc/wgpu_core/storage/trait.StorageItem.html | 2 +- .../track/texture/struct.TextureStateSet.html | 4 +- .../validation/enum.BindingError.html | 14 +-- doc/wgpu_core/validation/enum.InputError.html | 6 +- .../validation/enum.NumericDimension.html | 6 +- .../validation/enum.ResourceType.html | 6 +- doc/wgpu_core/validation/enum.StageError.html | 8 +- doc/wgpu_core/validation/enum.Varying.html | 4 +- .../fn.map_storage_format_from_naga.html | 2 +- .../fn.map_storage_format_to_naga.html | 2 +- .../validation/struct.EntryPoint.html | 6 +- .../validation/struct.Interface.html | 18 ++-- .../validation/struct.InterfaceVar.html | 6 +- .../validation/struct.NumericType.html | 4 +- doc/wgpu_core/validation/struct.Resource.html | 6 +- doc/wgpu_examples/boids/struct.Example.html | 8 +- doc/wgpu_examples/bunnymark/struct.Bunny.html | 6 +- .../bunnymark/struct.Example.html | 8 +- .../bunnymark/struct.Globals.html | 6 +- .../constant.RENDER_TARGET_FORMAT.html | 2 +- .../conservative_raster/struct.Example.html | 10 +- doc/wgpu_examples/cube/struct.Example.html | 10 +- doc/wgpu_examples/cube/struct.Vertex.html | 6 +- .../framework/struct.ExampleContext.html | 6 +- .../framework/struct.FrameCounter.html | 6 +- .../framework/struct.SurfaceWrapper.html | 6 +- .../framework/trait.Example.html | 10 +- .../struct.ExecuteResults.html | 6 +- doc/wgpu_examples/hello_windows/fn.run.html | 2 +- .../hello_windows/struct.Viewport.html | 6 +- .../hello_windows/struct.ViewportDesc.html | 10 +- .../mipmap/constant.QUERY_FEATURES.html | 2 +- .../mipmap/constant.TEXTURE_FORMAT.html | 2 +- .../mipmap/fn.pipeline_statistics_offset.html | 2 +- doc/wgpu_examples/mipmap/struct.Example.html | 10 +- .../mipmap/struct.QuerySets.html | 6 +- .../mipmap/struct.TimestampData.html | 6 +- .../msaa_line/struct.Example.html | 10 +- .../msaa_line/struct.Vertex.html | 6 +- .../struct.Example.html | 8 +- .../struct.MultiTargetRenderer.html | 8 +- .../struct.TargetRenderer.html | 8 +- .../struct.TextureTargets.html | 8 +- .../ray_cube_compute/struct.ErrorFuture.html | 6 +- .../ray_cube_compute/struct.Example.html | 10 +- .../ray_cube_compute/struct.Uniforms.html | 6 +- .../ray_cube_compute/struct.Vertex.html | 6 +- .../ray_cube_fragment/struct.ErrorFuture.html | 6 +- .../ray_cube_fragment/struct.Example.html | 10 +- .../ray_cube_fragment/struct.Uniforms.html | 6 +- .../ray_cube_fragment/struct.Vertex.html | 6 +- .../ray_scene/struct.ErrorFuture.html | 6 +- .../ray_scene/struct.Example.html | 10 +- .../ray_scene/struct.GeometryEntry.html | 6 +- .../ray_scene/struct.InstanceEntry.html | 6 +- .../ray_scene/struct.Material.html | 6 +- .../ray_scene/struct.RawSceneComponents.html | 6 +- .../ray_scene/struct.SceneComponents.html | 6 +- .../ray_scene/struct.Uniforms.html | 6 +- .../ray_scene/struct.Vertex.html | 6 +- .../ray_shadows/struct.ErrorFuture.html | 6 +- .../ray_shadows/struct.Example.html | 10 +- .../ray_shadows/struct.Uniforms.html | 6 +- .../ray_shadows/struct.Vertex.html | 6 +- .../ray_traced_triangle/struct.Example.html | 10 +- .../ray_traced_triangle/struct.Uniforms.html | 6 +- .../repeated_compute/struct.WgpuContext.html | 6 +- doc/wgpu_examples/shadow/struct.Entity.html | 14 +-- .../shadow/struct.EntityUniforms.html | 6 +- doc/wgpu_examples/shadow/struct.Example.html | 12 +-- .../shadow/struct.GlobalUniforms.html | 6 +- doc/wgpu_examples/shadow/struct.Light.html | 10 +- doc/wgpu_examples/shadow/struct.LightRaw.html | 6 +- doc/wgpu_examples/shadow/struct.Pass.html | 6 +- doc/wgpu_examples/shadow/struct.Vertex.html | 6 +- doc/wgpu_examples/skybox/struct.Camera.html | 6 +- doc/wgpu_examples/skybox/struct.Entity.html | 6 +- doc/wgpu_examples/skybox/struct.Example.html | 12 +-- doc/wgpu_examples/skybox/struct.Vertex.html | 6 +- .../srgb_blend/struct.Example.html | 10 +- .../srgb_blend/struct.Vertex.html | 6 +- .../stencil_triangles/struct.Example.html | 8 +- .../stencil_triangles/struct.Vertex.html | 6 +- .../texture_arrays/enum.Color.html | 6 +- .../texture_arrays/struct.Example.html | 12 +-- .../texture_arrays/struct.Vertex.html | 6 +- .../timestamp_queries/struct.Queries.html | 6 +- .../struct.QueryResults.html | 6 +- .../uniform_values/struct.AppState.html | 6 +- .../uniform_values/struct.WgpuContext.html | 6 +- ...adapter_with_capabilities_or_from_env.html | 4 +- .../point_gen/struct.HexTerrainMesh.html | 6 +- .../water/point_gen/struct.HexWaterMesh.html | 6 +- .../water/point_gen/struct.TerrainVertex.html | 6 +- .../struct.TerrainVertexAttributes.html | 6 +- .../struct.WaterVertexAttributes.html | 6 +- doc/wgpu_examples/water/struct.Example.html | 8 +- doc/wgpu_examples/water/struct.Matrices.html | 6 +- .../water/struct.TerrainUniforms.html | 6 +- doc/wgpu_examples/water/struct.Uniforms.html | 6 +- .../water/struct.WaterUniforms.html | 6 +- doc/wgpu_hal/auxil/fn.map_naga_stage.html | 2 +- .../auxil/renderdoc/enum.RenderDoc.html | 6 +- .../auxil/renderdoc/struct.RenderDocApi.html | 6 +- doc/wgpu_hal/constant.QUERY_SIZE.html | 2 +- .../dynamic/adapter/struct.DynOpenDevice.html | 6 +- .../dynamic/adapter/trait.DynAdapter.html | 20 ++-- .../command/trait.DynCommandEncoder.html | 48 +++++----- .../dynamic/device/trait.DynDevice.html | 14 +-- .../instance/struct.DynExposedAdapter.html | 12 +-- .../struct.DynAcquiredSurfaceTexture.html | 6 +- doc/wgpu_hal/dynamic/trait.DynResource.html | 2 +- doc/wgpu_hal/empty/struct.Api.html | 6 +- doc/wgpu_hal/empty/struct.Context.html | 38 ++++---- doc/wgpu_hal/empty/struct.Encoder.html | 34 +++---- doc/wgpu_hal/empty/struct.Resource.html | 6 +- .../enum.AccelerationStructureBuildMode.html | 6 +- .../enum.AccelerationStructureEntries.html | 6 +- .../enum.AccelerationStructureFormat.html | 6 +- doc/wgpu_hal/enum.DeviceError.html | 6 +- doc/wgpu_hal/enum.PipelineCacheError.html | 6 +- doc/wgpu_hal/enum.PipelineError.html | 14 +-- doc/wgpu_hal/enum.ShaderError.html | 6 +- doc/wgpu_hal/enum.ShaderInput.html | 6 +- doc/wgpu_hal/enum.SurfaceError.html | 6 +- doc/wgpu_hal/gles/command/struct.State.html | 16 ++-- .../gles/command/struct.TextureSlotDesc.html | 6 +- .../gles/conv/fn._map_view_dimension.html | 2 +- .../gles/conv/fn.describe_vertex_format.html | 2 +- .../gles/conv/fn.map_address_mode.html | 2 +- doc/wgpu_hal/gles/conv/fn.map_blend.html | 2 +- .../gles/conv/fn.map_blend_component.html | 2 +- .../gles/conv/fn.map_blend_factor.html | 2 +- .../gles/conv/fn.map_compare_func.html | 2 +- .../gles/conv/fn.map_filter_modes.html | 6 +- .../gles/conv/fn.map_primitive_state.html | 2 +- .../gles/conv/fn.map_primitive_topology.html | 2 +- doc/wgpu_hal/gles/conv/fn.map_stencil.html | 2 +- doc/wgpu_hal/gles/conv/fn.map_stencil_op.html | 2 +- .../gles/conv/fn.map_stencil_ops.html | 2 +- .../gles/conv/fn.map_storage_access.html | 2 +- .../device/struct.CompilationContext.html | 18 ++-- .../gles/device/type.ShaderStage.html | 2 +- .../gles/egl/enum.SrgbFrameBufferKind.html | 6 +- doc/wgpu_hal/gles/egl/enum.WindowKind.html | 6 +- .../gles/egl/struct.AdapterContext.html | 6 +- doc/wgpu_hal/gles/egl/struct.Inner.html | 8 +- doc/wgpu_hal/gles/egl/struct.Instance.html | 12 +-- doc/wgpu_hal/gles/egl/struct.Surface.html | 6 +- doc/wgpu_hal/gles/egl/struct.Swapchain.html | 10 +- doc/wgpu_hal/gles/enum.BindingRegister.html | 6 +- doc/wgpu_hal/gles/enum.Command.html | 26 ++--- doc/wgpu_hal/gles/enum.RawBinding.html | 6 +- doc/wgpu_hal/gles/enum.TextureInner.html | 6 +- doc/wgpu_hal/gles/enum.VertexAttribKind.html | 6 +- doc/wgpu_hal/gles/fence/struct.Fence.html | 10 +- .../gles/struct.AccelerationStructure.html | 6 +- doc/wgpu_hal/gles/struct.Adapter.html | 32 +++---- doc/wgpu_hal/gles/struct.AdapterContext.html | 6 +- doc/wgpu_hal/gles/struct.AdapterShared.html | 18 ++-- doc/wgpu_hal/gles/struct.Api.html | 6 +- doc/wgpu_hal/gles/struct.AttributeDesc.html | 6 +- doc/wgpu_hal/gles/struct.BindGroup.html | 6 +- doc/wgpu_hal/gles/struct.BindGroupLayout.html | 10 +- .../gles/struct.BindGroupLayoutInfo.html | 10 +- doc/wgpu_hal/gles/struct.BlendComponent.html | 6 +- doc/wgpu_hal/gles/struct.BlendDesc.html | 6 +- doc/wgpu_hal/gles/struct.Buffer.html | 12 +-- doc/wgpu_hal/gles/struct.BufferBinding.html | 10 +- doc/wgpu_hal/gles/struct.ColorTargetDesc.html | 10 +- doc/wgpu_hal/gles/struct.CommandBuffer.html | 6 +- doc/wgpu_hal/gles/struct.CommandEncoder.html | 38 ++++---- doc/wgpu_hal/gles/struct.ComputePipeline.html | 6 +- doc/wgpu_hal/gles/struct.DepthState.html | 6 +- doc/wgpu_hal/gles/struct.Device.html | 32 +++---- doc/wgpu_hal/gles/struct.Fence.html | 10 +- doc/wgpu_hal/gles/struct.ImageBinding.html | 6 +- doc/wgpu_hal/gles/struct.PipelineCache.html | 6 +- doc/wgpu_hal/gles/struct.PipelineInner.html | 6 +- doc/wgpu_hal/gles/struct.PipelineLayout.html | 10 +- doc/wgpu_hal/gles/struct.PrimitiveState.html | 6 +- .../gles/struct.PrivateCapabilities.html | 6 +- doc/wgpu_hal/gles/struct.ProgramCacheKey.html | 6 +- doc/wgpu_hal/gles/struct.ProgramStage.html | 10 +- .../gles/struct.PushConstantDesc.html | 10 +- doc/wgpu_hal/gles/struct.QuerySet.html | 6 +- doc/wgpu_hal/gles/struct.Queue.html | 10 +- doc/wgpu_hal/gles/struct.RenderPipeline.html | 12 +-- doc/wgpu_hal/gles/struct.Sampler.html | 6 +- .../gles/struct.ShaderClearProgram.html | 6 +- doc/wgpu_hal/gles/struct.ShaderModule.html | 6 +- doc/wgpu_hal/gles/struct.StencilOps.html | 6 +- doc/wgpu_hal/gles/struct.StencilSide.html | 6 +- doc/wgpu_hal/gles/struct.StencilState.html | 6 +- doc/wgpu_hal/gles/struct.Texture.html | 12 +-- .../gles/struct.TextureFormatDesc.html | 6 +- doc/wgpu_hal/gles/struct.TextureView.html | 10 +- .../gles/struct.VertexBufferDesc.html | 10 +- .../gles/struct.VertexFormatDesc.html | 6 +- doc/wgpu_hal/gles/struct.Workarounds.html | 6 +- doc/wgpu_hal/gles/type.ProgramCache.html | 2 +- doc/wgpu_hal/index.html | 2 +- .../struct.AccelerationStructureAABBs.html | 10 +- .../struct.AccelerationStructureBarrier.html | 6 +- ...truct.AccelerationStructureBuildFlags.html | 96 +++++++++---------- ...truct.AccelerationStructureBuildSizes.html | 14 +-- ...truct.AccelerationStructureDescriptor.html | 10 +- ...ct.AccelerationStructureGeometryFlags.html | 92 +++++++++--------- ...struct.AccelerationStructureInstances.html | 6 +- ....AccelerationStructureTriangleIndices.html | 10 +- ...ccelerationStructureTriangleTransform.html | 6 +- ...struct.AccelerationStructureTriangles.html | 12 +-- .../struct.AccelerationStructureUses.html | 6 +- .../struct.AcquiredSurfaceTexture.html | 6 +- doc/wgpu_hal/struct.Alignments.html | 20 ++-- doc/wgpu_hal/struct.Attachment.html | 6 +- doc/wgpu_hal/struct.AttachmentOps.html | 6 +- doc/wgpu_hal/struct.BindGroupDescriptor.html | 6 +- doc/wgpu_hal/struct.BindGroupEntry.html | 6 +- .../struct.BindGroupLayoutDescriptor.html | 10 +- doc/wgpu_hal/struct.BindGroupLayoutFlags.html | 6 +- doc/wgpu_hal/struct.BufferBarrier.html | 6 +- doc/wgpu_hal/struct.BufferBinding.html | 18 ++-- doc/wgpu_hal/struct.BufferCopy.html | 14 +-- doc/wgpu_hal/struct.BufferDescriptor.html | 10 +- doc/wgpu_hal/struct.BufferTextureCopy.html | 10 +- doc/wgpu_hal/struct.BufferUses.html | 6 +- ....BuildAccelerationStructureDescriptor.html | 10 +- doc/wgpu_hal/struct.Capabilities.html | 12 +-- doc/wgpu_hal/struct.ColorAttachment.html | 10 +- .../struct.CommandEncoderDescriptor.html | 6 +- .../struct.ComputePassDescriptor.html | 6 +- .../struct.ComputePipelineDescriptor.html | 6 +- doc/wgpu_hal/struct.CopyExtent.html | 8 +- doc/wgpu_hal/struct.DebugSource.html | 6 +- .../struct.DepthStencilAttachment.html | 6 +- doc/wgpu_hal/struct.DropGuard.html | 6 +- .../struct.DynAcquiredSurfaceTexture.html | 6 +- doc/wgpu_hal/struct.DynExposedAdapter.html | 12 +-- doc/wgpu_hal/struct.DynOpenDevice.html | 6 +- doc/wgpu_hal/struct.ExposedAdapter.html | 12 +-- doc/wgpu_hal/struct.FormatAspects.html | 12 +-- ...lerationStructureBuildSizesDescriptor.html | 6 +- doc/wgpu_hal/struct.InstanceDescriptor.html | 12 +-- doc/wgpu_hal/struct.InstanceError.html | 6 +- doc/wgpu_hal/struct.MemoryFlags.html | 6 +- doc/wgpu_hal/struct.NagaShader.html | 14 +-- doc/wgpu_hal/struct.OpenDevice.html | 6 +- doc/wgpu_hal/struct.PassTimestampWrites.html | 6 +- .../struct.PipelineCacheDescriptor.html | 6 +- .../struct.PipelineLayoutDescriptor.html | 10 +- doc/wgpu_hal/struct.PipelineLayoutFlags.html | 6 +- doc/wgpu_hal/struct.ProgrammableStage.html | 10 +- doc/wgpu_hal/struct.Rect.html | 6 +- doc/wgpu_hal/struct.RenderPassDescriptor.html | 10 +- .../struct.RenderPipelineDescriptor.html | 22 ++--- doc/wgpu_hal/struct.SamplerDescriptor.html | 20 ++-- .../struct.ShaderModuleDescriptor.html | 12 +-- doc/wgpu_hal/struct.StateTransition.html | 6 +- doc/wgpu_hal/struct.SurfaceCapabilities.html | 22 ++--- doc/wgpu_hal/struct.SurfaceConfiguration.html | 26 ++--- doc/wgpu_hal/struct.TextureBarrier.html | 10 +- doc/wgpu_hal/struct.TextureBinding.html | 6 +- doc/wgpu_hal/struct.TextureCopy.html | 6 +- doc/wgpu_hal/struct.TextureCopyBase.html | 10 +- doc/wgpu_hal/struct.TextureDescriptor.html | 16 ++-- .../struct.TextureFormatCapabilities.html | 6 +- doc/wgpu_hal/struct.TextureUses.html | 6 +- .../struct.TextureViewDescriptor.html | 14 +-- doc/wgpu_hal/struct.TlasInstance.html | 6 +- doc/wgpu_hal/struct.ValidationCanary.html | 6 +- doc/wgpu_hal/struct.VertexBufferLayout.html | 18 ++-- doc/wgpu_hal/trait.Adapter.html | 22 ++--- doc/wgpu_hal/trait.CommandEncoder.html | 54 +++++------ doc/wgpu_hal/trait.Device.html | 18 ++-- doc/wgpu_hal/trait.DynAdapter.html | 20 ++-- doc/wgpu_hal/trait.DynCommandEncoder.html | 48 +++++----- doc/wgpu_hal/trait.DynDevice.html | 14 +-- doc/wgpu_hal/trait.DynResource.html | 2 +- doc/wgpu_hal/trait.Instance.html | 2 +- doc/wgpu_hal/trait.Queue.html | 2 +- doc/wgpu_hal/trait.Surface.html | 2 +- doc/wgpu_hal/type.MemoryRange.html | 2 +- .../vulkan/adapter/fn.indexing_features.html | 2 +- .../struct.PhysicalDeviceFeatures.html | 18 ++-- .../struct.PhysicalDeviceProperties.html | 10 +- .../vulkan/conv/fn.derive_image_layout.html | 2 +- ...celeration_structure_usage_to_barrier.html | 2 +- .../vulkan/conv/fn.map_address_mode.html | 2 +- .../vulkan/conv/fn.map_binding_type.html | 2 +- .../vulkan/conv/fn.map_blend_component.html | 2 +- .../vulkan/conv/fn.map_blend_factor.html | 2 +- doc/wgpu_hal/vulkan/conv/fn.map_blend_op.html | 2 +- .../vulkan/conv/fn.map_border_color.html | 2 +- .../vulkan/conv/fn.map_comparison.html | 2 +- .../conv/fn.map_composite_alpha_mode.html | 2 +- .../vulkan/conv/fn.map_cull_face.html | 2 +- .../vulkan/conv/fn.map_filter_mode.html | 2 +- .../vulkan/conv/fn.map_front_face.html | 2 +- .../vulkan/conv/fn.map_index_format.html | 2 +- .../vulkan/conv/fn.map_mip_filter_mode.html | 2 +- .../conv/fn.map_pipeline_statistics.html | 2 +- .../vulkan/conv/fn.map_polygon_mode.html | 2 +- .../vulkan/conv/fn.map_present_mode.html | 2 +- .../vulkan/conv/fn.map_shader_stage.html | 2 +- .../vulkan/conv/fn.map_stencil_face.html | 2 +- .../vulkan/conv/fn.map_stencil_op.html | 2 +- .../vulkan/conv/fn.map_subresource_range.html | 4 +- ...map_subresource_range_combined_aspect.html | 4 +- .../vulkan/conv/fn.map_texture_dimension.html | 2 +- doc/wgpu_hal/vulkan/conv/fn.map_topology.html | 2 +- .../vulkan/conv/fn.map_vertex_format.html | 2 +- .../vulkan/conv/fn.map_view_dimension.html | 2 +- .../conv/fn.map_vk_composite_alpha.html | 2 +- .../vulkan/conv/fn.map_vk_present_mode.html | 2 +- .../conv/fn.map_vk_surface_formats.html | 2 +- .../vulkan/device/struct.CompiledStage.html | 6 +- .../device/struct.ImageWithoutMemory.html | 10 +- doc/wgpu_hal/vulkan/enum.ExtensionFn.html | 6 +- doc/wgpu_hal/vulkan/enum.Fence.html | 6 +- doc/wgpu_hal/vulkan/enum.ShaderModule.html | 10 +- .../vulkan/sampler/struct.CacheEntry.html | 6 +- .../struct.HashableSamplerCreateInfo.html | 6 +- .../vulkan/sampler/struct.SamplerCache.html | 6 +- .../vulkan/struct.AccelerationStructure.html | 6 +- doc/wgpu_hal/vulkan/struct.Adapter.html | 38 ++++---- doc/wgpu_hal/vulkan/struct.Api.html | 6 +- doc/wgpu_hal/vulkan/struct.AttachmentKey.html | 6 +- doc/wgpu_hal/vulkan/struct.BindGroup.html | 6 +- .../vulkan/struct.BindGroupLayout.html | 6 +- doc/wgpu_hal/vulkan/struct.Buffer.html | 6 +- .../vulkan/struct.ColorAttachmentKey.html | 6 +- doc/wgpu_hal/vulkan/struct.CommandBuffer.html | 6 +- .../vulkan/struct.CommandEncoder.html | 38 ++++---- .../vulkan/struct.ComputePipeline.html | 6 +- doc/wgpu_hal/vulkan/struct.DebugUtils.html | 6 +- .../vulkan/struct.DebugUtilsCreateInfo.html | 6 +- .../struct.DebugUtilsMessengerUserData.html | 6 +- .../struct.DepthStencilAttachmentKey.html | 6 +- doc/wgpu_hal/vulkan/struct.Device.html | 26 ++--- .../struct.DeviceExtensionFunctions.html | 6 +- doc/wgpu_hal/vulkan/struct.DeviceShared.html | 12 +-- .../vulkan/struct.FramebufferAttachment.html | 10 +- .../vulkan/struct.FramebufferKey.html | 10 +- doc/wgpu_hal/vulkan/struct.Instance.html | 10 +- .../vulkan/struct.InstanceShared.html | 10 +- doc/wgpu_hal/vulkan/struct.PipelineCache.html | 6 +- .../vulkan/struct.PipelineLayout.html | 10 +- .../vulkan/struct.PrivateCapabilities.html | 12 +-- doc/wgpu_hal/vulkan/struct.QuerySet.html | 6 +- doc/wgpu_hal/vulkan/struct.Queue.html | 6 +- .../vulkan/struct.RawTlasInstance.html | 6 +- ...ct.RayTracingDeviceExtensionFunctions.html | 6 +- .../vulkan/struct.RelaySemaphores.html | 6 +- doc/wgpu_hal/vulkan/struct.RenderPassKey.html | 6 +- .../vulkan/struct.RenderPipeline.html | 6 +- doc/wgpu_hal/vulkan/struct.Sampler.html | 6 +- doc/wgpu_hal/vulkan/struct.Surface.html | 8 +- .../vulkan/struct.SurfaceTexture.html | 6 +- doc/wgpu_hal/vulkan/struct.Swapchain.html | 12 +-- .../struct.SwapchainImageSemaphores.html | 6 +- doc/wgpu_hal/vulkan/struct.Temp.html | 6 +- doc/wgpu_hal/vulkan/struct.Texture.html | 12 +-- doc/wgpu_hal/vulkan/struct.TextureView.html | 6 +- .../struct.ValidationLayerProperties.html | 6 +- doc/wgpu_hal/vulkan/struct.Workarounds.html | 6 +- .../config/struct.GpuTestConfiguration.html | 6 +- doc/wgpu_test/enum.FailureBehavior.html | 6 +- .../enum.ExpectationMatchResult.html | 6 +- .../expectations/enum.FailureBehavior.html | 6 +- .../expectations/enum.FailureResultKind.html | 6 +- .../struct.FailureApplicationReasons.html | 6 +- .../expectations/struct.FailureCase.html | 28 +++--- .../expectations/struct.FailureReason.html | 6 +- .../expectations/struct.FailureResult.html | 6 +- doc/wgpu_test/fn.initialize_device.html | 4 +- doc/wgpu_test/fn.initialize_instance.html | 2 +- doc/wgpu_test/image/enum.ComparisonType.html | 6 +- .../image/fn.compare_image_output.html | 2 +- ...fn.copy_texture_to_buffer_with_aspect.html | 2 +- doc/wgpu_test/image/fn.copy_via_compute.html | 2 +- .../image/struct.ReadbackBuffers.html | 16 ++-- doc/wgpu_test/init/fn.initialize_device.html | 4 +- .../init/fn.initialize_instance.html | 2 +- doc/wgpu_test/init/struct.SurfaceGuard.html | 6 +- .../struct.OneTestPerProcessGuard.html | 6 +- doc/wgpu_test/native/struct.NativeTest.html | 2 +- .../constant.LOWEST_DOWNLEVEL_PROPERTIES.html | 2 +- doc/wgpu_test/params/struct.TestInfo.html | 6 +- .../params/struct.TestParameters.html | 18 ++-- .../report/struct.AdapterReport.html | 18 ++-- doc/wgpu_test/report/struct.GpuReport.html | 6 +- doc/wgpu_test/run/struct.TestingContext.html | 16 ++-- .../struct.FailureApplicationReasons.html | 6 +- doc/wgpu_test/struct.FailureCase.html | 28 +++--- doc/wgpu_test/struct.FailureReason.html | 6 +- .../struct.GpuTestConfiguration.html | 6 +- doc/wgpu_test/struct.TestParameters.html | 18 ++-- doc/wgpu_test/struct.TestingContext.html | 16 ++-- 414 files changed, 1785 insertions(+), 1791 deletions(-) diff --git a/doc/player/trait.GlobalPlay.html b/doc/player/trait.GlobalPlay.html index 960aee4a1228..8e5a7926d310 100644 --- a/doc/player/trait.GlobalPlay.html +++ b/doc/player/trait.GlobalPlay.html @@ -2,37 +2,37 @@ // Required methods fn encode_commands( &self, - encoder: CommandEncoderId, - commands: Vec<Command>, - ) -> CommandBufferId; + encoder: CommandEncoderId, + commands: Vec<Command>, + ) -> CommandBufferId; fn process( &self, - device: DeviceId, - queue: QueueId, - action: Action<'_>, + device: DeviceId, + queue: QueueId, + action: Action<'_>, dir: &Path, - comb_manager: &mut IdentityManager<CommandBuffer>, + comb_manager: &mut IdentityManager<CommandBuffer>, ); }

Required Methods§

source

fn encode_commands( &self, - encoder: CommandEncoderId, - commands: Vec<Command>, -) -> CommandBufferId

source

fn process( + encoder: CommandEncoderId, + commands: Vec<Command>, +) -> CommandBufferId

source

fn process( &self, - device: DeviceId, - queue: QueueId, - action: Action<'_>, + device: DeviceId, + queue: QueueId, + action: Action<'_>, dir: &Path, - comb_manager: &mut IdentityManager<CommandBuffer>, -)

Implementations on Foreign Types§

source§

impl GlobalPlay for Global

Implementations on Foreign Types§

source§

impl GlobalPlay for Global

source§

fn encode_commands( &self, - encoder: CommandEncoderId, - commands: Vec<Command>, -) -> CommandBufferId

source§

fn process( + encoder: CommandEncoderId, + commands: Vec<Command>, +) -> CommandBufferId

source§

fn process( &self, - device: DeviceId, - queue: QueueId, - action: Action<'_>, + device: DeviceId, + queue: QueueId, + action: Action<'_>, dir: &Path, - comb_manager: &mut IdentityManager<CommandBuffer>, + comb_manager: &mut IdentityManager<CommandBuffer>, )

Implementors§

\ No newline at end of file diff --git a/doc/src/wgpu_core/device/resource.rs.html b/doc/src/wgpu_core/device/resource.rs.html index 61c2f537b697..e6356d02e485 100644 --- a/doc/src/wgpu_core/device/resource.rs.html +++ b/doc/src/wgpu_core/device/resource.rs.html @@ -3758,10 +3758,7 @@ 3757 3758 3759 -3760 -3761 -3762 -3763
#[cfg(feature = "trace")]
+3760
#[cfg(feature = "trace")]
 use crate::device::trace;
 use crate::{
     binding_model::{self, BindGroup, BindGroupLayout, BindGroupLayoutEntryError},
@@ -3796,6 +3793,7 @@
 };
 
 use arrayvec::ArrayVec;
+use bitflags::Flags;
 use smallvec::SmallVec;
 use wgt::{
     math::align_to, DeviceLostReason, TextureFormat, TextureSampleType, TextureViewDimension,
@@ -4258,9 +4256,7 @@
             self.require_downlevel_flags(wgt::DownlevelFlags::UNRESTRICTED_INDEX_BUFFER)?;
         }
 
-        if desc.usage.is_empty()
-            || desc.usage | wgt::BufferUsages::all() != wgt::BufferUsages::all()
-        {
+        if desc.usage.is_empty() || desc.usage.contains_unknown_bits() {
             return Err(resource::CreateBufferError::InvalidUsage(desc.usage));
         }
 
@@ -4494,9 +4490,7 @@
 
         self.check_is_valid()?;
 
-        if desc.usage.is_empty()
-            || desc.usage | wgt::TextureUsages::all() != wgt::TextureUsages::all()
-        {
+        if desc.usage.is_empty() || desc.usage.contains_unknown_bits() {
             return Err(CreateTextureError::InvalidUsage(desc.usage));
         }
 
@@ -5611,7 +5605,7 @@
                     })?;
             }
 
-            if entry.visibility | wgt::ShaderStages::all() != wgt::ShaderStages::all() {
+            if entry.visibility.contains_unknown_bits() {
                 return Err(
                     binding_model::CreateBindGroupLayoutError::InvalidVisibility(entry.visibility),
                 );
@@ -6840,7 +6834,7 @@
             if let Some(cs) = cs.as_ref() {
                 target_specified = true;
                 let error = 'error: {
-                    if cs.write_mask | wgt::ColorWrites::all() != wgt::ColorWrites::all() {
+                    if cs.write_mask.contains_unknown_bits() {
                         break 'error Some(pipeline::ColorStateError::InvalidWriteMask(
                             cs.write_mask,
                         ));
diff --git a/doc/trait.impl/core/convert/trait.From.js b/doc/trait.impl/core/convert/trait.From.js
index 61e522b258ff..b1827abb1b5d 100644
--- a/doc/trait.impl/core/convert/trait.From.js
+++ b/doc/trait.impl/core/convert/trait.From.js
@@ -1,9 +1,9 @@
 (function() {
-    var implementors = Object.fromEntries([["naga",[["impl From<&'static str> for DiagnosticAttributeNotSupportedPosition"],["impl From<LocalType> for LookupType"],["impl From<ImageDimension> for Dim"],["impl From<ImageQuery> for ImageQuery"],["impl From<Literal> for HashableLiteral"],["impl From<ShaderStage> for Options"],["impl From<StorageFormat> for Scalar"],["impl From<StorageFormat> for ImageFormat"],["impl From<VectorSize> for Alignment"],["impl From<Error> for Error"],["impl From<TokenValue> for ExpectedToken"],["impl From<ConcreteInt<1>> for Expression"],["impl From<ConstantEvaluatorError> for PipelineConstantError"],["impl From<ConstantEvaluatorError> for ErrorKind"],["impl From<Float<1>> for Expression"],["impl From<Scalar<1>> for Expression"],["impl From<Signed<1>> for Expression"],["impl From<IndexableLengthError> for ExpressionError"],["impl From<ResolveError> for ConstExpressionError"],["impl From<ResolveError> for ExpressionError"],["impl From<ComposeError> for ConstExpressionError"],["impl From<ComposeError> for ExpressionError"],["impl From<LiteralError> for ConstantEvaluatorError"],["impl From<LiteralError> for ConstExpressionError"],["impl From<LiteralError> for ExpressionError"],["impl From<AtomicError> for FunctionError"],["impl From<FunctionError> for EntryPointError"],["impl From<SubgroupError> for FunctionError"],["impl From<InvalidHandleError> for ValidationError"],["impl From<VaryingError> for EntryPointError"],["impl From<WidthError> for ConstExpressionError"],["impl From<WidthError> for LiteralError"],["impl From<WidthError> for TypeError"],["impl From<Vec<Statement>> for Block"],["impl From<Vec<Error>> for ParseErrors"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Range<usize>> for Span"],["impl From<BadHandle> for ValidationError"],["impl From<BadHandle> for InvalidHandleError"],["impl From<BadRangeError> for ValidationError"],["impl From<BadRangeError> for InvalidHandleError"],["impl From<FunctionTracer<'_>> for FunctionMap"],["impl From<ModuleTracer<'_>> for ModuleMap"],["impl From<ConflictingDiagnosticRuleError> for Error<'_>"],["impl From<BuiltinVariations> for TextureArgsOptions"],["impl From<Location> for Span"],["impl From<LayoutError> for ValidationError"],["impl From<WithSpan<ValidationError>> for PipelineConstantError"],["impl From<FwdDepError> for ValidationError"],["impl From<FwdDepError> for InvalidHandleError"]]],["wgpu",[["impl From<<ContextWgpuCore as InterfaceTypes>::Adapter> for DispatchAdapter"],["impl From<<ContextWgpuCore as InterfaceTypes>::BindGroupLayout> for DispatchBindGroupLayout"],["impl From<<ContextWgpuCore as InterfaceTypes>::BindGroup> for DispatchBindGroup"],["impl From<<ContextWgpuCore as InterfaceTypes>::Blas> for DispatchBlas"],["impl From<<ContextWgpuCore as InterfaceTypes>::BufferMappedRange> for DispatchBufferMappedRange"],["impl From<<ContextWgpuCore as InterfaceTypes>::Buffer> for DispatchBuffer"],["impl From<<ContextWgpuCore as InterfaceTypes>::CommandBuffer> for DispatchCommandBuffer"],["impl From<<ContextWgpuCore as InterfaceTypes>::CommandEncoder> for DispatchCommandEncoder"],["impl From<<ContextWgpuCore as InterfaceTypes>::ComputePass> for DispatchComputePass"],["impl From<<ContextWgpuCore as InterfaceTypes>::ComputePipeline> for DispatchComputePipeline"],["impl From<<ContextWgpuCore as InterfaceTypes>::Device> for DispatchDevice"],["impl From<<ContextWgpuCore as InterfaceTypes>::Instance> for DispatchInstance"],["impl From<<ContextWgpuCore as InterfaceTypes>::PipelineCache> for DispatchPipelineCache"],["impl From<<ContextWgpuCore as InterfaceTypes>::PipelineLayout> for DispatchPipelineLayout"],["impl From<<ContextWgpuCore as InterfaceTypes>::QuerySet> for DispatchQuerySet"],["impl From<<ContextWgpuCore as InterfaceTypes>::QueueWriteBuffer> for DispatchQueueWriteBuffer"],["impl From<<ContextWgpuCore as InterfaceTypes>::Queue> for DispatchQueue"],["impl From<<ContextWgpuCore as InterfaceTypes>::RenderBundleEncoder> for DispatchRenderBundleEncoder"],["impl From<<ContextWgpuCore as InterfaceTypes>::RenderBundle> for DispatchRenderBundle"],["impl From<<ContextWgpuCore as InterfaceTypes>::RenderPass> for DispatchRenderPass"],["impl From<<ContextWgpuCore as InterfaceTypes>::RenderPipeline> for DispatchRenderPipeline"],["impl From<<ContextWgpuCore as InterfaceTypes>::Sampler> for DispatchSampler"],["impl From<<ContextWgpuCore as InterfaceTypes>::ShaderModule> for DispatchShaderModule"],["impl From<<ContextWgpuCore as InterfaceTypes>::SurfaceOutputDetail> for DispatchSurfaceOutputDetail"],["impl From<<ContextWgpuCore as InterfaceTypes>::Surface> for DispatchSurface"],["impl From<<ContextWgpuCore as InterfaceTypes>::TextureView> for DispatchTextureView"],["impl From<<ContextWgpuCore as InterfaceTypes>::Texture> for DispatchTexture"],["impl From<<ContextWgpuCore as InterfaceTypes>::Tlas> for DispatchTlas"],["impl From<CreateSurfaceError> for CreateSurfaceError"],["impl From<RequestDeviceError> for RequestDeviceError"],["impl From<CreateShaderModuleError> for CompilationInfo"],["impl From<ShaderError<ParseError>> for CompilationInfo"],["impl From<ShaderError<WithSpan<ValidationError>>> for CompilationInfo"],["impl From<SourceLocation> for SourceLocation"],["impl<'a, T> From<T> for SurfaceTarget<'a>
where\n T: WindowHandle + 'a,
"]]],["wgpu_core",[["impl From<&ResourceType> for BindingTypeName"],["impl From<&BindingType> for BindingTypeName"],["impl From<BindError> for RenderBundleErrorInner"],["impl From<BindError> for ComputePassErrorInner"],["impl From<BindError> for RenderPassErrorInner"],["impl From<CreateBindGroupLayoutError> for ImplicitLayoutError"],["impl From<CreatePipelineLayoutError> for ImplicitLayoutError"],["impl From<PushConstantUploadError> for ComputePassErrorInner"],["impl From<PushConstantUploadError> for RenderCommandError"],["impl From<ClearError> for TransferError"],["impl From<ClearError> for QueueWriteError"],["impl From<DispatchError> for ComputePassErrorInner"],["impl From<DrawError> for RenderBundleErrorInner"],["impl From<DrawError> for RenderPassErrorInner"],["impl From<RenderCommandError> for RenderPassErrorInner"],["impl From<CommandEncoderError> for ClearError"],["impl From<CommandEncoderError> for ComputePassErrorInner"],["impl From<CommandEncoderError> for QueryError"],["impl From<CommandEncoderError> for RenderPassErrorInner"],["impl From<CommandEncoderError> for CopyError"],["impl From<CommandEncoderError> for QueueSubmitError"],["impl From<CommandEncoderError> for BuildAccelerationStructureError"],["impl From<QueryUseError> for ComputePassErrorInner"],["impl From<QueryUseError> for CommandEncoderError"],["impl From<QueryUseError> for QueryError"],["impl From<QueryUseError> for RenderPassErrorInner"],["impl From<ResolveError> for QueryError"],["impl From<AttachmentError> for CommandEncoderError"],["impl From<ColorAttachmentError> for CreateRenderBundleError"],["impl From<ColorAttachmentError> for CommandEncoderError"],["impl From<ColorAttachmentError> for RenderPassErrorInner"],["impl From<ColorAttachmentError> for CreateRenderPipelineError"],["impl From<TransferError> for CopyError"],["impl From<TransferError> for QueueWriteError"],["impl From<DeviceError> for CreateBindGroupError"],["impl From<DeviceError> for CreateBindGroupLayoutError"],["impl From<DeviceError> for CreatePipelineLayoutError"],["impl From<DeviceError> for RenderBundleErrorInner"],["impl From<DeviceError> for ClearError"],["impl From<DeviceError> for ComputePassErrorInner"],["impl From<DeviceError> for CommandEncoderError"],["impl From<DeviceError> for QueryError"],["impl From<DeviceError> for QueryUseError"],["impl From<DeviceError> for RenderPassErrorInner"],["impl From<DeviceError> for CopyError"],["impl From<DeviceError> for WaitIdleError"],["impl From<DeviceError> for QueueSubmitError"],["impl From<DeviceError> for QueueWriteError"],["impl From<DeviceError> for CreateDispatchIndirectValidationPipelineError"],["impl From<DeviceError> for RequestDeviceError"],["impl From<DeviceError> for CreateComputePipelineError"],["impl From<DeviceError> for CreatePipelineCacheError"],["impl From<DeviceError> for CreateRenderPipelineError"],["impl From<DeviceError> for CreateShaderModuleError"],["impl From<DeviceError> for ConfigureSurfaceError"],["impl From<DeviceError> for SurfaceError"],["impl From<DeviceError> for BuildAccelerationStructureError"],["impl From<DeviceError> for CreateBlasError"],["impl From<DeviceError> for CreateTlasError"],["impl From<DeviceError> for BufferAccessError"],["impl From<DeviceError> for CreateBufferError"],["impl From<DeviceError> for CreateQuerySetError"],["impl From<DeviceError> for CreateSamplerError"],["impl From<DeviceError> for CreateTextureError"],["impl From<DeviceError> for CreateTextureViewError"],["impl From<RenderPassCompatibilityError> for RenderCommandError"],["impl From<RenderPassCompatibilityError> for RenderPassErrorInner"],["impl From<WaitIdleError> for ConfigureSurfaceError"],["impl From<SerialId> for RawId"],["impl From<CreateComputePipelineError> for CreateDispatchIndirectValidationPipelineError"],["impl From<CreateShaderModuleError> for CreateDispatchIndirectValidationPipelineError"],["impl From<DepthStencilStateError> for CreateRenderPipelineError"],["impl From<ImplicitLayoutError> for CreateComputePipelineError"],["impl From<ImplicitLayoutError> for CreateRenderPipelineError"],["impl From<PipelineCacheValidationError> for CreatePipelineCacheError"],["impl From<ValidateBlasActionsError> for QueueSubmitError"],["impl From<ValidateTlasActionsError> for QueueSubmitError"],["impl From<BufferAccessError> for QueueSubmitError"],["impl From<BufferAccessError> for CreateBufferError"],["impl From<CreateTextureViewError> for CreateTextureError"],["impl From<TextureDimensionError> for CreateTextureError"],["impl From<ResourceUsageCompatibilityError> for CreateBindGroupError"],["impl From<ResourceUsageCompatibilityError> for ComputePassErrorInner"],["impl From<ResourceUsageCompatibilityError> for RenderCommandError"],["impl From<ResourceUsageCompatibilityError> for RenderPassErrorInner"],["impl From<StageError> for CreateComputePipelineError"],["impl From<QueryType> for SimplifiedQueryType"],["impl From<Box<BinderError>> for DispatchError"],["impl From<Box<BinderError>> for DrawError"],["impl From<Box<DeviceMismatch>> for DeviceError"],["impl From<LateMinBufferBindingSizeMismatch> for DispatchError"],["impl From<LateMinBufferBindingSizeMismatch> for DrawError"],["impl From<MissingDownlevelFlags> for BindGroupLayoutEntryError"],["impl From<MissingDownlevelFlags> for RenderBundleErrorInner"],["impl From<MissingDownlevelFlags> for ComputePassErrorInner"],["impl From<MissingDownlevelFlags> for RenderPassErrorInner"],["impl From<MissingDownlevelFlags> for TransferError"],["impl From<MissingDownlevelFlags> for CreateComputePipelineError"],["impl From<MissingDownlevelFlags> for CreateRenderPipelineError"],["impl From<MissingDownlevelFlags> for ConfigureSurfaceError"],["impl From<MissingDownlevelFlags> for CreateBufferError"],["impl From<MissingDownlevelFlags> for CreateTextureError"],["impl From<MissingFeatures> for BindGroupLayoutEntryError"],["impl From<MissingFeatures> for CreatePipelineLayoutError"],["impl From<MissingFeatures> for ComputePassErrorInner"],["impl From<MissingFeatures> for CommandEncoderError"],["impl From<MissingFeatures> for QueryError"],["impl From<MissingFeatures> for RenderPassErrorInner"],["impl From<MissingFeatures> for CreatePipelineCacheError"],["impl From<MissingFeatures> for CreateRenderPipelineError"],["impl From<MissingFeatures> for CreateShaderModuleError"],["impl From<MissingFeatures> for BuildAccelerationStructureError"],["impl From<MissingFeatures> for CreateBlasError"],["impl From<MissingFeatures> for CreateTlasError"],["impl From<MissingFeatures> for CreateQuerySetError"],["impl From<MissingFeatures> for CreateSamplerError"],["impl From<MissingFeatures> for CreateTextureViewError"],["impl From<RawId> for SerialId"],["impl From<FailedLimit> for RequestDeviceError"],["impl From<DestroyedResourceError> for CreateBindGroupError"],["impl From<DestroyedResourceError> for ExecutionError"],["impl From<DestroyedResourceError> for ClearError"],["impl From<DestroyedResourceError> for ComputePassErrorInner"],["impl From<DestroyedResourceError> for RenderCommandError"],["impl From<DestroyedResourceError> for QueryError"],["impl From<DestroyedResourceError> for RenderPassErrorInner"],["impl From<DestroyedResourceError> for CopyError"],["impl From<DestroyedResourceError> for QueueSubmitError"],["impl From<DestroyedResourceError> for QueueWriteError"],["impl From<DestroyedResourceError> for BuildAccelerationStructureError"],["impl From<DestroyedResourceError> for ValidateTlasActionsError"],["impl From<DestroyedResourceError> for BufferAccessError"],["impl From<DestroyedResourceError> for CreateTextureViewError"],["impl From<InvalidResourceError> for CreateBindGroupError"],["impl From<InvalidResourceError> for CreatePipelineLayoutError"],["impl From<InvalidResourceError> for GetBindGroupLayoutError"],["impl From<InvalidResourceError> for RenderBundleErrorInner"],["impl From<InvalidResourceError> for ClearError"],["impl From<InvalidResourceError> for ComputePassErrorInner"],["impl From<InvalidResourceError> for CommandEncoderError"],["impl From<InvalidResourceError> for QueryError"],["impl From<InvalidResourceError> for RenderPassErrorInner"],["impl From<InvalidResourceError> for CopyError"],["impl From<InvalidResourceError> for QueueSubmitError"],["impl From<InvalidResourceError> for QueueWriteError"],["impl From<InvalidResourceError> for CreateComputePipelineError"],["impl From<InvalidResourceError> for CreateRenderPipelineError"],["impl From<InvalidResourceError> for BuildAccelerationStructureError"],["impl From<InvalidResourceError> for BufferAccessError"],["impl From<InvalidResourceError> for CreateTextureViewError"],["impl From<InvalidResourceError> for DestroyError"],["impl From<InvalidResourceError> for StageError"],["impl From<MissingBufferUsageError> for CreateBindGroupError"],["impl From<MissingBufferUsageError> for ClearError"],["impl From<MissingBufferUsageError> for ComputePassErrorInner"],["impl From<MissingBufferUsageError> for RenderCommandError"],["impl From<MissingBufferUsageError> for ResolveError"],["impl From<MissingBufferUsageError> for RenderPassErrorInner"],["impl From<MissingBufferUsageError> for TransferError"],["impl From<MissingBufferUsageError> for BuildAccelerationStructureError"],["impl From<MissingBufferUsageError> for BufferAccessError"],["impl From<MissingTextureUsageError> for CreateBindGroupError"],["impl From<MissingTextureUsageError> for RenderCommandError"],["impl From<MissingTextureUsageError> for RenderPassErrorInner"],["impl From<MissingTextureUsageError> for TransferError"],["impl From<TextureSelector> for TextureInitRange"],["impl From<ShaderError<ParseError>> for CreateShaderModuleError"],["impl From<ShaderError<WithSpan<ValidationError>>> for CreateShaderModuleError"],["impl<T> From<T> for RenderBundleErrorInner"]]],["wgpu_hal",[["impl From<DeviceError> for PipelineCacheError"],["impl From<DeviceError> for PipelineError"],["impl From<DeviceError> for ShaderError"],["impl From<DeviceError> for SurfaceError"],["impl From<AllocationError> for DeviceError"],["impl From<AllocationError> for DeviceError"],["impl From<MapError> for DeviceError"],["impl From<TextureFormat> for FormatAspects"],["impl<A: Api> From<ExposedAdapter<A>> for DynExposedAdapter"],["impl<A: Api> From<OpenDevice<A>> for DynOpenDevice"]]],["wgpu_types",[["impl From<Backend> for Backends"],["impl From<TextureFormat> for ColorTargetState"]]]]); + var implementors = Object.fromEntries([["naga",[["impl From<&'static str> for DiagnosticAttributeNotSupportedPosition"],["impl From<LocalType> for LookupType"],["impl From<ImageDimension> for Dim"],["impl From<ImageQuery> for ImageQuery"],["impl From<Literal> for HashableLiteral"],["impl From<ShaderStage> for Options"],["impl From<StorageFormat> for Scalar"],["impl From<StorageFormat> for ImageFormat"],["impl From<VectorSize> for Alignment"],["impl From<Error> for Error"],["impl From<TokenValue> for ExpectedToken"],["impl From<ConcreteInt<1>> for Expression"],["impl From<ConstantEvaluatorError> for PipelineConstantError"],["impl From<ConstantEvaluatorError> for ErrorKind"],["impl From<Float<1>> for Expression"],["impl From<Scalar<1>> for Expression"],["impl From<Signed<1>> for Expression"],["impl From<IndexableLengthError> for ExpressionError"],["impl From<ResolveError> for ConstExpressionError"],["impl From<ResolveError> for ExpressionError"],["impl From<ComposeError> for ConstExpressionError"],["impl From<ComposeError> for ExpressionError"],["impl From<LiteralError> for ConstantEvaluatorError"],["impl From<LiteralError> for ConstExpressionError"],["impl From<LiteralError> for ExpressionError"],["impl From<AtomicError> for FunctionError"],["impl From<FunctionError> for EntryPointError"],["impl From<SubgroupError> for FunctionError"],["impl From<InvalidHandleError> for ValidationError"],["impl From<VaryingError> for EntryPointError"],["impl From<WidthError> for ConstExpressionError"],["impl From<WidthError> for LiteralError"],["impl From<WidthError> for TypeError"],["impl From<Vec<Statement>> for Block"],["impl From<Vec<Error>> for ParseErrors"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Range<usize>> for Span"],["impl From<BadHandle> for ValidationError"],["impl From<BadHandle> for InvalidHandleError"],["impl From<BadRangeError> for ValidationError"],["impl From<BadRangeError> for InvalidHandleError"],["impl From<FunctionTracer<'_>> for FunctionMap"],["impl From<ModuleTracer<'_>> for ModuleMap"],["impl From<ConflictingDiagnosticRuleError> for Error<'_>"],["impl From<BuiltinVariations> for TextureArgsOptions"],["impl From<Location> for Span"],["impl From<LayoutError> for ValidationError"],["impl From<WithSpan<ValidationError>> for PipelineConstantError"],["impl From<FwdDepError> for ValidationError"],["impl From<FwdDepError> for InvalidHandleError"]]],["wgpu",[["impl From<<ContextWgpuCore as InterfaceTypes>::Adapter> for DispatchAdapter"],["impl From<<ContextWgpuCore as InterfaceTypes>::BindGroupLayout> for DispatchBindGroupLayout"],["impl From<<ContextWgpuCore as InterfaceTypes>::BindGroup> for DispatchBindGroup"],["impl From<<ContextWgpuCore as InterfaceTypes>::Blas> for DispatchBlas"],["impl From<<ContextWgpuCore as InterfaceTypes>::BufferMappedRange> for DispatchBufferMappedRange"],["impl From<<ContextWgpuCore as InterfaceTypes>::Buffer> for DispatchBuffer"],["impl From<<ContextWgpuCore as InterfaceTypes>::CommandBuffer> for DispatchCommandBuffer"],["impl From<<ContextWgpuCore as InterfaceTypes>::CommandEncoder> for DispatchCommandEncoder"],["impl From<<ContextWgpuCore as InterfaceTypes>::ComputePass> for DispatchComputePass"],["impl From<<ContextWgpuCore as InterfaceTypes>::ComputePipeline> for DispatchComputePipeline"],["impl From<<ContextWgpuCore as InterfaceTypes>::Device> for DispatchDevice"],["impl From<<ContextWgpuCore as InterfaceTypes>::Instance> for DispatchInstance"],["impl From<<ContextWgpuCore as InterfaceTypes>::PipelineCache> for DispatchPipelineCache"],["impl From<<ContextWgpuCore as InterfaceTypes>::PipelineLayout> for DispatchPipelineLayout"],["impl From<<ContextWgpuCore as InterfaceTypes>::QuerySet> for DispatchQuerySet"],["impl From<<ContextWgpuCore as InterfaceTypes>::QueueWriteBuffer> for DispatchQueueWriteBuffer"],["impl From<<ContextWgpuCore as InterfaceTypes>::Queue> for DispatchQueue"],["impl From<<ContextWgpuCore as InterfaceTypes>::RenderBundleEncoder> for DispatchRenderBundleEncoder"],["impl From<<ContextWgpuCore as InterfaceTypes>::RenderBundle> for DispatchRenderBundle"],["impl From<<ContextWgpuCore as InterfaceTypes>::RenderPass> for DispatchRenderPass"],["impl From<<ContextWgpuCore as InterfaceTypes>::RenderPipeline> for DispatchRenderPipeline"],["impl From<<ContextWgpuCore as InterfaceTypes>::Sampler> for DispatchSampler"],["impl From<<ContextWgpuCore as InterfaceTypes>::ShaderModule> for DispatchShaderModule"],["impl From<<ContextWgpuCore as InterfaceTypes>::SurfaceOutputDetail> for DispatchSurfaceOutputDetail"],["impl From<<ContextWgpuCore as InterfaceTypes>::Surface> for DispatchSurface"],["impl From<<ContextWgpuCore as InterfaceTypes>::TextureView> for DispatchTextureView"],["impl From<<ContextWgpuCore as InterfaceTypes>::Texture> for DispatchTexture"],["impl From<<ContextWgpuCore as InterfaceTypes>::Tlas> for DispatchTlas"],["impl From<CreateSurfaceError> for CreateSurfaceError"],["impl From<RequestDeviceError> for RequestDeviceError"],["impl From<CreateShaderModuleError> for CompilationInfo"],["impl From<ShaderError<ParseError>> for CompilationInfo"],["impl From<ShaderError<WithSpan<ValidationError>>> for CompilationInfo"],["impl From<SourceLocation> for SourceLocation"],["impl<'a, T> From<T> for SurfaceTarget<'a>
where\n T: WindowHandle + 'a,
"]]],["wgpu_core",[["impl From<&ResourceType> for BindingTypeName"],["impl From<&BindingType> for BindingTypeName"],["impl From<BindError> for RenderBundleErrorInner"],["impl From<BindError> for ComputePassErrorInner"],["impl From<BindError> for RenderPassErrorInner"],["impl From<CreateBindGroupLayoutError> for ImplicitLayoutError"],["impl From<CreatePipelineLayoutError> for ImplicitLayoutError"],["impl From<PushConstantUploadError> for ComputePassErrorInner"],["impl From<PushConstantUploadError> for RenderCommandError"],["impl From<ClearError> for TransferError"],["impl From<ClearError> for QueueWriteError"],["impl From<DispatchError> for ComputePassErrorInner"],["impl From<DrawError> for RenderBundleErrorInner"],["impl From<DrawError> for RenderPassErrorInner"],["impl From<RenderCommandError> for RenderPassErrorInner"],["impl From<CommandEncoderError> for ClearError"],["impl From<CommandEncoderError> for ComputePassErrorInner"],["impl From<CommandEncoderError> for QueryError"],["impl From<CommandEncoderError> for RenderPassErrorInner"],["impl From<CommandEncoderError> for CopyError"],["impl From<CommandEncoderError> for QueueSubmitError"],["impl From<CommandEncoderError> for BuildAccelerationStructureError"],["impl From<QueryUseError> for ComputePassErrorInner"],["impl From<QueryUseError> for CommandEncoderError"],["impl From<QueryUseError> for QueryError"],["impl From<QueryUseError> for RenderPassErrorInner"],["impl From<ResolveError> for QueryError"],["impl From<AttachmentError> for CommandEncoderError"],["impl From<ColorAttachmentError> for CreateRenderBundleError"],["impl From<ColorAttachmentError> for CommandEncoderError"],["impl From<ColorAttachmentError> for RenderPassErrorInner"],["impl From<ColorAttachmentError> for CreateRenderPipelineError"],["impl From<TransferError> for CopyError"],["impl From<TransferError> for QueueWriteError"],["impl From<DeviceError> for CreateBindGroupError"],["impl From<DeviceError> for CreateBindGroupLayoutError"],["impl From<DeviceError> for CreatePipelineLayoutError"],["impl From<DeviceError> for RenderBundleErrorInner"],["impl From<DeviceError> for ClearError"],["impl From<DeviceError> for ComputePassErrorInner"],["impl From<DeviceError> for CommandEncoderError"],["impl From<DeviceError> for QueryError"],["impl From<DeviceError> for QueryUseError"],["impl From<DeviceError> for RenderPassErrorInner"],["impl From<DeviceError> for CopyError"],["impl From<DeviceError> for WaitIdleError"],["impl From<DeviceError> for QueueSubmitError"],["impl From<DeviceError> for QueueWriteError"],["impl From<DeviceError> for CreateDispatchIndirectValidationPipelineError"],["impl From<DeviceError> for RequestDeviceError"],["impl From<DeviceError> for CreateComputePipelineError"],["impl From<DeviceError> for CreatePipelineCacheError"],["impl From<DeviceError> for CreateRenderPipelineError"],["impl From<DeviceError> for CreateShaderModuleError"],["impl From<DeviceError> for ConfigureSurfaceError"],["impl From<DeviceError> for SurfaceError"],["impl From<DeviceError> for BuildAccelerationStructureError"],["impl From<DeviceError> for CreateBlasError"],["impl From<DeviceError> for CreateTlasError"],["impl From<DeviceError> for BufferAccessError"],["impl From<DeviceError> for CreateBufferError"],["impl From<DeviceError> for CreateQuerySetError"],["impl From<DeviceError> for CreateSamplerError"],["impl From<DeviceError> for CreateTextureError"],["impl From<DeviceError> for CreateTextureViewError"],["impl From<RenderPassCompatibilityError> for RenderCommandError"],["impl From<RenderPassCompatibilityError> for RenderPassErrorInner"],["impl From<WaitIdleError> for ConfigureSurfaceError"],["impl From<SerialId> for RawId"],["impl From<CreateComputePipelineError> for CreateDispatchIndirectValidationPipelineError"],["impl From<CreateShaderModuleError> for CreateDispatchIndirectValidationPipelineError"],["impl From<DepthStencilStateError> for CreateRenderPipelineError"],["impl From<ImplicitLayoutError> for CreateComputePipelineError"],["impl From<ImplicitLayoutError> for CreateRenderPipelineError"],["impl From<PipelineCacheValidationError> for CreatePipelineCacheError"],["impl From<ValidateBlasActionsError> for QueueSubmitError"],["impl From<ValidateTlasActionsError> for QueueSubmitError"],["impl From<BufferAccessError> for QueueSubmitError"],["impl From<BufferAccessError> for CreateBufferError"],["impl From<CreateTextureViewError> for CreateTextureError"],["impl From<TextureDimensionError> for CreateTextureError"],["impl From<ResourceUsageCompatibilityError> for CreateBindGroupError"],["impl From<ResourceUsageCompatibilityError> for ComputePassErrorInner"],["impl From<ResourceUsageCompatibilityError> for RenderCommandError"],["impl From<ResourceUsageCompatibilityError> for RenderPassErrorInner"],["impl From<StageError> for CreateComputePipelineError"],["impl From<QueryType> for SimplifiedQueryType"],["impl From<Box<BinderError>> for DispatchError"],["impl From<Box<BinderError>> for DrawError"],["impl From<Box<DeviceMismatch>> for DeviceError"],["impl From<ShaderError<ParseError>> for CreateShaderModuleError"],["impl From<ShaderError<WithSpan<ValidationError>>> for CreateShaderModuleError"],["impl From<LateMinBufferBindingSizeMismatch> for DispatchError"],["impl From<LateMinBufferBindingSizeMismatch> for DrawError"],["impl From<MissingDownlevelFlags> for BindGroupLayoutEntryError"],["impl From<MissingDownlevelFlags> for RenderBundleErrorInner"],["impl From<MissingDownlevelFlags> for ComputePassErrorInner"],["impl From<MissingDownlevelFlags> for RenderPassErrorInner"],["impl From<MissingDownlevelFlags> for TransferError"],["impl From<MissingDownlevelFlags> for CreateComputePipelineError"],["impl From<MissingDownlevelFlags> for CreateRenderPipelineError"],["impl From<MissingDownlevelFlags> for ConfigureSurfaceError"],["impl From<MissingDownlevelFlags> for CreateBufferError"],["impl From<MissingDownlevelFlags> for CreateTextureError"],["impl From<MissingFeatures> for BindGroupLayoutEntryError"],["impl From<MissingFeatures> for CreatePipelineLayoutError"],["impl From<MissingFeatures> for ComputePassErrorInner"],["impl From<MissingFeatures> for CommandEncoderError"],["impl From<MissingFeatures> for QueryError"],["impl From<MissingFeatures> for RenderPassErrorInner"],["impl From<MissingFeatures> for CreatePipelineCacheError"],["impl From<MissingFeatures> for CreateRenderPipelineError"],["impl From<MissingFeatures> for CreateShaderModuleError"],["impl From<MissingFeatures> for BuildAccelerationStructureError"],["impl From<MissingFeatures> for CreateBlasError"],["impl From<MissingFeatures> for CreateTlasError"],["impl From<MissingFeatures> for CreateQuerySetError"],["impl From<MissingFeatures> for CreateSamplerError"],["impl From<MissingFeatures> for CreateTextureViewError"],["impl From<RawId> for SerialId"],["impl From<FailedLimit> for RequestDeviceError"],["impl From<DestroyedResourceError> for CreateBindGroupError"],["impl From<DestroyedResourceError> for ExecutionError"],["impl From<DestroyedResourceError> for ClearError"],["impl From<DestroyedResourceError> for ComputePassErrorInner"],["impl From<DestroyedResourceError> for RenderCommandError"],["impl From<DestroyedResourceError> for QueryError"],["impl From<DestroyedResourceError> for RenderPassErrorInner"],["impl From<DestroyedResourceError> for CopyError"],["impl From<DestroyedResourceError> for QueueSubmitError"],["impl From<DestroyedResourceError> for QueueWriteError"],["impl From<DestroyedResourceError> for BuildAccelerationStructureError"],["impl From<DestroyedResourceError> for ValidateTlasActionsError"],["impl From<DestroyedResourceError> for BufferAccessError"],["impl From<DestroyedResourceError> for CreateTextureViewError"],["impl From<InvalidResourceError> for CreateBindGroupError"],["impl From<InvalidResourceError> for CreatePipelineLayoutError"],["impl From<InvalidResourceError> for GetBindGroupLayoutError"],["impl From<InvalidResourceError> for RenderBundleErrorInner"],["impl From<InvalidResourceError> for ClearError"],["impl From<InvalidResourceError> for ComputePassErrorInner"],["impl From<InvalidResourceError> for CommandEncoderError"],["impl From<InvalidResourceError> for QueryError"],["impl From<InvalidResourceError> for RenderPassErrorInner"],["impl From<InvalidResourceError> for CopyError"],["impl From<InvalidResourceError> for QueueSubmitError"],["impl From<InvalidResourceError> for QueueWriteError"],["impl From<InvalidResourceError> for CreateComputePipelineError"],["impl From<InvalidResourceError> for CreateRenderPipelineError"],["impl From<InvalidResourceError> for BuildAccelerationStructureError"],["impl From<InvalidResourceError> for BufferAccessError"],["impl From<InvalidResourceError> for CreateTextureViewError"],["impl From<InvalidResourceError> for DestroyError"],["impl From<InvalidResourceError> for StageError"],["impl From<MissingBufferUsageError> for CreateBindGroupError"],["impl From<MissingBufferUsageError> for ClearError"],["impl From<MissingBufferUsageError> for ComputePassErrorInner"],["impl From<MissingBufferUsageError> for RenderCommandError"],["impl From<MissingBufferUsageError> for ResolveError"],["impl From<MissingBufferUsageError> for RenderPassErrorInner"],["impl From<MissingBufferUsageError> for TransferError"],["impl From<MissingBufferUsageError> for BuildAccelerationStructureError"],["impl From<MissingBufferUsageError> for BufferAccessError"],["impl From<MissingTextureUsageError> for CreateBindGroupError"],["impl From<MissingTextureUsageError> for RenderCommandError"],["impl From<MissingTextureUsageError> for RenderPassErrorInner"],["impl From<MissingTextureUsageError> for TransferError"],["impl From<TextureSelector> for TextureInitRange"],["impl<T> From<T> for RenderBundleErrorInner"]]],["wgpu_hal",[["impl From<DeviceError> for PipelineCacheError"],["impl From<DeviceError> for PipelineError"],["impl From<DeviceError> for ShaderError"],["impl From<DeviceError> for SurfaceError"],["impl From<TextureFormat> for FormatAspects"],["impl From<AllocationError> for DeviceError"],["impl From<AllocationError> for DeviceError"],["impl From<MapError> for DeviceError"],["impl<A: Api> From<ExposedAdapter<A>> for DynExposedAdapter"],["impl<A: Api> From<OpenDevice<A>> for DynOpenDevice"]]],["wgpu_types",[["impl From<Backend> for Backends"],["impl From<TextureFormat> for ColorTargetState"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[22871,25580,80386,3780,799]} \ No newline at end of file +//{"start":57,"fragment_lengths":[22871,25580,80952,3887,799]} \ No newline at end of file diff --git a/doc/type.impl/alloc/sync/struct.Arc.js b/doc/type.impl/alloc/sync/struct.Arc.js index 59648be0eb83..2d01dddd03c1 100644 --- a/doc/type.impl/alloc/sync/struct.Arc.js +++ b/doc/type.impl/alloc/sync/struct.Arc.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["wgpu",[["
§

impl<'a, A> Arbitrary<'a> for Arc<A>
where\n A: Arbitrary<'a>,

§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Arc<A>, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn try_size_hint(\n depth: usize,\n) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given\nunstructured data. Read more
","Arbitrary<'a>","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T> Arc<T>
where\n T: ?Sized,

1.17.0 · source

pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

Constructs an Arc<T> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.51.0 · source

pub unsafe fn increment_strong_count(ptr: *const T)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
1.51.0 · source

pub unsafe fn decrement_strong_count(ptr: *const T)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T> Arc<T>

1.0.0 · source

pub fn new(data: T) -> Arc<T>

Available on non-no_global_oom_handling only.

Constructs a new Arc<T>.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);
\n
1.60.0 · source

pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
where\n F: FnOnce(&Weak<T>) -> T,

Available on non-no_global_oom_handling only.

Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n
use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Constructs a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Returns a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
\n
1.82.0 · source

pub fn new_uninit() -> Arc<MaybeUninit<T>>

Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed() -> Arc<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_zeroed_alloc)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(new_zeroed_alloc)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
1.33.0 · source

pub fn pin(data: T) -> Pin<Arc<T>>

Available on non-no_global_oom_handling only.

Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T>>, return an error if allocation fails.

\n
source

pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T>, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
\n
source

pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature( allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source

pub fn allocator(this: &Arc<T, A>) -> &A

🔬This is a nightly-only experimental API. (allocator_api)

Returns a reference to the underlying allocator.

\n

Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
1.17.0 · source

pub fn into_raw(this: Arc<T, A>) -> *const T

Consumes the Arc, returning the wrapped pointer.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

🔬This is a nightly-only experimental API. (allocator_api)

Consumes the Arc, returning the wrapped pointer and allocator.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
\n
1.45.0 · source

pub fn as_ptr(this: &Arc<T, A>) -> *const T

Provides a raw pointer to the data.

\n

The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs an Arc<T, A> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The raw pointer must point to a block of memory allocated by alloc

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.4.0 · source

pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
where\n A: Clone,

Creates a new Weak pointer to this allocation.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
\n
1.15.0 · source

pub fn weak_count(this: &Arc<T, A>) -> usize

Gets the number of Weak pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
\n
1.15.0 · source

pub fn strong_count(this: &Arc<T, A>) -> usize

Gets the number of strong (Arc) pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
\n
source

pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
where\n A: Clone,

🔬This is a nightly-only experimental API. (allocator_api)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
source

pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

🔬This is a nightly-only experimental API. (allocator_api)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
1.17.0 · source

pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

1.4.0 · source

pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

Available on non-no_global_oom_handling only.

Makes a mutable reference into the given Arc.

\n

If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

\n

However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

\n

See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
\n

Weak pointers will be dissociated:

\n\n
use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n T: Clone,\n A: Allocator,

1.76.0 · source

pub fn unwrap_or_clone(this: Arc<T, A>) -> T

If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

\n

Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

\n
§Examples
\n
let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

1.4.0 · source

pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

\n

Returns None otherwise, because it is not safe to\nmutate a shared value.

\n

See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
\n
source

pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

🔬This is a nightly-only experimental API. (get_mut_unchecked)

Returns a mutable reference into the given Arc,\nwithout any check.

\n

See also get_mut, which is safe and does appropriate checks.

\n
§Safety
\n

If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
\n

Other Arc pointers to the same allocation must be to the same type.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
\n

Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,

source

pub fn new_in(data: T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc<T> in the provided allocator.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
\n
source

pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents in the provided allocator.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
source

pub fn new_cyclic_in<F>(data_fn: F, alloc: A) -> Arc<T, A>
where\n F: FnOnce(&Weak<T, A>) -> T,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc<T, A> in the given allocator while giving you a Weak<T, A> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T, A> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic_in first allocates the managed allocation for the Arc<T, A>,\nthen calls your closure, giving it a Weak<T, A> to this allocation,\nand only afterwards completes the construction of the Arc<T, A> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T, A> is not fully-constructed until Arc<T, A>::new_cyclic_in\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n

See new_cyclic

\n
source

pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

\n
source

pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
\n
source

pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
1.4.0 · source

pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, an Err is returned with the same Arc that was\npassed in.

\n

This will succeed even if there are outstanding weak references.

\n

It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
\n
1.70.0 · source

pub fn into_inner(this: Arc<T, A>) -> Option<T>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, None is returned and the Arc is dropped.

\n

This will succeed even if there are outstanding weak references.

\n

If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

\n

Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

\n
§Examples
\n

Minimal example demonstrating the guarantee that Arc::into_inner gives.

\n\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
\n

A more practical example demonstrating the need for Arc::into_inner:

\n\n
use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
1.64.0 · source§

impl<T> AsFd for Arc<T>
where\n T: AsFd + ?Sized,

This impl allows implementing traits that require AsFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_fd(&self) -> BorrowedFd<'_>

Borrows the file descriptor. Read more
","AsFd","wgpu::backend::wgpu_core::ErrorSink"],["
1.63.0 · source§

impl<T> AsRawFd for Arc<T>
where\n T: AsRawFd,

This impl allows implementing traits that require AsRawFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
","AsRawFd","wgpu::backend::wgpu_core::ErrorSink"],["
1.5.0 · source§

impl<T, A> AsRef<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
","AsRef","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Borrow<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
","Borrow","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Clone for Arc<T, A>
where\n A: Allocator + Clone,\n T: ?Sized,

source§

fn clone(&self) -> Arc<T, A>

Makes a clone of the Arc pointer.

\n

This creates another pointer to the same allocation, increasing the\nstrong reference count.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
\n
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Debug for Arc<T, A>
where\n T: Debug + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Debug","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T> Default for Arc<T>
where\n T: Default,

Available on non-no_global_oom_handling only.
source§

fn default() -> Arc<T>

Creates a new Arc<T>, with the Default value for T.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
\n
","Default","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Deref for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
","Deref","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Display for Arc<T, A>
where\n T: Display + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Display","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Drop for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn drop(&mut self)

Drops the Arc.

\n

This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

\n
§Examples
\n
use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
\n
","Drop","wgpu::backend::wgpu_core::ErrorSink"],["
1.52.0 · source§

impl<T> Error for Arc<T>
where\n T: Error + ?Sized,

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
source§

fn provide<'a>(&'a self, req: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
","Error","wgpu::backend::wgpu_core::ErrorSink"],["
1.21.0 · source§

impl<T, A> From<Box<T, A>> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

Available on non-no_global_oom_handling only.
source§

fn from(v: Box<T, A>) -> Arc<T, A>

Move a boxed object to a new, reference-counted allocation.

\n
§Example
\n
let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu::backend::wgpu_core::ErrorSink"],["
1.45.0 · source§

impl<'a, B> From<Cow<'a, B>> for Arc<B>
where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

source§

fn from(cow: Cow<'a, B>) -> Arc<B>

Creates an atomically reference-counted pointer from a clone-on-write\npointer by copying its content.

\n
§Example
\n
let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu::backend::wgpu_core::ErrorSink"],["
1.6.0 · source§

impl<T> From<T> for Arc<T>

Available on non-no_global_oom_handling only.
source§

fn from(t: T) -> Arc<T>

Converts a T into an Arc<T>

\n

The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

\n
§Example
\n
let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
\n
","From","wgpu::backend::wgpu_core::ErrorSink"],["
§

impl<H> HasDisplayHandle for Arc<H>
where\n H: HasDisplayHandle + ?Sized,

Available on crate feature alloc only.
§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.
","HasDisplayHandle","wgpu::backend::wgpu_core::ErrorSink"],["
§

impl<H> HasWindowHandle for Arc<H>
where\n H: HasWindowHandle + ?Sized,

Available on crate feature alloc only.
§

fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>

Get a handle to the window.
","HasWindowHandle","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Hash for Arc<T, A>
where\n T: Hash + ?Sized,\n A: Allocator,

source§

fn hash<H>(&self, state: &mut H)
where\n H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T> Log for Arc<T>
where\n T: Log + ?Sized,

Available on crate feature std only.
source§

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Determines if a log message with the specified metadata would be\nlogged. Read more
source§

fn log(&self, record: &Record<'_>)

Logs the Record. Read more
source§

fn flush(&self)

Flushes any buffered records. Read more
","Log","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Ord for Arc<T, A>
where\n T: Ord + ?Sized,\n A: Allocator,

source§

fn cmp(&self, other: &Arc<T, A>) -> Ordering

Comparison for two Arcs.

\n

The two are compared by calling cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
\n
1.21.0 · source§

fn max(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where\n Self: Sized,

Restrict a value to a certain interval. Read more
","Ord","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> PartialEq for Arc<T, A>
where\n T: PartialEq + ?Sized,\n A: Allocator,

source§

fn eq(&self, other: &Arc<T, A>) -> bool

Equality for two Arcs.

\n

Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
\n
source§

fn ne(&self, other: &Arc<T, A>) -> bool

Inequality for two Arcs.

\n

Two Arcs are not equal if their inner values are not equal.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
\n
","PartialEq","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> PartialOrd for Arc<T, A>
where\n T: PartialOrd + ?Sized,\n A: Allocator,

source§

fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

Partial comparison for two Arcs.

\n

The two are compared by calling partial_cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
\n
source§

fn lt(&self, other: &Arc<T, A>) -> bool

Less-than comparison for two Arcs.

\n

The two are compared by calling < on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
\n
source§

fn le(&self, other: &Arc<T, A>) -> bool

‘Less than or equal to’ comparison for two Arcs.

\n

The two are compared by calling <= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
\n
source§

fn gt(&self, other: &Arc<T, A>) -> bool

Greater-than comparison for two Arcs.

\n

The two are compared by calling > on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
\n
source§

fn ge(&self, other: &Arc<T, A>) -> bool

‘Greater than or equal to’ comparison for two Arcs.

\n

The two are compared by calling >= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
\n
","PartialOrd","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Pointer for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

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

Formats the value using the given formatter. Read more
","Pointer","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T> ResourceType for Arc<T>
where\n T: ResourceType,

source§

const TYPE: &'static str = T::TYPE

","ResourceType","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

","CoerceUnsized>","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> DerefPure for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","DerefPure","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

","DispatchFromDyn>","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Eq for Arc<T, A>
where\n T: Eq + ?Sized,\n A: Allocator,

","Eq","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> PinCoerceUnsized for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","PinCoerceUnsized","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Send for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

","Send","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Sync for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

","Sync","wgpu::backend::wgpu_core::ErrorSink"],["
1.33.0 · source§

impl<T, A> Unpin for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","Unpin","wgpu::backend::wgpu_core::ErrorSink"],["
1.9.0 · source§

impl<T, A> UnwindSafe for Arc<T, A>
where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

","UnwindSafe","wgpu::backend::wgpu_core::ErrorSink"]]],["wgpu_core",[["
§

impl<'a, A> Arbitrary<'a> for Arc<A>
where\n A: Arbitrary<'a>,

§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Arc<A>, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn try_size_hint(\n depth: usize,\n) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given\nunstructured data. Read more
","Arbitrary<'a>","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T> Arc<T>
where\n T: ?Sized,

1.17.0 · source

pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

Constructs an Arc<T> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.51.0 · source

pub unsafe fn increment_strong_count(ptr: *const T)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
1.51.0 · source

pub unsafe fn decrement_strong_count(ptr: *const T)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T> Arc<T>

1.0.0 · source

pub fn new(data: T) -> Arc<T>

Available on non-no_global_oom_handling only.

Constructs a new Arc<T>.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);
\n
1.60.0 · source

pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
where\n F: FnOnce(&Weak<T>) -> T,

Available on non-no_global_oom_handling only.

Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n
use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Constructs a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Returns a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
\n
1.82.0 · source

pub fn new_uninit() -> Arc<MaybeUninit<T>>

Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed() -> Arc<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_zeroed_alloc)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(new_zeroed_alloc)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
1.33.0 · source

pub fn pin(data: T) -> Pin<Arc<T>>

Available on non-no_global_oom_handling only.

Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T>>, return an error if allocation fails.

\n
source

pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T>, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
\n
source

pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature( allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source

pub fn allocator(this: &Arc<T, A>) -> &A

🔬This is a nightly-only experimental API. (allocator_api)

Returns a reference to the underlying allocator.

\n

Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
1.17.0 · source

pub fn into_raw(this: Arc<T, A>) -> *const T

Consumes the Arc, returning the wrapped pointer.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

🔬This is a nightly-only experimental API. (allocator_api)

Consumes the Arc, returning the wrapped pointer and allocator.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
\n
1.45.0 · source

pub fn as_ptr(this: &Arc<T, A>) -> *const T

Provides a raw pointer to the data.

\n

The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs an Arc<T, A> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The raw pointer must point to a block of memory allocated by alloc

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.4.0 · source

pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
where\n A: Clone,

Creates a new Weak pointer to this allocation.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
\n
1.15.0 · source

pub fn weak_count(this: &Arc<T, A>) -> usize

Gets the number of Weak pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
\n
1.15.0 · source

pub fn strong_count(this: &Arc<T, A>) -> usize

Gets the number of strong (Arc) pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
\n
source

pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
where\n A: Clone,

🔬This is a nightly-only experimental API. (allocator_api)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
source

pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

🔬This is a nightly-only experimental API. (allocator_api)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
1.17.0 · source

pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

1.4.0 · source

pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

Available on non-no_global_oom_handling only.

Makes a mutable reference into the given Arc.

\n

If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

\n

However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

\n

See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
\n

Weak pointers will be dissociated:

\n\n
use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n T: Clone,\n A: Allocator,

1.76.0 · source

pub fn unwrap_or_clone(this: Arc<T, A>) -> T

If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

\n

Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

\n
§Examples
\n
let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

1.4.0 · source

pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

\n

Returns None otherwise, because it is not safe to\nmutate a shared value.

\n

See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
\n
source

pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

🔬This is a nightly-only experimental API. (get_mut_unchecked)

Returns a mutable reference into the given Arc,\nwithout any check.

\n

See also get_mut, which is safe and does appropriate checks.

\n
§Safety
\n

If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
\n

Other Arc pointers to the same allocation must be to the same type.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
\n

Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,

source

pub fn new_in(data: T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc<T> in the provided allocator.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
\n
source

pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents in the provided allocator.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
source

pub fn new_cyclic_in<F>(data_fn: F, alloc: A) -> Arc<T, A>
where\n F: FnOnce(&Weak<T, A>) -> T,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc<T, A> in the given allocator while giving you a Weak<T, A> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T, A> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic_in first allocates the managed allocation for the Arc<T, A>,\nthen calls your closure, giving it a Weak<T, A> to this allocation,\nand only afterwards completes the construction of the Arc<T, A> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T, A> is not fully-constructed until Arc<T, A>::new_cyclic_in\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n

See new_cyclic

\n
source

pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

\n
source

pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
\n
source

pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
1.4.0 · source

pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, an Err is returned with the same Arc that was\npassed in.

\n

This will succeed even if there are outstanding weak references.

\n

It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
\n
1.70.0 · source

pub fn into_inner(this: Arc<T, A>) -> Option<T>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, None is returned and the Arc is dropped.

\n

This will succeed even if there are outstanding weak references.

\n

If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

\n

Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

\n
§Examples
\n

Minimal example demonstrating the guarantee that Arc::into_inner gives.

\n\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
\n

A more practical example demonstrating the need for Arc::into_inner:

\n\n
use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
1.64.0 · source§

impl<T> AsFd for Arc<T>
where\n T: AsFd + ?Sized,

This impl allows implementing traits that require AsFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_fd(&self) -> BorrowedFd<'_>

Borrows the file descriptor. Read more
","AsFd","wgpu_core::pool::ResourcePoolSlot"],["
1.63.0 · source§

impl<T> AsRawFd for Arc<T>
where\n T: AsRawFd,

This impl allows implementing traits that require AsRawFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
","AsRawFd","wgpu_core::pool::ResourcePoolSlot"],["
1.5.0 · source§

impl<T, A> AsRef<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
","AsRef","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Borrow<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
","Borrow","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Clone for Arc<T, A>
where\n A: Allocator + Clone,\n T: ?Sized,

source§

fn clone(&self) -> Arc<T, A>

Makes a clone of the Arc pointer.

\n

This creates another pointer to the same allocation, increasing the\nstrong reference count.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
\n
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Debug for Arc<T, A>
where\n T: Debug + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Debug","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T> Default for Arc<T>
where\n T: Default,

Available on non-no_global_oom_handling only.
source§

fn default() -> Arc<T>

Creates a new Arc<T>, with the Default value for T.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
\n
","Default","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Deref for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
","Deref","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Display for Arc<T, A>
where\n T: Display + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Display","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Drop for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn drop(&mut self)

Drops the Arc.

\n

This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

\n
§Examples
\n
use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
\n
","Drop","wgpu_core::pool::ResourcePoolSlot"],["
1.52.0 · source§

impl<T> Error for Arc<T>
where\n T: Error + ?Sized,

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
source§

fn provide<'a>(&'a self, req: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
","Error","wgpu_core::pool::ResourcePoolSlot"],["
1.21.0 · source§

impl<T, A> From<Box<T, A>> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

Available on non-no_global_oom_handling only.
source§

fn from(v: Box<T, A>) -> Arc<T, A>

Move a boxed object to a new, reference-counted allocation.

\n
§Example
\n
let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu_core::pool::ResourcePoolSlot"],["
1.45.0 · source§

impl<'a, B> From<Cow<'a, B>> for Arc<B>
where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

source§

fn from(cow: Cow<'a, B>) -> Arc<B>

Creates an atomically reference-counted pointer from a clone-on-write\npointer by copying its content.

\n
§Example
\n
let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu_core::pool::ResourcePoolSlot"],["
1.6.0 · source§

impl<T> From<T> for Arc<T>

Available on non-no_global_oom_handling only.
source§

fn from(t: T) -> Arc<T>

Converts a T into an Arc<T>

\n

The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

\n
§Example
\n
let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
\n
","From","wgpu_core::pool::ResourcePoolSlot"],["
§

impl<H> HasDisplayHandle for Arc<H>
where\n H: HasDisplayHandle + ?Sized,

Available on crate feature alloc only.
§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.
","HasDisplayHandle","wgpu_core::pool::ResourcePoolSlot"],["
§

impl<H> HasWindowHandle for Arc<H>
where\n H: HasWindowHandle + ?Sized,

Available on crate feature alloc only.
§

fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>

Get a handle to the window.
","HasWindowHandle","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Hash for Arc<T, A>
where\n T: Hash + ?Sized,\n A: Allocator,

source§

fn hash<H>(&self, state: &mut H)
where\n H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T> Log for Arc<T>
where\n T: Log + ?Sized,

Available on crate feature std only.
source§

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Determines if a log message with the specified metadata would be\nlogged. Read more
source§

fn log(&self, record: &Record<'_>)

Logs the Record. Read more
source§

fn flush(&self)

Flushes any buffered records. Read more
","Log","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Ord for Arc<T, A>
where\n T: Ord + ?Sized,\n A: Allocator,

source§

fn cmp(&self, other: &Arc<T, A>) -> Ordering

Comparison for two Arcs.

\n

The two are compared by calling cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
\n
1.21.0 · source§

fn max(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where\n Self: Sized,

Restrict a value to a certain interval. Read more
","Ord","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> PartialEq for Arc<T, A>
where\n T: PartialEq + ?Sized,\n A: Allocator,

source§

fn eq(&self, other: &Arc<T, A>) -> bool

Equality for two Arcs.

\n

Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
\n
source§

fn ne(&self, other: &Arc<T, A>) -> bool

Inequality for two Arcs.

\n

Two Arcs are not equal if their inner values are not equal.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
\n
","PartialEq","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> PartialOrd for Arc<T, A>
where\n T: PartialOrd + ?Sized,\n A: Allocator,

source§

fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

Partial comparison for two Arcs.

\n

The two are compared by calling partial_cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
\n
source§

fn lt(&self, other: &Arc<T, A>) -> bool

Less-than comparison for two Arcs.

\n

The two are compared by calling < on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
\n
source§

fn le(&self, other: &Arc<T, A>) -> bool

‘Less than or equal to’ comparison for two Arcs.

\n

The two are compared by calling <= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
\n
source§

fn gt(&self, other: &Arc<T, A>) -> bool

Greater-than comparison for two Arcs.

\n

The two are compared by calling > on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
\n
source§

fn ge(&self, other: &Arc<T, A>) -> bool

‘Greater than or equal to’ comparison for two Arcs.

\n

The two are compared by calling >= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
\n
","PartialOrd","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Pointer for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

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

Formats the value using the given formatter. Read more
","Pointer","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T: ResourceType> ResourceType for Arc<T>

source§

const TYPE: &'static str = T::TYPE

","ResourceType","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T: StorageItem> StorageItem for Arc<T>

","StorageItem","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

","CoerceUnsized>","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> DerefPure for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","DerefPure","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

","DispatchFromDyn>","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Eq for Arc<T, A>
where\n T: Eq + ?Sized,\n A: Allocator,

","Eq","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> PinCoerceUnsized for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","PinCoerceUnsized","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Send for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

","Send","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Sync for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

","Sync","wgpu_core::pool::ResourcePoolSlot"],["
1.33.0 · source§

impl<T, A> Unpin for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","Unpin","wgpu_core::pool::ResourcePoolSlot"],["
1.9.0 · source§

impl<T, A> UnwindSafe for Arc<T, A>
where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

","UnwindSafe","wgpu_core::pool::ResourcePoolSlot"]]],["wgpu_test",[["
§

impl<'a, A> Arbitrary<'a> for Arc<A>
where\n A: Arbitrary<'a>,

§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Arc<A>, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn try_size_hint(\n depth: usize,\n) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given\nunstructured data. Read more
","Arbitrary<'a>","wgpu_test::config::RunTestAsync"],["
source§

impl<T> Arc<T>
where\n T: ?Sized,

1.17.0 · source

pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

Constructs an Arc<T> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.51.0 · source

pub unsafe fn increment_strong_count(ptr: *const T)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
1.51.0 · source

pub unsafe fn decrement_strong_count(ptr: *const T)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T> Arc<T>

1.0.0 · source

pub fn new(data: T) -> Arc<T>

Constructs a new Arc<T>.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);
\n
1.60.0 · source

pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
where\n F: FnOnce(&Weak<T>) -> T,

Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n
use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Constructs a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Returns a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
\n
1.82.0 · source

pub fn new_uninit() -> Arc<MaybeUninit<T>>

Constructs a new Arc with uninitialized contents.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed() -> Arc<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_zeroed_alloc)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(new_zeroed_alloc)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
1.33.0 · source

pub fn pin(data: T) -> Pin<Arc<T>>

Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T>>, return an error if allocation fails.

\n
source

pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T>, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
\n
source

pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature( allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source

pub fn allocator(this: &Arc<T, A>) -> &A

🔬This is a nightly-only experimental API. (allocator_api)

Returns a reference to the underlying allocator.

\n

Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
1.17.0 · source

pub fn into_raw(this: Arc<T, A>) -> *const T

Consumes the Arc, returning the wrapped pointer.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

🔬This is a nightly-only experimental API. (allocator_api)

Consumes the Arc, returning the wrapped pointer and allocator.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
\n
1.45.0 · source

pub fn as_ptr(this: &Arc<T, A>) -> *const T

Provides a raw pointer to the data.

\n

The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs an Arc<T, A> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The raw pointer must point to a block of memory allocated by alloc

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.4.0 · source

pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
where\n A: Clone,

Creates a new Weak pointer to this allocation.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
\n
1.15.0 · source

pub fn weak_count(this: &Arc<T, A>) -> usize

Gets the number of Weak pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
\n
1.15.0 · source

pub fn strong_count(this: &Arc<T, A>) -> usize

Gets the number of strong (Arc) pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
\n
source

pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
where\n A: Clone,

🔬This is a nightly-only experimental API. (allocator_api)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
source

pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

🔬This is a nightly-only experimental API. (allocator_api)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
1.17.0 · source

pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

1.4.0 · source

pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

Makes a mutable reference into the given Arc.

\n

If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

\n

However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

\n

See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
\n

Weak pointers will be dissociated:

\n\n
use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n T: Clone,\n A: Allocator,

1.76.0 · source

pub fn unwrap_or_clone(this: Arc<T, A>) -> T

If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

\n

Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

\n
§Examples
\n
let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

1.4.0 · source

pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

\n

Returns None otherwise, because it is not safe to\nmutate a shared value.

\n

See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
\n
source

pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

🔬This is a nightly-only experimental API. (get_mut_unchecked)

Returns a mutable reference into the given Arc,\nwithout any check.

\n

See also get_mut, which is safe and does appropriate checks.

\n
§Safety
\n

If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
\n

Other Arc pointers to the same allocation must be to the same type.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
\n

Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,

source

pub fn new_in(data: T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T> in the provided allocator.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
\n
source

pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents in the provided allocator.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
source

pub fn new_cyclic_in<F>(data_fn: F, alloc: A) -> Arc<T, A>
where\n F: FnOnce(&Weak<T, A>) -> T,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T, A> in the given allocator while giving you a Weak<T, A> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T, A> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic_in first allocates the managed allocation for the Arc<T, A>,\nthen calls your closure, giving it a Weak<T, A> to this allocation,\nand only afterwards completes the construction of the Arc<T, A> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T, A> is not fully-constructed until Arc<T, A>::new_cyclic_in\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n

See new_cyclic

\n
source

pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

\n
source

pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
\n
source

pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
1.4.0 · source

pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, an Err is returned with the same Arc that was\npassed in.

\n

This will succeed even if there are outstanding weak references.

\n

It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
\n
1.70.0 · source

pub fn into_inner(this: Arc<T, A>) -> Option<T>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, None is returned and the Arc is dropped.

\n

This will succeed even if there are outstanding weak references.

\n

If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

\n

Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

\n
§Examples
\n

Minimal example demonstrating the guarantee that Arc::into_inner gives.

\n\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
\n

A more practical example demonstrating the need for Arc::into_inner:

\n\n
use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
\n
",0,"wgpu_test::config::RunTestAsync"],["
1.64.0 · source§

impl<T> AsFd for Arc<T>
where\n T: AsFd + ?Sized,

This impl allows implementing traits that require AsFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_fd(&self) -> BorrowedFd<'_>

Borrows the file descriptor. Read more
","AsFd","wgpu_test::config::RunTestAsync"],["
1.63.0 · source§

impl<T> AsRawFd for Arc<T>
where\n T: AsRawFd,

This impl allows implementing traits that require AsRawFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
","AsRawFd","wgpu_test::config::RunTestAsync"],["
1.5.0 · source§

impl<T, A> AsRef<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
","AsRef","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Borrow<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
","Borrow","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Clone for Arc<T, A>
where\n A: Allocator + Clone,\n T: ?Sized,

source§

fn clone(&self) -> Arc<T, A>

Makes a clone of the Arc pointer.

\n

This creates another pointer to the same allocation, increasing the\nstrong reference count.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
\n
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Debug for Arc<T, A>
where\n T: Debug + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Debug","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T> Default for Arc<T>
where\n T: Default,

source§

fn default() -> Arc<T>

Creates a new Arc<T>, with the Default value for T.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
\n
","Default","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Deref for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
","Deref","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Display for Arc<T, A>
where\n T: Display + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Display","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Drop for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn drop(&mut self)

Drops the Arc.

\n

This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

\n
§Examples
\n
use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
\n
","Drop","wgpu_test::config::RunTestAsync"],["
1.52.0 · source§

impl<T> Error for Arc<T>
where\n T: Error + ?Sized,

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
source§

fn provide<'a>(&'a self, req: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
","Error","wgpu_test::config::RunTestAsync"],["
1.21.0 · source§

impl<T, A> From<Box<T, A>> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn from(v: Box<T, A>) -> Arc<T, A>

Move a boxed object to a new, reference-counted allocation.

\n
§Example
\n
let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu_test::config::RunTestAsync"],["
1.45.0 · source§

impl<'a, B> From<Cow<'a, B>> for Arc<B>
where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

source§

fn from(cow: Cow<'a, B>) -> Arc<B>

Creates an atomically reference-counted pointer from a clone-on-write\npointer by copying its content.

\n
§Example
\n
let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu_test::config::RunTestAsync"],["
1.6.0 · source§

impl<T> From<T> for Arc<T>

source§

fn from(t: T) -> Arc<T>

Converts a T into an Arc<T>

\n

The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

\n
§Example
\n
let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
\n
","From","wgpu_test::config::RunTestAsync"],["
§

impl<H> HasDisplayHandle for Arc<H>
where\n H: HasDisplayHandle + ?Sized,

§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.
","HasDisplayHandle","wgpu_test::config::RunTestAsync"],["
§

impl<H> HasWindowHandle for Arc<H>
where\n H: HasWindowHandle + ?Sized,

§

fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>

Get a handle to the window.
","HasWindowHandle","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Hash for Arc<T, A>
where\n T: Hash + ?Sized,\n A: Allocator,

source§

fn hash<H>(&self, state: &mut H)
where\n H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","wgpu_test::config::RunTestAsync"],["
source§

impl<T> Log for Arc<T>
where\n T: Log + ?Sized,

source§

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Determines if a log message with the specified metadata would be\nlogged. Read more
source§

fn log(&self, record: &Record<'_>)

Logs the Record. Read more
source§

fn flush(&self)

Flushes any buffered records. Read more
","Log","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Ord for Arc<T, A>
where\n T: Ord + ?Sized,\n A: Allocator,

source§

fn cmp(&self, other: &Arc<T, A>) -> Ordering

Comparison for two Arcs.

\n

The two are compared by calling cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
\n
1.21.0 · source§

fn max(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where\n Self: Sized,

Restrict a value to a certain interval. Read more
","Ord","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> PartialEq for Arc<T, A>
where\n T: PartialEq + ?Sized,\n A: Allocator,

source§

fn eq(&self, other: &Arc<T, A>) -> bool

Equality for two Arcs.

\n

Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
\n
source§

fn ne(&self, other: &Arc<T, A>) -> bool

Inequality for two Arcs.

\n

Two Arcs are not equal if their inner values are not equal.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
\n
","PartialEq","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> PartialOrd for Arc<T, A>
where\n T: PartialOrd + ?Sized,\n A: Allocator,

source§

fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

Partial comparison for two Arcs.

\n

The two are compared by calling partial_cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
\n
source§

fn lt(&self, other: &Arc<T, A>) -> bool

Less-than comparison for two Arcs.

\n

The two are compared by calling < on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
\n
source§

fn le(&self, other: &Arc<T, A>) -> bool

‘Less than or equal to’ comparison for two Arcs.

\n

The two are compared by calling <= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
\n
source§

fn gt(&self, other: &Arc<T, A>) -> bool

Greater-than comparison for two Arcs.

\n

The two are compared by calling > on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
\n
source§

fn ge(&self, other: &Arc<T, A>) -> bool

‘Greater than or equal to’ comparison for two Arcs.

\n

The two are compared by calling >= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
\n
","PartialOrd","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Pointer for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

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

Formats the value using the given formatter. Read more
","Pointer","wgpu_test::config::RunTestAsync"],["
§

impl<T> ResourceType for Arc<T>
where\n T: ResourceType,

§

const TYPE: &'static str = T::TYPE

","ResourceType","wgpu_test::config::RunTestAsync"],["
§

impl<T> ValueParserFactory for Arc<T>
where\n T: ValueParserFactory + Send + Sync + Clone,\n <T as ValueParserFactory>::Parser: TypedValueParser<Value = T>,

§

type Parser = MapValueParser<<T as ValueParserFactory>::Parser, fn(_: T) -> Arc<T>>

Generated parser, usually [ValueParser]. Read more
§

fn value_parser() -> <Arc<T> as ValueParserFactory>::Parser

Create the specified [Self::Parser]
","ValueParserFactory","wgpu_test::config::RunTestAsync"],["
source§

impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

","CoerceUnsized>","wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> DerefPure for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","DerefPure","wgpu_test::config::RunTestAsync"],["
source§

impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

","DispatchFromDyn>","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Eq for Arc<T, A>
where\n T: Eq + ?Sized,\n A: Allocator,

","Eq","wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> PinCoerceUnsized for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","PinCoerceUnsized","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Send for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

","Send","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Sync for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

","Sync","wgpu_test::config::RunTestAsync"],["
1.33.0 · source§

impl<T, A> Unpin for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","Unpin","wgpu_test::config::RunTestAsync"],["
1.9.0 · source§

impl<T, A> UnwindSafe for Arc<T, A>
where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

","UnwindSafe","wgpu_test::config::RunTestAsync"]]]]); + var type_impls = Object.fromEntries([["wgpu",[["
§

impl<'a, A> Arbitrary<'a> for Arc<A>
where\n A: Arbitrary<'a>,

§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Arc<A>, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn try_size_hint(\n depth: usize,\n) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given\nunstructured data. Read more
","Arbitrary<'a>","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T> Arc<T>
where\n T: ?Sized,

1.17.0 · source

pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

Constructs an Arc<T> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.51.0 · source

pub unsafe fn increment_strong_count(ptr: *const T)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
1.51.0 · source

pub unsafe fn decrement_strong_count(ptr: *const T)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T> Arc<T>

1.0.0 · source

pub fn new(data: T) -> Arc<T>

Available on non-no_global_oom_handling only.

Constructs a new Arc<T>.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);
\n
1.60.0 · source

pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
where\n F: FnOnce(&Weak<T>) -> T,

Available on non-no_global_oom_handling only.

Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n
use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Constructs a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Returns a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
\n
1.82.0 · source

pub fn new_uninit() -> Arc<MaybeUninit<T>>

Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed() -> Arc<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_zeroed_alloc)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(new_zeroed_alloc)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
1.33.0 · source

pub fn pin(data: T) -> Pin<Arc<T>>

Available on non-no_global_oom_handling only.

Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T>>, return an error if allocation fails.

\n
source

pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T>, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
\n
source

pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature( allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source

pub fn allocator(this: &Arc<T, A>) -> &A

🔬This is a nightly-only experimental API. (allocator_api)

Returns a reference to the underlying allocator.

\n

Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
1.17.0 · source

pub fn into_raw(this: Arc<T, A>) -> *const T

Consumes the Arc, returning the wrapped pointer.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

🔬This is a nightly-only experimental API. (allocator_api)

Consumes the Arc, returning the wrapped pointer and allocator.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
\n
1.45.0 · source

pub fn as_ptr(this: &Arc<T, A>) -> *const T

Provides a raw pointer to the data.

\n

The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs an Arc<T, A> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The raw pointer must point to a block of memory allocated by alloc

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.4.0 · source

pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
where\n A: Clone,

Creates a new Weak pointer to this allocation.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
\n
1.15.0 · source

pub fn weak_count(this: &Arc<T, A>) -> usize

Gets the number of Weak pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
\n
1.15.0 · source

pub fn strong_count(this: &Arc<T, A>) -> usize

Gets the number of strong (Arc) pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
\n
source

pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
where\n A: Clone,

🔬This is a nightly-only experimental API. (allocator_api)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
source

pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

🔬This is a nightly-only experimental API. (allocator_api)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
1.17.0 · source

pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

1.4.0 · source

pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

Available on non-no_global_oom_handling only.

Makes a mutable reference into the given Arc.

\n

If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

\n

However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

\n

See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
\n

Weak pointers will be dissociated:

\n\n
use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n T: Clone,\n A: Allocator,

1.76.0 · source

pub fn unwrap_or_clone(this: Arc<T, A>) -> T

If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

\n

Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

\n
§Examples
\n
let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

1.4.0 · source

pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

\n

Returns None otherwise, because it is not safe to\nmutate a shared value.

\n

See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
\n
source

pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

🔬This is a nightly-only experimental API. (get_mut_unchecked)

Returns a mutable reference into the given Arc,\nwithout any check.

\n

See also get_mut, which is safe and does appropriate checks.

\n
§Safety
\n

If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
\n

Other Arc pointers to the same allocation must be to the same type.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
\n

Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,

source

pub fn new_in(data: T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc<T> in the provided allocator.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
\n
source

pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents in the provided allocator.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
source

pub fn new_cyclic_in<F>(data_fn: F, alloc: A) -> Arc<T, A>
where\n F: FnOnce(&Weak<T, A>) -> T,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc<T, A> in the given allocator while giving you a Weak<T, A> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T, A> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic_in first allocates the managed allocation for the Arc<T, A>,\nthen calls your closure, giving it a Weak<T, A> to this allocation,\nand only afterwards completes the construction of the Arc<T, A> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T, A> is not fully-constructed until Arc<T, A>::new_cyclic_in\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n

See new_cyclic

\n
source

pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

\n
source

pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
\n
source

pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
1.4.0 · source

pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, an Err is returned with the same Arc that was\npassed in.

\n

This will succeed even if there are outstanding weak references.

\n

It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
\n
1.70.0 · source

pub fn into_inner(this: Arc<T, A>) -> Option<T>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, None is returned and the Arc is dropped.

\n

This will succeed even if there are outstanding weak references.

\n

If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

\n

Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

\n
§Examples
\n

Minimal example demonstrating the guarantee that Arc::into_inner gives.

\n\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
\n

A more practical example demonstrating the need for Arc::into_inner:

\n\n
use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
\n
",0,"wgpu::backend::wgpu_core::ErrorSink"],["
1.64.0 · source§

impl<T> AsFd for Arc<T>
where\n T: AsFd + ?Sized,

This impl allows implementing traits that require AsFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_fd(&self) -> BorrowedFd<'_>

Borrows the file descriptor. Read more
","AsFd","wgpu::backend::wgpu_core::ErrorSink"],["
1.63.0 · source§

impl<T> AsRawFd for Arc<T>
where\n T: AsRawFd,

This impl allows implementing traits that require AsRawFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
","AsRawFd","wgpu::backend::wgpu_core::ErrorSink"],["
1.5.0 · source§

impl<T, A> AsRef<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
","AsRef","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Borrow<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
","Borrow","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Clone for Arc<T, A>
where\n A: Allocator + Clone,\n T: ?Sized,

source§

fn clone(&self) -> Arc<T, A>

Makes a clone of the Arc pointer.

\n

This creates another pointer to the same allocation, increasing the\nstrong reference count.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
\n
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Debug for Arc<T, A>
where\n T: Debug + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Debug","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T> Default for Arc<T>
where\n T: Default,

Available on non-no_global_oom_handling only.
source§

fn default() -> Arc<T>

Creates a new Arc<T>, with the Default value for T.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
\n
","Default","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Deref for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
","Deref","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Display for Arc<T, A>
where\n T: Display + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Display","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Drop for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn drop(&mut self)

Drops the Arc.

\n

This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

\n
§Examples
\n
use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
\n
","Drop","wgpu::backend::wgpu_core::ErrorSink"],["
1.52.0 · source§

impl<T> Error for Arc<T>
where\n T: Error + ?Sized,

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
source§

fn provide<'a>(&'a self, req: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
","Error","wgpu::backend::wgpu_core::ErrorSink"],["
1.21.0 · source§

impl<T, A> From<Box<T, A>> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

Available on non-no_global_oom_handling only.
source§

fn from(v: Box<T, A>) -> Arc<T, A>

Move a boxed object to a new, reference-counted allocation.

\n
§Example
\n
let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu::backend::wgpu_core::ErrorSink"],["
1.45.0 · source§

impl<'a, B> From<Cow<'a, B>> for Arc<B>
where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

source§

fn from(cow: Cow<'a, B>) -> Arc<B>

Creates an atomically reference-counted pointer from a clone-on-write\npointer by copying its content.

\n
§Example
\n
let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu::backend::wgpu_core::ErrorSink"],["
1.6.0 · source§

impl<T> From<T> for Arc<T>

Available on non-no_global_oom_handling only.
source§

fn from(t: T) -> Arc<T>

Converts a T into an Arc<T>

\n

The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

\n
§Example
\n
let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
\n
","From","wgpu::backend::wgpu_core::ErrorSink"],["
§

impl<H> HasDisplayHandle for Arc<H>
where\n H: HasDisplayHandle + ?Sized,

Available on crate feature alloc only.
§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.
","HasDisplayHandle","wgpu::backend::wgpu_core::ErrorSink"],["
§

impl<H> HasWindowHandle for Arc<H>
where\n H: HasWindowHandle + ?Sized,

Available on crate feature alloc only.
§

fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>

Get a handle to the window.
","HasWindowHandle","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Hash for Arc<T, A>
where\n T: Hash + ?Sized,\n A: Allocator,

source§

fn hash<H>(&self, state: &mut H)
where\n H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T> Log for Arc<T>
where\n T: Log + ?Sized,

Available on crate feature std only.
source§

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Determines if a log message with the specified metadata would be\nlogged. Read more
source§

fn log(&self, record: &Record<'_>)

Logs the Record. Read more
source§

fn flush(&self)

Flushes any buffered records. Read more
","Log","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Ord for Arc<T, A>
where\n T: Ord + ?Sized,\n A: Allocator,

source§

fn cmp(&self, other: &Arc<T, A>) -> Ordering

Comparison for two Arcs.

\n

The two are compared by calling cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
\n
1.21.0 · source§

fn max(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where\n Self: Sized,

Restrict a value to a certain interval. Read more
","Ord","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> PartialEq for Arc<T, A>
where\n T: PartialEq + ?Sized,\n A: Allocator,

source§

fn eq(&self, other: &Arc<T, A>) -> bool

Equality for two Arcs.

\n

Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
\n
source§

fn ne(&self, other: &Arc<T, A>) -> bool

Inequality for two Arcs.

\n

Two Arcs are not equal if their inner values are not equal.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
\n
","PartialEq","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> PartialOrd for Arc<T, A>
where\n T: PartialOrd + ?Sized,\n A: Allocator,

source§

fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

Partial comparison for two Arcs.

\n

The two are compared by calling partial_cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
\n
source§

fn lt(&self, other: &Arc<T, A>) -> bool

Less-than comparison for two Arcs.

\n

The two are compared by calling < on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
\n
source§

fn le(&self, other: &Arc<T, A>) -> bool

‘Less than or equal to’ comparison for two Arcs.

\n

The two are compared by calling <= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
\n
source§

fn gt(&self, other: &Arc<T, A>) -> bool

Greater-than comparison for two Arcs.

\n

The two are compared by calling > on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
\n
source§

fn ge(&self, other: &Arc<T, A>) -> bool

‘Greater than or equal to’ comparison for two Arcs.

\n

The two are compared by calling >= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
\n
","PartialOrd","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Pointer for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

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

Formats the value using the given formatter. Read more
","Pointer","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T> ResourceType for Arc<T>
where\n T: ResourceType,

source§

const TYPE: &'static str = T::TYPE

","ResourceType","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

","CoerceUnsized>","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> DerefPure for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","DerefPure","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

","DispatchFromDyn>","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Eq for Arc<T, A>
where\n T: Eq + ?Sized,\n A: Allocator,

","Eq","wgpu::backend::wgpu_core::ErrorSink"],["
source§

impl<T, A> PinCoerceUnsized for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","PinCoerceUnsized","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Send for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

","Send","wgpu::backend::wgpu_core::ErrorSink"],["
1.0.0 · source§

impl<T, A> Sync for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

","Sync","wgpu::backend::wgpu_core::ErrorSink"],["
1.33.0 · source§

impl<T, A> Unpin for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","Unpin","wgpu::backend::wgpu_core::ErrorSink"],["
1.9.0 · source§

impl<T, A> UnwindSafe for Arc<T, A>
where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

","UnwindSafe","wgpu::backend::wgpu_core::ErrorSink"]]],["wgpu_core",[["
§

impl<'a, A> Arbitrary<'a> for Arc<A>
where\n A: Arbitrary<'a>,

§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Arc<A>, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn try_size_hint(\n depth: usize,\n) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given\nunstructured data. Read more
","Arbitrary<'a>","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T> Arc<T>
where\n T: ?Sized,

1.17.0 · source

pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

Constructs an Arc<T> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.51.0 · source

pub unsafe fn increment_strong_count(ptr: *const T)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
1.51.0 · source

pub unsafe fn decrement_strong_count(ptr: *const T)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T> Arc<T>

1.0.0 · source

pub fn new(data: T) -> Arc<T>

Available on non-no_global_oom_handling only.

Constructs a new Arc<T>.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);
\n
1.60.0 · source

pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
where\n F: FnOnce(&Weak<T>) -> T,

Available on non-no_global_oom_handling only.

Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n
use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Constructs a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Returns a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
\n
1.82.0 · source

pub fn new_uninit() -> Arc<MaybeUninit<T>>

Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed() -> Arc<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_zeroed_alloc)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(new_zeroed_alloc)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
1.33.0 · source

pub fn pin(data: T) -> Pin<Arc<T>>

Available on non-no_global_oom_handling only.

Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T>>, return an error if allocation fails.

\n
source

pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T>, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
\n
source

pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature( allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source

pub fn allocator(this: &Arc<T, A>) -> &A

🔬This is a nightly-only experimental API. (allocator_api)

Returns a reference to the underlying allocator.

\n

Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
1.17.0 · source

pub fn into_raw(this: Arc<T, A>) -> *const T

Consumes the Arc, returning the wrapped pointer.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

🔬This is a nightly-only experimental API. (allocator_api)

Consumes the Arc, returning the wrapped pointer and allocator.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
\n
1.45.0 · source

pub fn as_ptr(this: &Arc<T, A>) -> *const T

Provides a raw pointer to the data.

\n

The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs an Arc<T, A> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The raw pointer must point to a block of memory allocated by alloc

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.4.0 · source

pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
where\n A: Clone,

Creates a new Weak pointer to this allocation.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
\n
1.15.0 · source

pub fn weak_count(this: &Arc<T, A>) -> usize

Gets the number of Weak pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
\n
1.15.0 · source

pub fn strong_count(this: &Arc<T, A>) -> usize

Gets the number of strong (Arc) pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
\n
source

pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
where\n A: Clone,

🔬This is a nightly-only experimental API. (allocator_api)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
source

pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

🔬This is a nightly-only experimental API. (allocator_api)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
1.17.0 · source

pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

1.4.0 · source

pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

Available on non-no_global_oom_handling only.

Makes a mutable reference into the given Arc.

\n

If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

\n

However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

\n

See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
\n

Weak pointers will be dissociated:

\n\n
use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n T: Clone,\n A: Allocator,

1.76.0 · source

pub fn unwrap_or_clone(this: Arc<T, A>) -> T

If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

\n

Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

\n
§Examples
\n
let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

1.4.0 · source

pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

\n

Returns None otherwise, because it is not safe to\nmutate a shared value.

\n

See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
\n
source

pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

🔬This is a nightly-only experimental API. (get_mut_unchecked)

Returns a mutable reference into the given Arc,\nwithout any check.

\n

See also get_mut, which is safe and does appropriate checks.

\n
§Safety
\n

If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
\n

Other Arc pointers to the same allocation must be to the same type.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
\n

Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,

source

pub fn new_in(data: T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc<T> in the provided allocator.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
\n
source

pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents in the provided allocator.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
source

pub fn new_cyclic_in<F>(data_fn: F, alloc: A) -> Arc<T, A>
where\n F: FnOnce(&Weak<T, A>) -> T,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Arc<T, A> in the given allocator while giving you a Weak<T, A> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T, A> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic_in first allocates the managed allocation for the Arc<T, A>,\nthen calls your closure, giving it a Weak<T, A> to this allocation,\nand only afterwards completes the construction of the Arc<T, A> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T, A> is not fully-constructed until Arc<T, A>::new_cyclic_in\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n

See new_cyclic

\n
source

pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)
Available on non-no_global_oom_handling only.

Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

\n
source

pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
\n
source

pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
1.4.0 · source

pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, an Err is returned with the same Arc that was\npassed in.

\n

This will succeed even if there are outstanding weak references.

\n

It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
\n
1.70.0 · source

pub fn into_inner(this: Arc<T, A>) -> Option<T>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, None is returned and the Arc is dropped.

\n

This will succeed even if there are outstanding weak references.

\n

If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

\n

Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

\n
§Examples
\n

Minimal example demonstrating the guarantee that Arc::into_inner gives.

\n\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
\n

A more practical example demonstrating the need for Arc::into_inner:

\n\n
use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
\n
",0,"wgpu_core::pool::ResourcePoolSlot"],["
1.64.0 · source§

impl<T> AsFd for Arc<T>
where\n T: AsFd + ?Sized,

This impl allows implementing traits that require AsFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_fd(&self) -> BorrowedFd<'_>

Borrows the file descriptor. Read more
","AsFd","wgpu_core::pool::ResourcePoolSlot"],["
1.63.0 · source§

impl<T> AsRawFd for Arc<T>
where\n T: AsRawFd,

This impl allows implementing traits that require AsRawFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
","AsRawFd","wgpu_core::pool::ResourcePoolSlot"],["
1.5.0 · source§

impl<T, A> AsRef<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
","AsRef","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Borrow<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
","Borrow","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Clone for Arc<T, A>
where\n A: Allocator + Clone,\n T: ?Sized,

source§

fn clone(&self) -> Arc<T, A>

Makes a clone of the Arc pointer.

\n

This creates another pointer to the same allocation, increasing the\nstrong reference count.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
\n
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Debug for Arc<T, A>
where\n T: Debug + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Debug","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T> Default for Arc<T>
where\n T: Default,

Available on non-no_global_oom_handling only.
source§

fn default() -> Arc<T>

Creates a new Arc<T>, with the Default value for T.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
\n
","Default","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Deref for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
","Deref","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Display for Arc<T, A>
where\n T: Display + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Display","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Drop for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn drop(&mut self)

Drops the Arc.

\n

This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

\n
§Examples
\n
use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
\n
","Drop","wgpu_core::pool::ResourcePoolSlot"],["
1.52.0 · source§

impl<T> Error for Arc<T>
where\n T: Error + ?Sized,

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
source§

fn provide<'a>(&'a self, req: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
","Error","wgpu_core::pool::ResourcePoolSlot"],["
1.21.0 · source§

impl<T, A> From<Box<T, A>> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

Available on non-no_global_oom_handling only.
source§

fn from(v: Box<T, A>) -> Arc<T, A>

Move a boxed object to a new, reference-counted allocation.

\n
§Example
\n
let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu_core::pool::ResourcePoolSlot"],["
1.45.0 · source§

impl<'a, B> From<Cow<'a, B>> for Arc<B>
where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

source§

fn from(cow: Cow<'a, B>) -> Arc<B>

Creates an atomically reference-counted pointer from a clone-on-write\npointer by copying its content.

\n
§Example
\n
let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu_core::pool::ResourcePoolSlot"],["
1.6.0 · source§

impl<T> From<T> for Arc<T>

Available on non-no_global_oom_handling only.
source§

fn from(t: T) -> Arc<T>

Converts a T into an Arc<T>

\n

The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

\n
§Example
\n
let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
\n
","From","wgpu_core::pool::ResourcePoolSlot"],["
§

impl<H> HasDisplayHandle for Arc<H>
where\n H: HasDisplayHandle + ?Sized,

Available on crate feature alloc only.
§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.
","HasDisplayHandle","wgpu_core::pool::ResourcePoolSlot"],["
§

impl<H> HasWindowHandle for Arc<H>
where\n H: HasWindowHandle + ?Sized,

Available on crate feature alloc only.
§

fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>

Get a handle to the window.
","HasWindowHandle","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Hash for Arc<T, A>
where\n T: Hash + ?Sized,\n A: Allocator,

source§

fn hash<H>(&self, state: &mut H)
where\n H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T> Log for Arc<T>
where\n T: Log + ?Sized,

Available on crate feature std only.
source§

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Determines if a log message with the specified metadata would be\nlogged. Read more
source§

fn log(&self, record: &Record<'_>)

Logs the Record. Read more
source§

fn flush(&self)

Flushes any buffered records. Read more
","Log","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Ord for Arc<T, A>
where\n T: Ord + ?Sized,\n A: Allocator,

source§

fn cmp(&self, other: &Arc<T, A>) -> Ordering

Comparison for two Arcs.

\n

The two are compared by calling cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
\n
1.21.0 · source§

fn max(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where\n Self: Sized,

Restrict a value to a certain interval. Read more
","Ord","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> PartialEq for Arc<T, A>
where\n T: PartialEq + ?Sized,\n A: Allocator,

source§

fn eq(&self, other: &Arc<T, A>) -> bool

Equality for two Arcs.

\n

Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
\n
source§

fn ne(&self, other: &Arc<T, A>) -> bool

Inequality for two Arcs.

\n

Two Arcs are not equal if their inner values are not equal.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
\n
","PartialEq","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> PartialOrd for Arc<T, A>
where\n T: PartialOrd + ?Sized,\n A: Allocator,

source§

fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

Partial comparison for two Arcs.

\n

The two are compared by calling partial_cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
\n
source§

fn lt(&self, other: &Arc<T, A>) -> bool

Less-than comparison for two Arcs.

\n

The two are compared by calling < on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
\n
source§

fn le(&self, other: &Arc<T, A>) -> bool

‘Less than or equal to’ comparison for two Arcs.

\n

The two are compared by calling <= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
\n
source§

fn gt(&self, other: &Arc<T, A>) -> bool

Greater-than comparison for two Arcs.

\n

The two are compared by calling > on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
\n
source§

fn ge(&self, other: &Arc<T, A>) -> bool

‘Greater than or equal to’ comparison for two Arcs.

\n

The two are compared by calling >= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
\n
","PartialOrd","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Pointer for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

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

Formats the value using the given formatter. Read more
","Pointer","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T: ResourceType> ResourceType for Arc<T>

source§

const TYPE: &'static str = T::TYPE

","ResourceType","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T: StorageItem> StorageItem for Arc<T>

","StorageItem","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

","CoerceUnsized>","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> DerefPure for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","DerefPure","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

","DispatchFromDyn>","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Eq for Arc<T, A>
where\n T: Eq + ?Sized,\n A: Allocator,

","Eq","wgpu_core::pool::ResourcePoolSlot"],["
source§

impl<T, A> PinCoerceUnsized for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","PinCoerceUnsized","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Send for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

","Send","wgpu_core::pool::ResourcePoolSlot"],["
1.0.0 · source§

impl<T, A> Sync for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

","Sync","wgpu_core::pool::ResourcePoolSlot"],["
1.33.0 · source§

impl<T, A> Unpin for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","Unpin","wgpu_core::pool::ResourcePoolSlot"],["
1.9.0 · source§

impl<T, A> UnwindSafe for Arc<T, A>
where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

","UnwindSafe","wgpu_core::pool::ResourcePoolSlot"]]],["wgpu_test",[["
§

impl<'a, A> Arbitrary<'a> for Arc<A>
where\n A: Arbitrary<'a>,

§

fn arbitrary(u: &mut Unstructured<'a>) -> Result<Arc<A>, Error>

Generate an arbitrary value of Self from the given unstructured data. Read more
§

fn size_hint(depth: usize) -> (usize, Option<usize>)

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn try_size_hint(\n depth: usize,\n) -> Result<(usize, Option<usize>), MaxRecursionReached>

Get a size hint for how many bytes out of an Unstructured this type\nneeds to construct itself. Read more
§

fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>

Generate an arbitrary value of Self from the entirety of the given\nunstructured data. Read more
","Arbitrary<'a>","wgpu_test::config::RunTestAsync"],["
source§

impl<T> Arc<T>
where\n T: ?Sized,

1.17.0 · source

pub unsafe fn from_raw(ptr: *const T) -> Arc<T>

Constructs an Arc<T> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to\nArc<U>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw(x_ptr);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
use std::sync::Arc;\n\nlet x: Arc<[u32]> = Arc::new([1, 2, 3]);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3]> = Arc::from_raw(x_ptr.cast::<[u32; 3]>());\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.51.0 · source

pub unsafe fn increment_strong_count(ptr: *const T)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
1.51.0 · source

pub unsafe fn decrement_strong_count(ptr: *const T)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count(ptr);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw(ptr);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count(ptr);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T> Arc<T>

1.0.0 · source

pub fn new(data: T) -> Arc<T>

Constructs a new Arc<T>.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);
\n
1.60.0 · source

pub fn new_cyclic<F>(data_fn: F) -> Arc<T>
where\n F: FnOnce(&Weak<T>) -> T,

Constructs a new Arc<T> while giving you a Weak<T> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic first allocates the managed allocation for the Arc<T>,\nthen calls your closure, giving it a Weak<T> to this allocation,\nand only afterwards completes the construction of the Arc<T> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T> is not fully-constructed until Arc<T>::new_cyclic\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n
use std::sync::{Arc, Weak};\n\nstruct Gadget {\n    me: Weak<Gadget>,\n}\n\nimpl Gadget {\n    /// Constructs a reference counted Gadget.\n    fn new() -> Arc<Self> {\n        // `me` is a `Weak<Gadget>` pointing at the new allocation of the\n        // `Arc` we're constructing.\n        Arc::new_cyclic(|me| {\n            // Create the actual struct here.\n            Gadget { me: me.clone() }\n        })\n    }\n\n    /// Returns a reference counted pointer to Self.\n    fn me(&self) -> Arc<Self> {\n        self.me.upgrade().unwrap()\n    }\n}
\n
1.82.0 · source

pub fn new_uninit() -> Arc<MaybeUninit<T>>

Constructs a new Arc with uninitialized contents.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::new_uninit();\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed() -> Arc<MaybeUninit<T>>

🔬This is a nightly-only experimental API. (new_zeroed_alloc)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(new_zeroed_alloc)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
1.33.0 · source

pub fn pin(data: T) -> Pin<Arc<T>>

Constructs a new Pin<Arc<T>>. If T does not implement Unpin, then\ndata will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin(data: T) -> Result<Pin<Arc<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T>>, return an error if allocation fails.

\n
source

pub fn try_new(data: T) -> Result<Arc<T>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T>, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\n\nlet five = Arc::try_new(5)?;
\n
source

pub fn try_new_uninit() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, returning an error\nif allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut five = Arc::<u32>::try_new_uninit()?;\n\n// Deferred initialization:\nArc::get_mut(&mut five).unwrap().write(5);\n\nlet five = unsafe { five.assume_init() };\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed() -> Result<Arc<MaybeUninit<T>>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, returning an error if allocation fails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature( allocator_api)]\n\nuse std::sync::Arc;\n\nlet zero = Arc::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source

pub fn allocator(this: &Arc<T, A>) -> &A

🔬This is a nightly-only experimental API. (allocator_api)

Returns a reference to the underlying allocator.

\n

Note: this is an associated function, which means that you have\nto call it as Arc::allocator(&a) instead of a.allocator(). This\nis so that there is no conflict with a method on the inner type.

\n
1.17.0 · source

pub fn into_raw(this: Arc<T, A>) -> *const T

Consumes the Arc, returning the wrapped pointer.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet x_ptr = Arc::into_raw(x);\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub fn into_raw_with_allocator(this: Arc<T, A>) -> (*const T, A)

🔬This is a nightly-only experimental API. (allocator_api)

Consumes the Arc, returning the wrapped pointer and allocator.

\n

To avoid a memory leak the pointer must be converted back to an Arc using\nArc::from_raw_in.

\n
§Examples
\n
#![feature(allocator_api)]\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet (ptr, alloc) = Arc::into_raw_with_allocator(x);\nassert_eq!(unsafe { &*ptr }, \"hello\");\nlet x = unsafe { Arc::from_raw_in(ptr, alloc) };\nassert_eq!(&*x, \"hello\");
\n
1.45.0 · source

pub fn as_ptr(this: &Arc<T, A>) -> *const T

Provides a raw pointer to the data.

\n

The counts are not affected in any way and the Arc is not consumed. The pointer is valid for\nas long as there are strong counts in the Arc.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(\"hello\".to_owned());\nlet y = Arc::clone(&x);\nlet x_ptr = Arc::as_ptr(&x);\nassert_eq!(x_ptr, Arc::as_ptr(&y));\nassert_eq!(unsafe { &*x_ptr }, \"hello\");
\n
source

pub unsafe fn from_raw_in(ptr: *const T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs an Arc<T, A> from a raw pointer.

\n

The raw pointer must have been previously returned by a call to Arc<U, A>::into_raw with the following requirements:

\n
    \n
  • If U is sized, it must have the same size and alignment as T. This\nis trivially true if U is T.
  • \n
  • If U is unsized, its data pointer must have the same size and\nalignment as T. This is trivially true if Arc<U> was constructed\nthrough Arc<T> and then converted to Arc<U> through an unsized\ncoercion.
  • \n
\n

Note that if U or U’s data pointer is not T but has the same size\nand alignment, this is basically like transmuting references of\ndifferent types. See mem::transmute for more information\non what restrictions apply in this case.

\n

The raw pointer must point to a block of memory allocated by alloc

\n

The user of from_raw has to make sure a specific value of T is only\ndropped once.

\n

This function is unsafe because improper use may lead to memory unsafety,\neven if the returned Arc<T> is never accessed.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x = Arc::new_in(\"hello\".to_owned(), System);\nlet x_ptr = Arc::into_raw(x);\n\nunsafe {\n    // Convert back to an `Arc` to prevent leak.\n    let x = Arc::from_raw_in(x_ptr, System);\n    assert_eq!(&*x, \"hello\");\n\n    // Further calls to `Arc::from_raw(x_ptr)` would be memory-unsafe.\n}\n\n// The memory was freed when `x` went out of scope above, so `x_ptr` is now dangling!
\n

Convert a slice back into its original array:

\n\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet x: Arc<[u32], _> = Arc::new_in([1, 2, 3], System);\nlet x_ptr: *const [u32] = Arc::into_raw(x);\n\nunsafe {\n    let x: Arc<[u32; 3], _> = Arc::from_raw_in(x_ptr.cast::<[u32; 3]>(), System);\n    assert_eq!(&*x, &[1, 2, 3]);\n}
\n
1.4.0 · source

pub fn downgrade(this: &Arc<T, A>) -> Weak<T, A>
where\n A: Clone,

Creates a new Weak pointer to this allocation.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet weak_five = Arc::downgrade(&five);
\n
1.15.0 · source

pub fn weak_count(this: &Arc<T, A>) -> usize

Gets the number of Weak pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the weak count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _weak_five = Arc::downgrade(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` or `Weak` between threads.\nassert_eq!(1, Arc::weak_count(&five));
\n
1.15.0 · source

pub fn strong_count(this: &Arc<T, A>) -> usize

Gets the number of strong (Arc) pointers to this allocation.

\n
§Safety
\n

This method by itself is safe, but using it correctly requires extra care.\nAnother thread can change the strong count at any time,\nincluding potentially between calling this method and acting on the result.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet _also_five = Arc::clone(&five);\n\n// This assertion is deterministic because we haven't shared\n// the `Arc` between threads.\nassert_eq!(2, Arc::strong_count(&five));
\n
source

pub unsafe fn increment_strong_count_in(ptr: *const T, alloc: A)
where\n A: Clone,

🔬This is a nightly-only experimental API. (allocator_api)

Increments the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, and the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) for the duration of this method,, and ptr must point to a block of memory\nallocated by alloc.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // This assertion is deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n}
\n
source

pub unsafe fn decrement_strong_count_in(ptr: *const T, alloc: A)

🔬This is a nightly-only experimental API. (allocator_api)

Decrements the strong reference count on the Arc<T> associated with the\nprovided pointer by one.

\n
§Safety
\n

The pointer must have been obtained through Arc::into_raw, the\nassociated Arc instance must be valid (i.e. the strong count must be at\nleast 1) when invoking this method, and ptr must point to a block of memory\nallocated by alloc. This method can be used to release the final\nArc and backing storage, but should not be called after the final Arc has been\nreleased.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);\n\nunsafe {\n    let ptr = Arc::into_raw(five);\n    Arc::increment_strong_count_in(ptr, System);\n\n    // Those assertions are deterministic because we haven't shared\n    // the `Arc` between threads.\n    let five = Arc::from_raw_in(ptr, System);\n    assert_eq!(2, Arc::strong_count(&five));\n    Arc::decrement_strong_count_in(ptr, System);\n    assert_eq!(1, Arc::strong_count(&five));\n}
\n
1.17.0 · source

pub fn ptr_eq(this: &Arc<T, A>, other: &Arc<T, A>) -> bool

Returns true if the two Arcs point to the same allocation in a vein similar to\nptr::eq. This function ignores the metadata of dyn Trait pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\nlet same_five = Arc::clone(&five);\nlet other_five = Arc::new(5);\n\nassert!(Arc::ptr_eq(&five, &same_five));\nassert!(!Arc::ptr_eq(&five, &other_five));
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n T: CloneToUninit + ?Sized,\n A: Allocator + Clone,

1.4.0 · source

pub fn make_mut(this: &mut Arc<T, A>) -> &mut T

Makes a mutable reference into the given Arc.

\n

If there are other Arc pointers to the same allocation, then make_mut will\nclone the inner value to a new allocation to ensure unique ownership. This is also\nreferred to as clone-on-write.

\n

However, if there are no other Arc pointers to this allocation, but some Weak\npointers, then the Weak pointers will be dissociated and the inner value will not\nbe cloned.

\n

See also get_mut, which will fail rather than cloning the inner value\nor dissociating Weak pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut data = Arc::new(5);\n\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\nlet mut other_data = Arc::clone(&data); // Won't clone inner data\n*Arc::make_mut(&mut data) += 1;         // Clones inner data\n*Arc::make_mut(&mut data) += 1;         // Won't clone anything\n*Arc::make_mut(&mut other_data) *= 2;   // Won't clone anything\n\n// Now `data` and `other_data` point to different allocations.\nassert_eq!(*data, 8);\nassert_eq!(*other_data, 12);
\n

Weak pointers will be dissociated:

\n\n
use std::sync::Arc;\n\nlet mut data = Arc::new(75);\nlet weak = Arc::downgrade(&data);\n\nassert!(75 == *data);\nassert!(75 == *weak.upgrade().unwrap());\n\n*Arc::make_mut(&mut data) += 1;\n\nassert!(76 == *data);\nassert!(weak.upgrade().is_none());
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n T: Clone,\n A: Allocator,

1.76.0 · source

pub fn unwrap_or_clone(this: Arc<T, A>) -> T

If we have the only reference to T then unwrap it. Otherwise, clone T and return the\nclone.

\n

Assuming arc_t is of type Arc<T>, this function is functionally equivalent to\n(*arc_t).clone(), but will avoid cloning the inner value where possible.

\n
§Examples
\n
let inner = String::from(\"test\");\nlet ptr = inner.as_ptr();\n\nlet arc = Arc::new(inner);\nlet inner = Arc::unwrap_or_clone(arc);\n// The inner value was not cloned\nassert!(ptr::eq(ptr, inner.as_ptr()));\n\nlet arc = Arc::new(inner);\nlet arc2 = arc.clone();\nlet inner = Arc::unwrap_or_clone(arc);\n// Because there were 2 references, we had to clone the inner value.\nassert!(!ptr::eq(ptr, inner.as_ptr()));\n// `arc2` is the last reference, so when we unwrap it we get back\n// the original `String`.\nlet inner = Arc::unwrap_or_clone(arc2);\nassert!(ptr::eq(ptr, inner.as_ptr()));
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

1.4.0 · source

pub fn get_mut(this: &mut Arc<T, A>) -> Option<&mut T>

Returns a mutable reference into the given Arc, if there are\nno other Arc or Weak pointers to the same allocation.

\n

Returns None otherwise, because it is not safe to\nmutate a shared value.

\n

See also make_mut, which will clone\nthe inner value when there are other Arc pointers.

\n
§Examples
\n
use std::sync::Arc;\n\nlet mut x = Arc::new(3);\n*Arc::get_mut(&mut x).unwrap() = 4;\nassert_eq!(*x, 4);\n\nlet _y = Arc::clone(&x);\nassert!(Arc::get_mut(&mut x).is_none());
\n
source

pub unsafe fn get_mut_unchecked(this: &mut Arc<T, A>) -> &mut T

🔬This is a nightly-only experimental API. (get_mut_unchecked)

Returns a mutable reference into the given Arc,\nwithout any check.

\n

See also get_mut, which is safe and does appropriate checks.

\n
§Safety
\n

If any other Arc or Weak pointers to the same allocation exist, then\nthey must not be dereferenced or have active borrows for the duration\nof the returned borrow, and their inner type must be exactly the same as the\ninner type of this Rc (including lifetimes). This is trivially the case if no\nsuch pointers exist, for example immediately after Arc::new.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet mut x = Arc::new(String::new());\nunsafe {\n    Arc::get_mut_unchecked(&mut x).push_str(\"foo\")\n}\nassert_eq!(*x, \"foo\");
\n

Other Arc pointers to the same allocation must be to the same type.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<str> = Arc::from(\"Hello, world!\");\nlet mut y: Arc<[u8]> = x.clone().into();\nunsafe {\n    // this is Undefined Behavior, because x's inner type is str, not [u8]\n    Arc::get_mut_unchecked(&mut y).fill(0xff); // 0xff is invalid in UTF-8\n}\nprintln!(\"{}\", &*x); // Invalid UTF-8 in a str
\n

Other Arc pointers to the same allocation must be to the exact same type, including lifetimes.

\n\n
#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\n\nlet x: Arc<&str> = Arc::new(\"Hello, world!\");\n{\n    let s = String::from(\"Oh, no!\");\n    let mut y: Arc<&str> = x.clone().into();\n    unsafe {\n        // this is Undefined Behavior, because x's inner type\n        // is &'long str, not &'short str\n        *Arc::get_mut_unchecked(&mut y) = &s;\n    }\n}\nprintln!(\"{}\", &*x); // Use-after-free
\n
",0,"wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> Arc<T, A>
where\n A: Allocator,

source

pub fn new_in(data: T, alloc: A) -> Arc<T, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T> in the provided allocator.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::new_in(5, System);
\n
source

pub fn new_uninit_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents in the provided allocator.

\n
§Examples
\n
#![feature(get_mut_unchecked)]\n#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
\n
source

pub fn new_zeroed_in(alloc: A) -> Arc<MaybeUninit<T>, A>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
\n
source

pub fn new_cyclic_in<F>(data_fn: F, alloc: A) -> Arc<T, A>
where\n F: FnOnce(&Weak<T, A>) -> T,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T, A> in the given allocator while giving you a Weak<T, A> to the allocation,\nto allow you to construct a T which holds a weak pointer to itself.

\n

Generally, a structure circularly referencing itself, either directly or\nindirectly, should not hold a strong reference to itself to prevent a memory leak.\nUsing this function, you get access to the weak pointer during the\ninitialization of T, before the Arc<T, A> is created, such that you can\nclone and store it inside the T.

\n

new_cyclic_in first allocates the managed allocation for the Arc<T, A>,\nthen calls your closure, giving it a Weak<T, A> to this allocation,\nand only afterwards completes the construction of the Arc<T, A> by placing\nthe T returned from your closure into the allocation.

\n

Since the new Arc<T, A> is not fully-constructed until Arc<T, A>::new_cyclic_in\nreturns, calling upgrade on the weak reference inside your closure will\nfail and result in a None value.

\n
§Panics
\n

If data_fn panics, the panic is propagated to the caller, and the\ntemporary Weak<T> is dropped normally.

\n
§Example
\n

See new_cyclic

\n
source

pub fn pin_in(data: T, alloc: A) -> Pin<Arc<T, A>>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T, A>> in the provided allocator. If T does not implement Unpin,\nthen data will be pinned in memory and unable to be moved.

\n
source

pub fn try_pin_in(data: T, alloc: A) -> Result<Pin<Arc<T, A>>, AllocError>
where\n A: 'static,

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Pin<Arc<T, A>> in the provided allocator, return an error if allocation\nfails.

\n
source

pub fn try_new_in(data: T, alloc: A) -> Result<Arc<T, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc<T, A> in the provided allocator, returning an error if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet five = Arc::try_new_in(5, System)?;
\n
source

pub fn try_new_uninit_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, in the provided allocator, returning an\nerror if allocation fails.

\n
§Examples
\n
#![feature(allocator_api)]\n#![feature(get_mut_unchecked)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet mut five = Arc::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    Arc::get_mut_unchecked(&mut five).as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
\n
source

pub fn try_new_zeroed_in(alloc: A) -> Result<Arc<MaybeUninit<T>, A>, AllocError>

🔬This is a nightly-only experimental API. (allocator_api)

Constructs a new Arc with uninitialized contents, with the memory\nbeing filled with 0 bytes, in the provided allocator, returning an error if allocation\nfails.

\n

See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

\n
§Examples
\n
#![feature(allocator_api)]\n\nuse std::sync::Arc;\nuse std::alloc::System;\n\nlet zero = Arc::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
\n
1.4.0 · source

pub fn try_unwrap(this: Arc<T, A>) -> Result<T, Arc<T, A>>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, an Err is returned with the same Arc that was\npassed in.

\n

This will succeed even if there are outstanding weak references.

\n

It is strongly recommended to use Arc::into_inner instead if you don’t\nkeep the Arc in the Err case.\nImmediately dropping the Err-value, as the expression\nArc::try_unwrap(this).ok() does, can cause the strong count to\ndrop to zero and the inner value of the Arc to be dropped.\nFor instance, if two threads execute such an expression in parallel,\nthere is a race condition without the possibility of unsafety:\nThe threads could first both check whether they own the last instance\nin Arc::try_unwrap, determine that they both do not, and then both\ndiscard and drop their instance in the call to ok.\nIn this scenario, the value inside the Arc is safely destroyed\nby exactly one of the threads, but neither thread will ever be able\nto use the value.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nassert_eq!(Arc::try_unwrap(x), Ok(3));\n\nlet x = Arc::new(4);\nlet _y = Arc::clone(&x);\nassert_eq!(*Arc::try_unwrap(x).unwrap_err(), 4);
\n
1.70.0 · source

pub fn into_inner(this: Arc<T, A>) -> Option<T>

Returns the inner value, if the Arc has exactly one strong reference.

\n

Otherwise, None is returned and the Arc is dropped.

\n

This will succeed even if there are outstanding weak references.

\n

If Arc::into_inner is called on every clone of this Arc,\nit is guaranteed that exactly one of the calls returns the inner value.\nThis means in particular that the inner value is not dropped.

\n

Arc::try_unwrap is conceptually similar to Arc::into_inner, but it\nis meant for different use-cases. If used as a direct replacement\nfor Arc::into_inner anyway, such as with the expression\nArc::try_unwrap(this).ok(), then it does\nnot give the same guarantee as described in the previous paragraph.\nFor more information, see the examples below and read the documentation\nof Arc::try_unwrap.

\n
§Examples
\n

Minimal example demonstrating the guarantee that Arc::into_inner gives.

\n\n
use std::sync::Arc;\n\nlet x = Arc::new(3);\nlet y = Arc::clone(&x);\n\n// Two threads calling `Arc::into_inner` on both clones of an `Arc`:\nlet x_thread = std::thread::spawn(|| Arc::into_inner(x));\nlet y_thread = std::thread::spawn(|| Arc::into_inner(y));\n\nlet x_inner_value = x_thread.join().unwrap();\nlet y_inner_value = y_thread.join().unwrap();\n\n// One of the threads is guaranteed to receive the inner value:\nassert!(matches!(\n    (x_inner_value, y_inner_value),\n    (None, Some(3)) | (Some(3), None)\n));\n// The result could also be `(None, None)` if the threads called\n// `Arc::try_unwrap(x).ok()` and `Arc::try_unwrap(y).ok()` instead.
\n

A more practical example demonstrating the need for Arc::into_inner:

\n\n
use std::sync::Arc;\n\n// Definition of a simple singly linked list using `Arc`:\n#[derive(Clone)]\nstruct LinkedList<T>(Option<Arc<Node<T>>>);\nstruct Node<T>(T, Option<Arc<Node<T>>>);\n\n// Dropping a long `LinkedList<T>` relying on the destructor of `Arc`\n// can cause a stack overflow. To prevent this, we can provide a\n// manual `Drop` implementation that does the destruction in a loop:\nimpl<T> Drop for LinkedList<T> {\n    fn drop(&mut self) {\n        let mut link = self.0.take();\n        while let Some(arc_node) = link.take() {\n            if let Some(Node(_value, next)) = Arc::into_inner(arc_node) {\n                link = next;\n            }\n        }\n    }\n}\n\n// Implementation of `new` and `push` omitted\nimpl<T> LinkedList<T> {\n    /* ... */\n}\n\n// The following code could have still caused a stack overflow\n// despite the manual `Drop` impl if that `Drop` impl had used\n// `Arc::try_unwrap(arc).ok()` instead of `Arc::into_inner(arc)`.\n\n// Create a long list and clone it\nlet mut x = LinkedList::new();\nlet size = 100000;\nfor i in 0..size {\n    x.push(i); // Adds i to the front of x\n}\nlet y = x.clone();\n\n// Drop the clones in parallel\nlet x_thread = std::thread::spawn(|| drop(x));\nlet y_thread = std::thread::spawn(|| drop(y));\nx_thread.join().unwrap();\ny_thread.join().unwrap();
\n
",0,"wgpu_test::config::RunTestAsync"],["
1.64.0 · source§

impl<T> AsFd for Arc<T>
where\n T: AsFd + ?Sized,

This impl allows implementing traits that require AsFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\n\ntrait MyTrait: AsFd {}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_fd(&self) -> BorrowedFd<'_>

Borrows the file descriptor. Read more
","AsFd","wgpu_test::config::RunTestAsync"],["
1.63.0 · source§

impl<T> AsRawFd for Arc<T>
where\n T: AsRawFd,

This impl allows implementing traits that require AsRawFd on Arc.

\n\n
use std::net::UdpSocket;\nuse std::sync::Arc;\ntrait MyTrait: AsRawFd {\n}\nimpl MyTrait for Arc<UdpSocket> {}\nimpl MyTrait for Box<UdpSocket> {}
\n
source§

fn as_raw_fd(&self) -> i32

Extracts the raw file descriptor. Read more
","AsRawFd","wgpu_test::config::RunTestAsync"],["
1.5.0 · source§

impl<T, A> AsRef<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn as_ref(&self) -> &T

Converts this type into a shared reference of the (usually inferred) input type.
","AsRef","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Borrow<T> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
","Borrow","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Clone for Arc<T, A>
where\n A: Allocator + Clone,\n T: ?Sized,

source§

fn clone(&self) -> Arc<T, A>

Makes a clone of the Arc pointer.

\n

This creates another pointer to the same allocation, increasing the\nstrong reference count.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nlet _ = Arc::clone(&five);
\n
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Debug for Arc<T, A>
where\n T: Debug + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Debug","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T> Default for Arc<T>
where\n T: Default,

source§

fn default() -> Arc<T>

Creates a new Arc<T>, with the Default value for T.

\n
§Examples
\n
use std::sync::Arc;\n\nlet x: Arc<i32> = Default::default();\nassert_eq!(*x, 0);
\n
","Default","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Deref for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
","Deref","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Display for Arc<T, A>
where\n T: Display + ?Sized,\n A: Allocator,

source§

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

Formats the value using the given formatter. Read more
","Display","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Drop for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn drop(&mut self)

Drops the Arc.

\n

This will decrement the strong reference count. If the strong reference\ncount reaches zero then the only other references (if any) are\nWeak, so we drop the inner value.

\n
§Examples
\n
use std::sync::Arc;\n\nstruct Foo;\n\nimpl Drop for Foo {\n    fn drop(&mut self) {\n        println!(\"dropped!\");\n    }\n}\n\nlet foo  = Arc::new(Foo);\nlet foo2 = Arc::clone(&foo);\n\ndrop(foo);    // Doesn't print anything\ndrop(foo2);   // Prints \"dropped!\"
\n
","Drop","wgpu_test::config::RunTestAsync"],["
1.52.0 · source§

impl<T> Error for Arc<T>
where\n T: Error + ?Sized,

source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
source§

fn provide<'a>(&'a self, req: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
","Error","wgpu_test::config::RunTestAsync"],["
1.21.0 · source§

impl<T, A> From<Box<T, A>> for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

fn from(v: Box<T, A>) -> Arc<T, A>

Move a boxed object to a new, reference-counted allocation.

\n
§Example
\n
let unique: Box<str> = Box::from(\"eggplant\");\nlet shared: Arc<str> = Arc::from(unique);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu_test::config::RunTestAsync"],["
1.45.0 · source§

impl<'a, B> From<Cow<'a, B>> for Arc<B>
where\n B: ToOwned + ?Sized,\n Arc<B>: From<&'a B> + From<<B as ToOwned>::Owned>,

source§

fn from(cow: Cow<'a, B>) -> Arc<B>

Creates an atomically reference-counted pointer from a clone-on-write\npointer by copying its content.

\n
§Example
\n
let cow: Cow<'_, str> = Cow::Borrowed(\"eggplant\");\nlet shared: Arc<str> = Arc::from(cow);\nassert_eq!(\"eggplant\", &shared[..]);
\n
","From>","wgpu_test::config::RunTestAsync"],["
1.6.0 · source§

impl<T> From<T> for Arc<T>

source§

fn from(t: T) -> Arc<T>

Converts a T into an Arc<T>

\n

The conversion moves the value into a\nnewly allocated Arc. It is equivalent to\ncalling Arc::new(t).

\n
§Example
\n
let x = 5;\nlet arc = Arc::new(5);\n\nassert_eq!(Arc::from(x), arc);
\n
","From","wgpu_test::config::RunTestAsync"],["
§

impl<H> HasDisplayHandle for Arc<H>
where\n H: HasDisplayHandle + ?Sized,

§

fn display_handle(&self) -> Result<DisplayHandle<'_>, HandleError>

Get a handle to the display controller of the windowing system.
","HasDisplayHandle","wgpu_test::config::RunTestAsync"],["
§

impl<H> HasWindowHandle for Arc<H>
where\n H: HasWindowHandle + ?Sized,

§

fn window_handle(&self) -> Result<WindowHandle<'_>, HandleError>

Get a handle to the window.
","HasWindowHandle","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Hash for Arc<T, A>
where\n T: Hash + ?Sized,\n A: Allocator,

source§

fn hash<H>(&self, state: &mut H)
where\n H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where\n H: Hasher,\n Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
","Hash","wgpu_test::config::RunTestAsync"],["
source§

impl<T> Log for Arc<T>
where\n T: Log + ?Sized,

source§

fn enabled(&self, metadata: &Metadata<'_>) -> bool

Determines if a log message with the specified metadata would be\nlogged. Read more
source§

fn log(&self, record: &Record<'_>)

Logs the Record. Read more
source§

fn flush(&self)

Flushes any buffered records. Read more
","Log","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Ord for Arc<T, A>
where\n T: Ord + ?Sized,\n A: Allocator,

source§

fn cmp(&self, other: &Arc<T, A>) -> Ordering

Comparison for two Arcs.

\n

The two are compared by calling cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));
\n
1.21.0 · source§

fn max(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where\n Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where\n Self: Sized,

Restrict a value to a certain interval. Read more
","Ord","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> PartialEq for Arc<T, A>
where\n T: PartialEq + ?Sized,\n A: Allocator,

source§

fn eq(&self, other: &Arc<T, A>) -> bool

Equality for two Arcs.

\n

Two Arcs are equal if their inner values are equal, even if they are\nstored in different allocation.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same allocation are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five == Arc::new(5));
\n
source§

fn ne(&self, other: &Arc<T, A>) -> bool

Inequality for two Arcs.

\n

Two Arcs are not equal if their inner values are not equal.

\n

If T also implements Eq (implying reflexivity of equality),\ntwo Arcs that point to the same value are always equal.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five != Arc::new(6));
\n
","PartialEq","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> PartialOrd for Arc<T, A>
where\n T: PartialOrd + ?Sized,\n A: Allocator,

source§

fn partial_cmp(&self, other: &Arc<T, A>) -> Option<Ordering>

Partial comparison for two Arcs.

\n

The two are compared by calling partial_cmp() on their inner values.

\n
§Examples
\n
use std::sync::Arc;\nuse std::cmp::Ordering;\n\nlet five = Arc::new(5);\n\nassert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
\n
source§

fn lt(&self, other: &Arc<T, A>) -> bool

Less-than comparison for two Arcs.

\n

The two are compared by calling < on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five < Arc::new(6));
\n
source§

fn le(&self, other: &Arc<T, A>) -> bool

‘Less than or equal to’ comparison for two Arcs.

\n

The two are compared by calling <= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five <= Arc::new(5));
\n
source§

fn gt(&self, other: &Arc<T, A>) -> bool

Greater-than comparison for two Arcs.

\n

The two are compared by calling > on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five > Arc::new(4));
\n
source§

fn ge(&self, other: &Arc<T, A>) -> bool

‘Greater than or equal to’ comparison for two Arcs.

\n

The two are compared by calling >= on their inner values.

\n
§Examples
\n
use std::sync::Arc;\n\nlet five = Arc::new(5);\n\nassert!(five >= Arc::new(5));
\n
","PartialOrd","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Pointer for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

source§

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

Formats the value using the given formatter. Read more
","Pointer","wgpu_test::config::RunTestAsync"],["
source§

impl<T> ResourceType for Arc<T>
where\n T: ResourceType,

source§

const TYPE: &'static str = T::TYPE

","ResourceType","wgpu_test::config::RunTestAsync"],["
§

impl<T> ValueParserFactory for Arc<T>
where\n T: ValueParserFactory + Send + Sync + Clone,\n <T as ValueParserFactory>::Parser: TypedValueParser<Value = T>,

§

type Parser = MapValueParser<<T as ValueParserFactory>::Parser, fn(_: T) -> Arc<T>>

Generated parser, usually [ValueParser]. Read more
§

fn value_parser() -> <Arc<T> as ValueParserFactory>::Parser

Create the specified [Self::Parser]
","ValueParserFactory","wgpu_test::config::RunTestAsync"],["
source§

impl<T, U, A> CoerceUnsized<Arc<U, A>> for Arc<T, A>
where\n T: Unsize<U> + ?Sized,\n A: Allocator,\n U: ?Sized,

","CoerceUnsized>","wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> DerefPure for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","DerefPure","wgpu_test::config::RunTestAsync"],["
source§

impl<T, U> DispatchFromDyn<Arc<U>> for Arc<T>
where\n T: Unsize<U> + ?Sized,\n U: ?Sized,

","DispatchFromDyn>","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Eq for Arc<T, A>
where\n T: Eq + ?Sized,\n A: Allocator,

","Eq","wgpu_test::config::RunTestAsync"],["
source§

impl<T, A> PinCoerceUnsized for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","PinCoerceUnsized","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Send for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Send,

","Send","wgpu_test::config::RunTestAsync"],["
1.0.0 · source§

impl<T, A> Sync for Arc<T, A>
where\n T: Sync + Send + ?Sized,\n A: Allocator + Sync,

","Sync","wgpu_test::config::RunTestAsync"],["
1.33.0 · source§

impl<T, A> Unpin for Arc<T, A>
where\n A: Allocator,\n T: ?Sized,

","Unpin","wgpu_test::config::RunTestAsync"],["
1.9.0 · source§

impl<T, A> UnwindSafe for Arc<T, A>
where\n T: RefUnwindSafe + ?Sized,\n A: Allocator + UnwindSafe,

","UnwindSafe","wgpu_test::config::RunTestAsync"]]]]); if (window.register_type_impls) { window.register_type_impls(type_impls); } else { window.pending_type_impls = type_impls; } })() -//{"start":55,"fragment_lengths":[183167,184583,182677]} \ No newline at end of file +//{"start":55,"fragment_lengths":[183167,184583,183161]} \ No newline at end of file diff --git a/doc/wgpu_core/device/fn.create_validator.html b/doc/wgpu_core/device/fn.create_validator.html index d56a6719386c..9666b7e8c0ac 100644 --- a/doc/wgpu_core/device/fn.create_validator.html +++ b/doc/wgpu_core/device/fn.create_validator.html @@ -1,6 +1,6 @@ create_validator in wgpu_core::device - Rust
wgpu_core::device

Function create_validator

source
pub fn create_validator(
     features: Features,
     downlevel: DownlevelFlags,
-    flags: ValidationFlags,
-) -> Validator
Expand description

Create a validator with the given validation flags.

+ flags: ValidationFlags, +) -> Validator
Expand description

Create a validator with the given validation flags.

\ No newline at end of file diff --git a/doc/wgpu_core/device/resource/enum.DeferredDestroy.html b/doc/wgpu_core/device/resource/enum.DeferredDestroy.html index 6a1264165eae..7c8d3e9941a7 100644 --- a/doc/wgpu_core/device/resource/enum.DeferredDestroy.html +++ b/doc/wgpu_core/device/resource/enum.DeferredDestroy.html @@ -1,4 +1,4 @@ -DeferredDestroy in wgpu_core::device::resource - Rust
wgpu_core::device::resource

Enum DeferredDestroy

source
pub(crate) enum DeferredDestroy {
+DeferredDestroy in wgpu_core::device::resource - Rust
wgpu_core::device::resource

Enum DeferredDestroy

source
pub(crate) enum DeferredDestroy {
     TextureViews(WeakVec<TextureView>),
     BindGroups(WeakVec<BindGroup>),
 }

Variants§

§

TextureViews(WeakVec<TextureView>)

§

BindGroups(WeakVec<BindGroup>)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/doc/wgpu_core/device/resource/index.html b/doc/wgpu_core/device/resource/index.html index cf951ae715d2..23c5cef33a9c 100644 --- a/doc/wgpu_core/device/resource/index.html +++ b/doc/wgpu_core/device/resource/index.html @@ -1,2 +1,2 @@ -wgpu_core::device::resource - Rust
wgpu_core::device

Module resource

source

Structs§

source

fn create_tlas( self: &Arc<Self>, desc: &TlasDescriptor<'_>, -) -> Result<Arc<Tlas>, CreateTlasError>

source§

impl Device

source

pub(crate) fn raw(&self) -> &dyn DynDevice

source

pub(crate) fn require_features( +) -> Result<Arc<Tlas>, CreateTlasError>

source§

impl Device

source

pub(crate) fn raw(&self) -> &dyn DynDevice

source

pub(crate) fn require_features( &self, feature: Features, -) -> Result<(), MissingFeatures>

source

pub(crate) fn require_downlevel_flags( +) -> Result<(), MissingFeatures>

source

pub(crate) fn require_downlevel_flags( &self, flags: DownlevelFlags, -) -> Result<(), MissingDownlevelFlags>

source§

impl Device

source

pub(crate) fn new( +) -> Result<(), MissingDownlevelFlags>

source§

impl Device

source

pub(crate) fn new( raw_device: Box<dyn DynDevice>, adapter: &Arc<Adapter>, desc: &DeviceDescriptor<'_>, trace_dir_name: Option<&str>, instance_flags: InstanceFlags, -) -> Result<Self, DeviceError>

source

pub fn backend(&self) -> Backend

Returns the backend this device is using.

-
source

pub fn is_valid(&self) -> bool

source

pub fn check_is_valid(&self) -> Result<(), DeviceError>

source

pub fn handle_hal_error(&self, error: DeviceError) -> DeviceError

source

pub(crate) fn deferred_resource_destruction(&self)

Run some destroy operations that were deferred.

+) -> Result<Self, DeviceError>
source

pub fn backend(&self) -> Backend

Returns the backend this device is using.

+
source

pub fn is_valid(&self) -> bool

source

pub fn check_is_valid(&self) -> Result<(), DeviceError>

source

pub fn handle_hal_error(&self, error: DeviceError) -> DeviceError

source

pub(crate) fn deferred_resource_destruction(&self)

Run some destroy operations that were deferred.

Destroying the resources requires taking a write lock on the device’s snatch lock, so a good reason for deferring resource destruction is when we don’t know for sure how risky it is to take the lock (typically, it shouldn’t be taken from the drop implementation of a reference-counted structure). The snatch lock must not be held while this function is called.

-
source

pub fn get_queue(&self) -> Option<Arc<Queue>>

source

pub fn set_queue(&self, queue: &Arc<Queue>)

source

pub(crate) fn maintain<'this>( +

source

pub fn get_queue(&self) -> Option<Arc<Queue>>

source

pub fn set_queue(&self, queue: &Arc<Queue>)

source

pub(crate) fn maintain<'this>( &'this self, fence: RwLockReadGuard<'_, ManuallyDrop<Box<dyn DynFence>>>, maintain: Maintain<SubmissionIndex>, @@ -98,53 +98,53 @@ return it to our callers.)

-

source

pub(crate) fn create_buffer( +
source

pub(crate) fn create_buffer( self: &Arc<Self>, desc: &BufferDescriptor<'_>, -) -> Result<Arc<Buffer>, CreateBufferError>

source

pub(crate) fn create_texture_from_hal( +) -> Result<Arc<Buffer>, CreateBufferError>

source

pub(crate) fn create_texture_from_hal( self: &Arc<Self>, hal_texture: Box<dyn DynTexture>, desc: &TextureDescriptor<'_>, -) -> Result<Arc<Texture>, CreateTextureError>

source

pub(crate) fn create_buffer_from_hal( +) -> Result<Arc<Texture>, CreateTextureError>

source

pub(crate) fn create_buffer_from_hal( self: &Arc<Self>, hal_buffer: Box<dyn DynBuffer>, desc: &BufferDescriptor<'_>, -) -> (Fallible<Buffer>, Option<CreateBufferError>)

source

fn create_indirect_validation_bind_group( +) -> (Fallible<Buffer>, Option<CreateBufferError>)

source

fn create_indirect_validation_bind_group( &self, raw_buffer: &dyn DynBuffer, buffer_size: u64, usage: BufferUsages, -) -> Result<Snatchable<Box<dyn DynBindGroup>>, CreateBufferError>

Available on crate feature indirect-validation only.
source

pub(crate) fn create_texture( +) -> Result<Snatchable<Box<dyn DynBindGroup>>, CreateBufferError>

Available on crate feature indirect-validation only.
source

pub(crate) fn create_texture( self: &Arc<Self>, desc: &TextureDescriptor<'_>, -) -> Result<Arc<Texture>, CreateTextureError>

source

pub(crate) fn create_texture_view( +) -> Result<Arc<Texture>, CreateTextureError>

source

pub(crate) fn create_texture_view( self: &Arc<Self>, texture: &Arc<Texture>, desc: &TextureViewDescriptor<'_>, -) -> Result<Arc<TextureView>, CreateTextureViewError>

source

pub(crate) fn create_sampler( +) -> Result<Arc<TextureView>, CreateTextureViewError>

source

pub(crate) fn create_sampler( self: &Arc<Self>, desc: &SamplerDescriptor<'_>, -) -> Result<Arc<Sampler>, CreateSamplerError>

source

pub(crate) fn create_shader_module<'a>( +) -> Result<Arc<Sampler>, CreateSamplerError>

source

pub(crate) fn create_shader_module<'a>( self: &Arc<Self>, desc: &ShaderModuleDescriptor<'a>, source: ShaderModuleSource<'a>, -) -> Result<Arc<ShaderModule>, CreateShaderModuleError>

source

pub(crate) unsafe fn create_shader_module_spirv<'a>( +) -> Result<Arc<ShaderModule>, CreateShaderModuleError>

source

pub(crate) unsafe fn create_shader_module_spirv<'a>( self: &Arc<Self>, desc: &ShaderModuleDescriptor<'a>, source: &'a [u32], -) -> Result<Arc<ShaderModule>, CreateShaderModuleError>

source

pub(crate) fn create_command_encoder( +) -> Result<Arc<ShaderModule>, CreateShaderModuleError>

source

pub(crate) fn create_command_encoder( self: &Arc<Self>, label: &Label<'_>, -) -> Result<Arc<CommandBuffer>, DeviceError>

source

fn make_late_sized_buffer_groups( - shader_binding_sizes: &HashMap<ResourceBinding, BufferSize, BuildHasherDefault<FxHasher>>, +) -> Result<Arc<CommandBuffer>, DeviceError>

source

fn make_late_sized_buffer_groups( + shader_binding_sizes: &HashMap<ResourceBinding, BufferSize, BuildHasherDefault<FxHasher>>, layout: &PipelineLayout, ) -> ArrayVec<LateSizedBufferGroup, { hal::MAX_BIND_GROUPS }>

Generate information about late-validated buffer bindings for pipelines.

-
source

pub(crate) fn create_bind_group_layout( +

source

pub(crate) fn create_bind_group_layout( self: &Arc<Self>, label: &Label<'_>, entry_map: EntryMap, origin: Origin, -) -> Result<Arc<BindGroupLayout>, CreateBindGroupLayoutError>

source

fn create_buffer_binding<'a>( +) -> Result<Arc<BindGroupLayout>, CreateBindGroupLayoutError>

source

fn create_buffer_binding<'a>( &self, bb: &'a ResolvedBufferBinding, binding: u32, @@ -154,13 +154,13 @@ late_buffer_binding_sizes: &mut HashMap<u32, BufferSize, BuildHasherDefault<FxHasher>>, used: &mut BindGroupStates, snatch_guard: &'a SnatchGuard<'a>, -) -> Result<BufferBinding<'a, dyn DynBuffer>, CreateBindGroupError>

source

fn create_sampler_binding<'a>( +) -> Result<BufferBinding<'a, dyn DynBuffer>, CreateBindGroupError>

source

fn create_sampler_binding<'a>( &self, used: &mut BindGroupStates, binding: u32, decl: &BindGroupLayoutEntry, sampler: &'a Arc<Sampler>, -) -> Result<&'a dyn DynSampler, CreateBindGroupError>

source

fn create_texture_binding<'a>( +) -> Result<&'a dyn DynSampler, CreateBindGroupError>

source

fn create_texture_binding<'a>( &self, binding: u32, decl: &BindGroupLayoutEntry, @@ -168,56 +168,56 @@ used: &mut BindGroupStates, used_texture_ranges: &mut Vec<TextureInitTrackerAction>, snatch_guard: &'a SnatchGuard<'a>, -) -> Result<TextureBinding<'a, dyn DynTextureView>, CreateBindGroupError>

source

fn create_tlas_binding<'a>( +) -> Result<TextureBinding<'a, dyn DynTextureView>, CreateBindGroupError>

source

fn create_tlas_binding<'a>( self: &Arc<Self>, used: &mut BindGroupStates, binding: u32, decl: &BindGroupLayoutEntry, tlas: &'a Arc<Tlas>, snatch_guard: &'a SnatchGuard<'a>, -) -> Result<&'a dyn DynAccelerationStructure, CreateBindGroupError>

source

pub(crate) fn create_bind_group( +) -> Result<&'a dyn DynAccelerationStructure, CreateBindGroupError>

source

pub(crate) fn create_bind_group( self: &Arc<Self>, desc: ResolvedBindGroupDescriptor<'_>, -) -> Result<Arc<BindGroup>, CreateBindGroupError>

source

fn check_array_binding( +) -> Result<Arc<BindGroup>, CreateBindGroupError>

source

fn check_array_binding( features: Features, count: Option<NonZeroU32>, num_bindings: usize, -) -> Result<(), CreateBindGroupError>

source

fn texture_use_parameters( +) -> Result<(), CreateBindGroupError>

source

fn texture_use_parameters( &self, binding: u32, decl: &BindGroupLayoutEntry, view: &TextureView, expected: &'static str, -) -> Result<TextureUses, CreateBindGroupError>

source

pub(crate) fn create_pipeline_layout( +) -> Result<TextureUses, CreateBindGroupError>

source

pub(crate) fn create_pipeline_layout( self: &Arc<Self>, desc: &ResolvedPipelineLayoutDescriptor<'_>, -) -> Result<Arc<PipelineLayout>, CreatePipelineLayoutError>

source

pub(crate) fn derive_pipeline_layout( +) -> Result<Arc<PipelineLayout>, CreatePipelineLayoutError>

source

pub(crate) fn derive_pipeline_layout( self: &Arc<Self>, derived_group_layouts: Box<ArrayVec<EntryMap, { hal::MAX_BIND_GROUPS }>>, -) -> Result<Arc<PipelineLayout>, ImplicitLayoutError>

source

pub(crate) fn create_compute_pipeline( +) -> Result<Arc<PipelineLayout>, ImplicitLayoutError>

source

pub(crate) fn create_compute_pipeline( self: &Arc<Self>, desc: ResolvedComputePipelineDescriptor<'_>, -) -> Result<Arc<ComputePipeline>, CreateComputePipelineError>

source

pub(crate) fn create_render_pipeline( +) -> Result<Arc<ComputePipeline>, CreateComputePipelineError>

source

pub(crate) fn create_render_pipeline( self: &Arc<Self>, desc: ResolvedRenderPipelineDescriptor<'_>, -) -> Result<Arc<RenderPipeline>, CreateRenderPipelineError>

source

pub unsafe fn create_pipeline_cache( +) -> Result<Arc<RenderPipeline>, CreateRenderPipelineError>

source

pub unsafe fn create_pipeline_cache( self: &Arc<Self>, desc: &PipelineCacheDescriptor<'_>, ) -> Result<Arc<PipelineCache>, CreatePipelineCacheError>

§Safety

The data field on desc must have previously been returned from crate::global::Global::pipeline_cache_get_data

-
source

fn get_texture_format_features( +

source

fn get_texture_format_features( &self, format: TextureFormat, -) -> TextureFormatFeatures

source

fn describe_format_features( +) -> TextureFormatFeatures

source

fn describe_format_features( &self, format: TextureFormat, -) -> Result<TextureFormatFeatures, MissingFeatures>

source

pub(crate) fn wait_for_submit( +) -> Result<TextureFormatFeatures, MissingFeatures>

source

pub(crate) fn wait_for_submit( &self, submission_index: SubmissionIndex, -) -> Result<(), DeviceError>

Available on crate feature replay only.
source

pub(crate) fn create_query_set( +) -> Result<(), DeviceError>

Available on crate feature replay only.
source

pub(crate) fn create_query_set( self: &Arc<Self>, desc: &QuerySetDescriptor<'_>, -) -> Result<Arc<QuerySet>, CreateQuerySetError>

source

fn lose(&self, message: &str)

source

pub(crate) fn release_gpu_resources(&self)

source

pub(crate) fn new_usage_scope(&self) -> UsageScope<'_>

source

pub fn get_hal_counters(&self) -> HalCounters

source

pub fn generate_allocator_report(&self) -> Option<AllocatorReport>

Trait Implementations§

source§

impl Debug for Device

source§

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

Formats the value using the given formatter. Read more
source§

impl Drop for Device

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Labeled for Device

source§

fn label(&self) -> &str

Returns a string identifying this resource for logging and errors. Read more
source§

fn error_ident(&self) -> ResourceErrorIdent

source§

impl ResourceType for Device

source§

const TYPE: &'static str = "Device"

source§

impl StorageItem for Device

Auto Trait Implementations§

§

impl !Freeze for Device

§

impl !RefUnwindSafe for Device

§

impl Send for Device

§

impl Sync for Device

§

impl Unpin for Device

§

impl !UnwindSafe for Device

Blanket Implementations§

source§

impl<T> Any for T

source

fn lose(&self, message: &str)

source

pub(crate) fn release_gpu_resources(&self)

source

pub(crate) fn new_usage_scope(&self) -> UsageScope<'_>

source

pub fn get_hal_counters(&self) -> HalCounters

source

pub fn generate_allocator_report(&self) -> Option<AllocatorReport>

Trait Implementations§

source§

impl Debug for Device

source§

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

Formats the value using the given formatter. Read more
source§

impl Drop for Device

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl Labeled for Device

source§

fn label(&self) -> &str

Returns a string identifying this resource for logging and errors. Read more
source§

fn error_ident(&self) -> ResourceErrorIdent

source§

impl ResourceType for Device

source§

const TYPE: &'static str = "Device"

source§

impl StorageItem for Device

Auto Trait Implementations§

§

impl !Freeze for Device

§

impl !RefUnwindSafe for Device

§

impl Send for Device

§

impl Sync for Device

§

impl Unpin for Device

§

impl !UnwindSafe for Device

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.

diff --git a/doc/wgpu_core/index.html b/doc/wgpu_core/index.html index 4a5dce983e68..d6e14788a971 100644 --- a/doc/wgpu_core/index.html +++ b/doc/wgpu_core/index.html @@ -77,4 +77,4 @@

Re-exports§

Modules§

Macros§

Constants§

Traits§

Functions§

Type Aliases§

\ No newline at end of file +

Re-exports§

Modules§

Macros§

Constants§

Traits§

Functions§

Type Aliases§

\ No newline at end of file diff --git a/doc/wgpu_core/pipeline/enum.CreateShaderModuleError.html b/doc/wgpu_core/pipeline/enum.CreateShaderModuleError.html index ea85518c1709..7f3a5dadda33 100644 --- a/doc/wgpu_core/pipeline/enum.CreateShaderModuleError.html +++ b/doc/wgpu_core/pipeline/enum.CreateShaderModuleError.html @@ -1,15 +1,15 @@ CreateShaderModuleError in wgpu_core::pipeline - Rust
wgpu_core::pipeline

Enum CreateShaderModuleError

source
#[non_exhaustive]
pub enum CreateShaderModuleError { - Parsing(ShaderError<ParseError>), + Parsing(ShaderError<ParseError>), Generation, Device(DeviceError), - Validation(ShaderError<WithSpan<ValidationError>>), + Validation(ShaderError<WithSpan<ValidationError>>), MissingFeatures(MissingFeatures), InvalidGroupIndex { - bind: ResourceBinding, + bind: ResourceBinding, group: u32, limit: u32, }, -}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Parsing(ShaderError<ParseError>)

Available on crate features wgsl or indirect-validation only.
§

Generation

§

Device(DeviceError)

§

Validation(ShaderError<WithSpan<ValidationError>>)

§

MissingFeatures(MissingFeatures)

§

InvalidGroupIndex

Fields

§bind: ResourceBinding
§group: u32
§limit: u32

Trait Implementations§

source§

impl Clone for CreateShaderModuleError

source§

fn clone(&self) -> CreateShaderModuleError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CreateShaderModuleError

source§

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

Formats the value using the given formatter. Read more
source§

impl Display for CreateShaderModuleError

source§

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

Formats the value using the given formatter. Read more
source§

impl Error for CreateShaderModuleError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<CreateShaderModuleError> for CreateDispatchIndirectValidationPipelineError

Available on crate feature indirect-validation only.
source§

fn from(source: CreateShaderModuleError) -> Self

Converts to this type from the input type.
source§

impl From<DeviceError> for CreateShaderModuleError

source§

fn from(source: DeviceError) -> Self

Converts to this type from the input type.
source§

impl From<MissingFeatures> for CreateShaderModuleError

source§

fn from(source: MissingFeatures) -> Self

Converts to this type from the input type.
source§

impl From<ShaderError<ParseError>> for CreateShaderModuleError

source§

fn from(source: ShaderError<ParseError>) -> Self

Converts to this type from the input type.
source§

impl From<ShaderError<WithSpan<ValidationError>>> for CreateShaderModuleError

source§

fn from(source: ShaderError<WithSpan<ValidationError>>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Parsing(ShaderError<ParseError>)

Available on crate features wgsl or indirect-validation only.
§

Generation

§

Device(DeviceError)

§

Validation(ShaderError<WithSpan<ValidationError>>)

§

MissingFeatures(MissingFeatures)

§

InvalidGroupIndex

Fields

§group: u32
§limit: u32

Trait Implementations§

source§

impl Clone for CreateShaderModuleError

source§

fn clone(&self) -> CreateShaderModuleError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CreateShaderModuleError

source§

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

Formats the value using the given formatter. Read more
source§

impl Display for CreateShaderModuleError

source§

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

Formats the value using the given formatter. Read more
source§

impl Error for CreateShaderModuleError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<CreateShaderModuleError> for CreateDispatchIndirectValidationPipelineError

Available on crate feature indirect-validation only.
source§

fn from(source: CreateShaderModuleError) -> Self

Converts to this type from the input type.
source§

impl From<DeviceError> for CreateShaderModuleError

source§

fn from(source: DeviceError) -> Self

Converts to this type from the input type.
source§

impl From<MissingFeatures> for CreateShaderModuleError

source§

fn from(source: MissingFeatures) -> Self

Converts to this type from the input type.
source§

impl From<ShaderError<ParseError>> for CreateShaderModuleError

source§

fn from(source: ShaderError<ParseError>) -> Self

Converts to this type from the input type.
source§

impl From<ShaderError<WithSpan<ValidationError>>> for CreateShaderModuleError

source§

fn from(source: ShaderError<WithSpan<ValidationError>>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

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> CloneToUninit for T
where diff --git a/doc/wgpu_core/pipeline/enum.ShaderModuleSource.html b/doc/wgpu_core/pipeline/enum.ShaderModuleSource.html index 3d4c0366d264..b4a22b7738da 100644 --- a/doc/wgpu_core/pipeline/enum.ShaderModuleSource.html +++ b/doc/wgpu_core/pipeline/enum.ShaderModuleSource.html @@ -1,8 +1,8 @@ ShaderModuleSource in wgpu_core::pipeline - Rust
wgpu_core::pipeline

Enum ShaderModuleSource

source
pub enum ShaderModuleSource<'a> {
     Wgsl(Cow<'a, str>),
-    Naga(Cow<'static, Module>),
+    Naga(Cow<'static, Module>),
     // some variants omitted
-}

Variants§

§

Wgsl(Cow<'a, str>)

Available on crate feature wgsl only.
§

Naga(Cow<'static, Module>)

Auto Trait Implementations§

§

impl<'a> Freeze for ShaderModuleSource<'a>

§

impl<'a> RefUnwindSafe for ShaderModuleSource<'a>

§

impl<'a> Send for ShaderModuleSource<'a>

§

impl<'a> Sync for ShaderModuleSource<'a>

§

impl<'a> Unpin for ShaderModuleSource<'a>

§

impl<'a> UnwindSafe for ShaderModuleSource<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +}

Variants§

§

Wgsl(Cow<'a, str>)

Available on crate feature wgsl only.
§

Naga(Cow<'static, Module>)

Auto Trait Implementations§

§

impl<'a> Freeze for ShaderModuleSource<'a>

§

impl<'a> RefUnwindSafe for ShaderModuleSource<'a>

§

impl<'a> Send for ShaderModuleSource<'a>

§

impl<'a> Sync for ShaderModuleSource<'a>

§

impl<'a> Unpin for ShaderModuleSource<'a>

§

impl<'a> UnwindSafe for ShaderModuleSource<'a>

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.

diff --git a/doc/wgpu_core/pipeline/struct.ProgrammableStageDescriptor.html b/doc/wgpu_core/pipeline/struct.ProgrammableStageDescriptor.html index 950fa1bd0eef..0835f73190eb 100644 --- a/doc/wgpu_core/pipeline/struct.ProgrammableStageDescriptor.html +++ b/doc/wgpu_core/pipeline/struct.ProgrammableStageDescriptor.html @@ -1,7 +1,7 @@ ProgrammableStageDescriptor in wgpu_core::pipeline - Rust
wgpu_core::pipeline

Struct ProgrammableStageDescriptor

source
pub struct ProgrammableStageDescriptor<'a> {
     pub module: ShaderModuleId,
     pub entry_point: Option<Cow<'a, str>>,
-    pub constants: Cow<'a, PipelineConstants>,
+    pub constants: Cow<'a, PipelineConstants>,
     pub zero_initialize_workgroup_memory: bool,
 }
Expand description

Describes a programmable pipeline stage.

Fields§

§module: ShaderModuleId

The compiled shader module for this stage.

@@ -12,7 +12,7 @@
  • If a single entry point associated with this stage must be in the shader, then proceed as if Some(…) was specified with that entry point’s name.
  • -
    §constants: Cow<'a, PipelineConstants>

    Specifies the values of pipeline-overridable constants in the shader module.

    +
    §constants: Cow<'a, PipelineConstants>

    Specifies the values of pipeline-overridable constants in the shader module.

    If an @id attribute was specified on the declaration, the key must be the pipeline constant ID as a decimal ASCII number; if not, the key must be the constant’s identifier name.

    diff --git a/doc/wgpu_core/pipeline/struct.ResolvedProgrammableStageDescriptor.html b/doc/wgpu_core/pipeline/struct.ResolvedProgrammableStageDescriptor.html index dd6a080518f1..aa0253c6c12a 100644 --- a/doc/wgpu_core/pipeline/struct.ResolvedProgrammableStageDescriptor.html +++ b/doc/wgpu_core/pipeline/struct.ResolvedProgrammableStageDescriptor.html @@ -1,7 +1,7 @@ ResolvedProgrammableStageDescriptor in wgpu_core::pipeline - Rust
    wgpu_core::pipeline

    Struct ResolvedProgrammableStageDescriptor

    source
    pub struct ResolvedProgrammableStageDescriptor<'a> {
         pub module: Arc<ShaderModule>,
         pub entry_point: Option<Cow<'a, str>>,
    -    pub constants: Cow<'a, PipelineConstants>,
    +    pub constants: Cow<'a, PipelineConstants>,
         pub zero_initialize_workgroup_memory: bool,
     }
    Expand description

    Describes a programmable pipeline stage.

    Fields§

    §module: Arc<ShaderModule>

    The compiled shader module for this stage.

    @@ -12,7 +12,7 @@
  • If a single entry point associated with this stage must be in the shader, then proceed as if Some(…) was specified with that entry point’s name.
  • -
    §constants: Cow<'a, PipelineConstants>

    Specifies the values of pipeline-overridable constants in the shader module.

    +
    §constants: Cow<'a, PipelineConstants>

    Specifies the values of pipeline-overridable constants in the shader module.

    If an @id attribute was specified on the declaration, the key must be the pipeline constant ID as a decimal ASCII number; if not, the key must be the constant’s identifier name.

    diff --git a/doc/wgpu_core/resource/trait.Labeled.html b/doc/wgpu_core/resource/trait.Labeled.html index 13572ef33ec1..40a346a5738c 100644 --- a/doc/wgpu_core/resource/trait.Labeled.html +++ b/doc/wgpu_core/resource/trait.Labeled.html @@ -7,4 +7,4 @@ }

    Required Methods§

    source

    fn label(&self) -> &str

    Returns a string identifying this resource for logging and errors.

    It may be a user-provided string or it may be a placeholder from wgpu.

    It is non-empty unless the user-provided string was empty.

    -

    Provided Methods§

    Object Safety§

    This trait is not object safe.

    Implementors§

    \ No newline at end of file +

    Provided Methods§

    Object Safety§

    This trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/doc/wgpu_core/resource/trait.ResourceType.html b/doc/wgpu_core/resource/trait.ResourceType.html index cdfabe334bb7..388131e70a86 100644 --- a/doc/wgpu_core/resource/trait.ResourceType.html +++ b/doc/wgpu_core/resource/trait.ResourceType.html @@ -1,3 +1,3 @@ ResourceType in wgpu_core::resource - Rust
    wgpu_core::resource

    Trait ResourceType

    source
    pub trait ResourceType {
         const TYPE: &'static str;
    -}

    Required Associated Constants§

    source

    const TYPE: &'static str

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<T: ResourceType> ResourceType for Arc<T>

    source§

    const TYPE: &'static str = T::TYPE

    Implementors§

    source§

    impl ResourceType for BindGroup

    source§

    const TYPE: &'static str = "BindGroup"

    source§

    impl ResourceType for BindGroupLayout

    source§

    const TYPE: &'static str = "BindGroupLayout"

    source§

    impl ResourceType for PipelineLayout

    source§

    const TYPE: &'static str = "PipelineLayout"

    source§

    impl ResourceType for RenderBundle

    source§

    const TYPE: &'static str = "RenderBundle"

    source§

    impl ResourceType for CommandBuffer

    source§

    const TYPE: &'static str = "CommandBuffer"

    source§

    impl ResourceType for Queue

    source§

    const TYPE: &'static str = "Queue"

    source§

    impl ResourceType for Device

    source§

    const TYPE: &'static str = "Device"

    source§

    impl ResourceType for Adapter

    source§

    const TYPE: &'static str = "Adapter"

    source§

    impl ResourceType for Surface

    source§

    const TYPE: &'static str = "Surface"

    source§

    impl ResourceType for ComputePipeline

    source§

    const TYPE: &'static str = "ComputePipeline"

    source§

    impl ResourceType for PipelineCache

    source§

    const TYPE: &'static str = "PipelineCache"

    source§

    impl ResourceType for RenderPipeline

    source§

    const TYPE: &'static str = "RenderPipeline"

    source§

    impl ResourceType for ShaderModule

    source§

    const TYPE: &'static str = "ShaderModule"

    source§

    impl ResourceType for Blas

    source§

    const TYPE: &'static str = "Blas"

    source§

    impl ResourceType for Buffer

    source§

    const TYPE: &'static str = "Buffer"

    source§

    impl ResourceType for QuerySet

    source§

    const TYPE: &'static str = "QuerySet"

    source§

    impl ResourceType for Sampler

    source§

    const TYPE: &'static str = "Sampler"

    source§

    impl ResourceType for StagingBuffer

    source§

    const TYPE: &'static str = "StagingBuffer"

    source§

    impl ResourceType for Texture

    source§

    const TYPE: &'static str = "Texture"

    source§

    impl ResourceType for TextureView

    source§

    const TYPE: &'static str = "TextureView"

    source§

    impl ResourceType for Tlas

    source§

    const TYPE: &'static str = "Tlas"

    source§

    impl<T: ParentDevice> ResourceType for Fallible<T>

    source§

    const TYPE: &'static str = T::TYPE

    \ No newline at end of file +}

    Required Associated Constants§

    source

    const TYPE: &'static str

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<T: ResourceType> ResourceType for Arc<T>

    source§

    const TYPE: &'static str = T::TYPE

    Implementors§

    source§

    impl ResourceType for BindGroup

    source§

    const TYPE: &'static str = "BindGroup"

    source§

    impl ResourceType for BindGroupLayout

    source§

    const TYPE: &'static str = "BindGroupLayout"

    source§

    impl ResourceType for PipelineLayout

    source§

    const TYPE: &'static str = "PipelineLayout"

    source§

    impl ResourceType for RenderBundle

    source§

    const TYPE: &'static str = "RenderBundle"

    source§

    impl ResourceType for CommandBuffer

    source§

    const TYPE: &'static str = "CommandBuffer"

    source§

    impl ResourceType for Queue

    source§

    const TYPE: &'static str = "Queue"

    source§

    impl ResourceType for Device

    source§

    const TYPE: &'static str = "Device"

    source§

    impl ResourceType for Adapter

    source§

    const TYPE: &'static str = "Adapter"

    source§

    impl ResourceType for Surface

    source§

    const TYPE: &'static str = "Surface"

    source§

    impl ResourceType for ComputePipeline

    source§

    const TYPE: &'static str = "ComputePipeline"

    source§

    impl ResourceType for PipelineCache

    source§

    const TYPE: &'static str = "PipelineCache"

    source§

    impl ResourceType for RenderPipeline

    source§

    const TYPE: &'static str = "RenderPipeline"

    source§

    impl ResourceType for ShaderModule

    source§

    const TYPE: &'static str = "ShaderModule"

    source§

    impl ResourceType for Blas

    source§

    const TYPE: &'static str = "Blas"

    source§

    impl ResourceType for Buffer

    source§

    const TYPE: &'static str = "Buffer"

    source§

    impl ResourceType for QuerySet

    source§

    const TYPE: &'static str = "QuerySet"

    source§

    impl ResourceType for Sampler

    source§

    const TYPE: &'static str = "Sampler"

    source§

    impl ResourceType for StagingBuffer

    source§

    const TYPE: &'static str = "StagingBuffer"

    source§

    impl ResourceType for Texture

    source§

    const TYPE: &'static str = "Texture"

    source§

    impl ResourceType for TextureView

    source§

    const TYPE: &'static str = "TextureView"

    source§

    impl ResourceType for Tlas

    source§

    const TYPE: &'static str = "Tlas"

    source§

    impl<T: ParentDevice> ResourceType for Fallible<T>

    source§

    const TYPE: &'static str = T::TYPE

    \ No newline at end of file diff --git a/doc/wgpu_core/storage/trait.StorageItem.html b/doc/wgpu_core/storage/trait.StorageItem.html index 78b9aa9ab279..53ceec9077e7 100644 --- a/doc/wgpu_core/storage/trait.StorageItem.html +++ b/doc/wgpu_core/storage/trait.StorageItem.html @@ -1,3 +1,3 @@ StorageItem in wgpu_core::storage - Rust
    wgpu_core::storage

    Trait StorageItem

    source
    pub(crate) trait StorageItem: ResourceType {
         type Marker: Marker;
    -}

    Required Associated Types§

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<T: StorageItem> StorageItem for Arc<T>

    Implementors§

    source§

    impl StorageItem for BindGroup

    source§

    impl StorageItem for BindGroupLayout

    source§

    impl StorageItem for PipelineLayout

    source§

    impl StorageItem for RenderBundle

    source§

    impl StorageItem for CommandBuffer

    source§

    impl StorageItem for Queue

    source§

    impl StorageItem for Device

    source§

    impl StorageItem for Adapter

    source§

    impl StorageItem for Surface

    source§

    impl StorageItem for ComputePipeline

    source§

    impl StorageItem for PipelineCache

    source§

    impl StorageItem for RenderPipeline

    source§

    impl StorageItem for ShaderModule

    source§

    impl StorageItem for Blas

    source§

    impl StorageItem for Buffer

    source§

    impl StorageItem for QuerySet

    source§

    impl StorageItem for Sampler

    source§

    impl StorageItem for StagingBuffer

    source§

    impl StorageItem for Texture

    source§

    impl StorageItem for TextureView

    source§

    impl StorageItem for Tlas

    source§

    impl<T: ParentDevice + StorageItem> StorageItem for Fallible<T>

    \ No newline at end of file +}

    Required Associated Types§

    source

    type Marker: Marker

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<T: StorageItem> StorageItem for Arc<T>

    Implementors§

    source§

    impl StorageItem for BindGroup

    source§

    impl StorageItem for BindGroupLayout

    source§

    impl StorageItem for PipelineLayout

    source§

    impl StorageItem for RenderBundle

    source§

    impl StorageItem for CommandBuffer

    source§

    impl StorageItem for Queue

    source§

    impl StorageItem for Device

    source§

    impl StorageItem for Adapter

    source§

    impl StorageItem for Surface

    source§

    impl StorageItem for ComputePipeline

    source§

    impl StorageItem for PipelineCache

    source§

    impl StorageItem for RenderPipeline

    source§

    impl StorageItem for ShaderModule

    source§

    impl StorageItem for Blas

    source§

    impl StorageItem for Buffer

    source§

    impl StorageItem for QuerySet

    source§

    impl StorageItem for Sampler

    source§

    impl StorageItem for StagingBuffer

    source§

    impl StorageItem for Texture

    source§

    impl StorageItem for TextureView

    source§

    impl StorageItem for Tlas

    source§

    impl<T: ParentDevice + StorageItem> StorageItem for Fallible<T>

    \ No newline at end of file diff --git a/doc/wgpu_core/track/texture/struct.TextureStateSet.html b/doc/wgpu_core/track/texture/struct.TextureStateSet.html index 1196c400f535..9c95030b6311 100644 --- a/doc/wgpu_core/track/texture/struct.TextureStateSet.html +++ b/doc/wgpu_core/track/texture/struct.TextureStateSet.html @@ -1,8 +1,8 @@ TextureStateSet in wgpu_core::track::texture - Rust
    wgpu_core::track::texture

    Struct TextureStateSet

    source
    pub(crate) struct TextureStateSet {
         simple: Vec<TextureUses>,
    -    complex: FastHashMap<usize, ComplexTextureState>,
    +    complex: FastHashMap<usize, ComplexTextureState>,
     }
    Expand description

    Container for corresponding simple and complex texture states.

    -

    Fields§

    §simple: Vec<TextureUses>§complex: FastHashMap<usize, ComplexTextureState>

    Implementations§

    source§

    impl TextureStateSet

    source

    fn new() -> Self

    source

    fn clear(&mut self)

    source

    fn set_size(&mut self, size: usize)

    source

    fn size(&self) -> usize

    source

    unsafe fn get_unchecked( +

    Fields§

    §simple: Vec<TextureUses>§complex: FastHashMap<usize, ComplexTextureState>

    Implementations§

    source§

    impl TextureStateSet

    source

    fn new() -> Self

    source

    fn clear(&mut self)

    source

    fn set_size(&mut self, size: usize)

    source

    fn size(&self) -> usize

    source

    unsafe fn get_unchecked( &self, index: usize, ) -> SingleOrManyStates<TextureUses, &ComplexTextureState>

    SAFETY: index must be in bounds.

    diff --git a/doc/wgpu_core/validation/enum.BindingError.html b/doc/wgpu_core/validation/enum.BindingError.html index b2806d959fe5..b131571e7cdb 100644 --- a/doc/wgpu_core/validation/enum.BindingError.html +++ b/doc/wgpu_core/validation/enum.BindingError.html @@ -6,29 +6,29 @@ shader: BindingTypeName, }, WrongAddressSpace { - binding: AddressSpace, - shader: AddressSpace, + binding: AddressSpace, + shader: AddressSpace, }, WrongBufferAddressSpace { - space: AddressSpace, + space: AddressSpace, }, WrongBufferSize { buffer_size: BufferSize, min_binding_size: BufferSize, }, WrongTextureViewDimension { - dim: ImageDimension, + dim: ImageDimension, is_array: bool, binding: BindingType, }, WrongTextureClass { - binding: ImageClass, - shader: ImageClass, + binding: ImageClass, + shader: ImageClass, }, WrongSamplerComparison, InconsistentlyDerivedType, BadStorageFormat(TextureFormat), -}

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    Missing

    §

    Invisible

    §

    WrongType

    Fields

    §

    WrongAddressSpace

    Fields

    §binding: AddressSpace
    §shader: AddressSpace
    §

    WrongBufferAddressSpace

    Fields

    §space: AddressSpace
    §

    WrongBufferSize

    Fields

    §buffer_size: BufferSize
    §min_binding_size: BufferSize
    §

    WrongTextureViewDimension

    Fields

    §dim: ImageDimension
    §is_array: bool
    §binding: BindingType
    §

    WrongTextureClass

    Fields

    §binding: ImageClass
    §shader: ImageClass
    §

    WrongSamplerComparison

    §

    InconsistentlyDerivedType

    §

    BadStorageFormat(TextureFormat)

    Trait Implementations§

    source§

    impl Clone for BindingError

    source§

    fn clone(&self) -> BindingError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BindingError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for BindingError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Error for BindingError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    Missing

    §

    Invisible

    §

    WrongType

    Fields

    §

    WrongAddressSpace

    Fields

    §

    WrongBufferAddressSpace

    Fields

    §

    WrongBufferSize

    Fields

    §buffer_size: BufferSize
    §min_binding_size: BufferSize
    §

    WrongTextureViewDimension

    Fields

    §is_array: bool
    §binding: BindingType
    §

    WrongTextureClass

    Fields

    §binding: ImageClass
    §shader: ImageClass
    §

    WrongSamplerComparison

    §

    InconsistentlyDerivedType

    §

    BadStorageFormat(TextureFormat)

    Trait Implementations§

    source§

    impl Clone for BindingError

    source§

    fn clone(&self) -> BindingError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BindingError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for BindingError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Error for BindingError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where diff --git a/doc/wgpu_core/validation/enum.InputError.html b/doc/wgpu_core/validation/enum.InputError.html index 162fd312c859..1e341d0d5fd0 100644 --- a/doc/wgpu_core/validation/enum.InputError.html +++ b/doc/wgpu_core/validation/enum.InputError.html @@ -1,9 +1,9 @@ InputError in wgpu_core::validation - Rust
    wgpu_core::validation

    Enum InputError

    source
    #[non_exhaustive]
    pub enum InputError { Missing, WrongType(NumericType), - InterpolationMismatch(Option<Interpolation>), - SamplingMismatch(Option<Sampling>), -}

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    Missing

    §

    WrongType(NumericType)

    §

    InterpolationMismatch(Option<Interpolation>)

    §

    SamplingMismatch(Option<Sampling>)

    Trait Implementations§

    source§

    impl Clone for InputError

    source§

    fn clone(&self) -> InputError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for InputError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for InputError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Error for InputError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + InterpolationMismatch(Option<Interpolation>), + SamplingMismatch(Option<Sampling>), +}

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    Missing

    §

    WrongType(NumericType)

    §

    InterpolationMismatch(Option<Interpolation>)

    §

    SamplingMismatch(Option<Sampling>)

    Trait Implementations§

    source§

    impl Clone for InputError

    source§

    fn clone(&self) -> InputError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for InputError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for InputError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Error for InputError

    1.30.0 · source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where diff --git a/doc/wgpu_core/validation/enum.NumericDimension.html b/doc/wgpu_core/validation/enum.NumericDimension.html index 551ae96b2b00..ec2174854d43 100644 --- a/doc/wgpu_core/validation/enum.NumericDimension.html +++ b/doc/wgpu_core/validation/enum.NumericDimension.html @@ -1,8 +1,8 @@ NumericDimension in wgpu_core::validation - Rust
    wgpu_core::validation

    Enum NumericDimension

    source
    enum NumericDimension {
         Scalar,
    -    Vector(VectorSize),
    -    Matrix(VectorSize, VectorSize),
    -}

    Variants§

    §

    Scalar

    §

    Vector(VectorSize)

    §

    Matrix(VectorSize, VectorSize)

    Implementations§

    Trait Implementations§

    source§

    impl Clone for NumericDimension

    source§

    fn clone(&self) -> NumericDimension

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for NumericDimension

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for NumericDimension

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for NumericDimension

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + Vector(VectorSize), + Matrix(VectorSize, VectorSize), +}

    Variants§

    §

    Scalar

    §

    Vector(VectorSize)

    §

    Matrix(VectorSize, VectorSize)

    Implementations§

    Trait Implementations§

    source§

    impl Clone for NumericDimension

    source§

    fn clone(&self) -> NumericDimension

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for NumericDimension

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for NumericDimension

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for NumericDimension

    Auto Trait Implementations§

    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> CloneToUninit for T
    where diff --git a/doc/wgpu_core/validation/enum.ResourceType.html b/doc/wgpu_core/validation/enum.ResourceType.html index 5c140f74b3ab..b1c1cc327d96 100644 --- a/doc/wgpu_core/validation/enum.ResourceType.html +++ b/doc/wgpu_core/validation/enum.ResourceType.html @@ -3,15 +3,15 @@ size: BufferSize, }, Texture { - dim: ImageDimension, + dim: ImageDimension, arrayed: bool, - class: ImageClass, + class: ImageClass, }, Sampler { comparison: bool, }, AccelerationStructure, -}

    Variants§

    §

    Buffer

    Fields

    §

    Texture

    Fields

    §dim: ImageDimension
    §arrayed: bool
    §class: ImageClass
    §

    Sampler

    Fields

    §comparison: bool
    §

    AccelerationStructure

    Trait Implementations§

    source§

    impl Debug for ResourceType

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl From<&ResourceType> for BindingTypeName

    source§

    fn from(ty: &ResourceType) -> BindingTypeName

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Variants§

    §

    Buffer

    Fields

    §

    Texture

    Fields

    §arrayed: bool
    §

    Sampler

    Fields

    §comparison: bool
    §

    AccelerationStructure

    Trait Implementations§

    source§

    impl Debug for ResourceType

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl From<&ResourceType> for BindingTypeName

    source§

    fn from(ty: &ResourceType) -> BindingTypeName

    Converts to this type from the input type.

    Auto Trait Implementations§

    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.

    diff --git a/doc/wgpu_core/validation/enum.StageError.html b/doc/wgpu_core/validation/enum.StageError.html index 5881c62425af..843c6b9bf6e2 100644 --- a/doc/wgpu_core/validation/enum.StageError.html +++ b/doc/wgpu_core/validation/enum.StageError.html @@ -10,10 +10,10 @@ limit: u32, }, MissingEntryPoint(String), - Binding(ResourceBinding, BindingError), + Binding(ResourceBinding, BindingError), Filtering { - texture: ResourceBinding, - sampler: ResourceBinding, + texture: ResourceBinding, + sampler: ResourceBinding, error: FilteringError, }, Input { @@ -25,7 +25,7 @@ MultipleEntryPointsFound, InvalidResource(InvalidResourceError), }
    Expand description

    Errors produced when validating a programmable stage of a pipeline.

    -

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    InvalidWorkgroupSize

    Fields

    §current: [u32; 3]
    §current_total: u32
    §limit: [u32; 3]
    §total: u32
    §

    TooManyVaryings

    Fields

    §used: u32
    §limit: u32
    §

    MissingEntryPoint(String)

    §

    Binding(ResourceBinding, BindingError)

    §

    Filtering

    Fields

    §texture: ResourceBinding
    §sampler: ResourceBinding
    §

    Input

    Fields

    §

    NoEntryPointFound

    §

    MultipleEntryPointsFound

    §

    InvalidResource(InvalidResourceError)

    Trait Implementations§

    source§

    impl Clone for StageError

    source§

    fn clone(&self) -> StageError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for StageError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for StageError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Error for StageError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    source§

    impl From<InvalidResourceError> for StageError

    source§

    fn from(source: InvalidResourceError) -> Self

    Converts to this type from the input type.
    source§

    impl From<StageError> for CreateComputePipelineError

    source§

    fn from(source: StageError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    InvalidWorkgroupSize

    Fields

    §current: [u32; 3]
    §current_total: u32
    §limit: [u32; 3]
    §total: u32
    §

    TooManyVaryings

    Fields

    §used: u32
    §limit: u32
    §

    MissingEntryPoint(String)

    §

    Binding(ResourceBinding, BindingError)

    §

    Filtering

    §

    Input

    Fields

    §

    NoEntryPointFound

    §

    MultipleEntryPointsFound

    §

    InvalidResource(InvalidResourceError)

    Trait Implementations§

    source§

    impl Clone for StageError

    source§

    fn clone(&self) -> StageError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for StageError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for StageError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Error for StageError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    source§

    impl From<InvalidResourceError> for StageError

    source§

    fn from(source: InvalidResourceError) -> Self

    Converts to this type from the input type.
    source§

    impl From<StageError> for CreateComputePipelineError

    source§

    fn from(source: StageError) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    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> CloneToUninit for T
    where diff --git a/doc/wgpu_core/validation/enum.Varying.html b/doc/wgpu_core/validation/enum.Varying.html index 955b80170935..5e1efa343e2f 100644 --- a/doc/wgpu_core/validation/enum.Varying.html +++ b/doc/wgpu_core/validation/enum.Varying.html @@ -3,8 +3,8 @@ location: u32, iv: InterfaceVar, }, - BuiltIn(BuiltIn), -}

    Variants§

    §

    Local

    Fields

    §location: u32
    §

    BuiltIn(BuiltIn)

    Trait Implementations§

    source§

    impl Debug for Varying

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + BuiltIn(BuiltIn), +}

    Variants§

    §

    Local

    Fields

    §location: u32
    §

    BuiltIn(BuiltIn)

    Trait Implementations§

    source§

    impl Debug for Varying

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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.

    diff --git a/doc/wgpu_core/validation/fn.map_storage_format_from_naga.html b/doc/wgpu_core/validation/fn.map_storage_format_from_naga.html index d004728417e7..71b0cdbe488f 100644 --- a/doc/wgpu_core/validation/fn.map_storage_format_from_naga.html +++ b/doc/wgpu_core/validation/fn.map_storage_format_from_naga.html @@ -1 +1 @@ -map_storage_format_from_naga in wgpu_core::validation - Rust
    wgpu_core::validation

    Function map_storage_format_from_naga

    source
    pub fn map_storage_format_from_naga(format: StorageFormat) -> TextureFormat
    \ No newline at end of file +map_storage_format_from_naga in wgpu_core::validation - Rust
    wgpu_core::validation

    Function map_storage_format_from_naga

    source
    pub fn map_storage_format_from_naga(format: StorageFormat) -> TextureFormat
    \ No newline at end of file diff --git a/doc/wgpu_core/validation/fn.map_storage_format_to_naga.html b/doc/wgpu_core/validation/fn.map_storage_format_to_naga.html index 0b57e5cc35f5..ae4c03d701e2 100644 --- a/doc/wgpu_core/validation/fn.map_storage_format_to_naga.html +++ b/doc/wgpu_core/validation/fn.map_storage_format_to_naga.html @@ -1,3 +1,3 @@ map_storage_format_to_naga in wgpu_core::validation - Rust
    wgpu_core::validation

    Function map_storage_format_to_naga

    source
    pub fn map_storage_format_to_naga(
         format: TextureFormat,
    -) -> Option<StorageFormat>
    \ No newline at end of file +) -> Option<StorageFormat>

    \ No newline at end of file diff --git a/doc/wgpu_core/validation/struct.EntryPoint.html b/doc/wgpu_core/validation/struct.EntryPoint.html index 3e976c681826..230b2595826a 100644 --- a/doc/wgpu_core/validation/struct.EntryPoint.html +++ b/doc/wgpu_core/validation/struct.EntryPoint.html @@ -1,12 +1,12 @@ EntryPoint in wgpu_core::validation - Rust
    wgpu_core::validation

    Struct EntryPoint

    source
    struct EntryPoint {
         inputs: Vec<Varying>,
         outputs: Vec<Varying>,
    -    resources: Vec<Handle<Resource>>,
    +    resources: Vec<Handle<Resource>>,
         spec_constants: Vec<SpecializationConstant>,
    -    sampling_pairs: HashSet<(Handle<Resource>, Handle<Resource>), BuildHasherDefault<FxHasher>>,
    +    sampling_pairs: HashSet<(Handle<Resource>, Handle<Resource>), BuildHasherDefault<FxHasher>>,
         workgroup_size: [u32; 3],
         dual_source_blending: bool,
    -}

    Fields§

    §inputs: Vec<Varying>§outputs: Vec<Varying>§resources: Vec<Handle<Resource>>§spec_constants: Vec<SpecializationConstant>§sampling_pairs: HashSet<(Handle<Resource>, Handle<Resource>), BuildHasherDefault<FxHasher>>§workgroup_size: [u32; 3]§dual_source_blending: bool

    Trait Implementations§

    source§

    impl Debug for EntryPoint

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Default for EntryPoint

    source§

    fn default() -> EntryPoint

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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Fields§

    §inputs: Vec<Varying>§outputs: Vec<Varying>§resources: Vec<Handle<Resource>>§spec_constants: Vec<SpecializationConstant>§sampling_pairs: HashSet<(Handle<Resource>, Handle<Resource>), BuildHasherDefault<FxHasher>>§workgroup_size: [u32; 3]§dual_source_blending: bool

    Trait Implementations§

    source§

    impl Debug for EntryPoint

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Default for EntryPoint

    source§

    fn default() -> EntryPoint

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

    Auto Trait Implementations§

    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.

    diff --git a/doc/wgpu_core/validation/struct.Interface.html b/doc/wgpu_core/validation/struct.Interface.html index 9b8e228f9f35..4a4a6ca4de0b 100644 --- a/doc/wgpu_core/validation/struct.Interface.html +++ b/doc/wgpu_core/validation/struct.Interface.html @@ -1,22 +1,22 @@ Interface in wgpu_core::validation - Rust
    wgpu_core::validation

    Struct Interface

    source
    pub struct Interface {
         limits: Limits,
    -    resources: Arena<Resource>,
    -    entry_points: HashMap<(ShaderStage, String), EntryPoint, BuildHasherDefault<FxHasher>>,
    -}

    Fields§

    §limits: Limits§resources: Arena<Resource>§entry_points: HashMap<(ShaderStage, String), EntryPoint, BuildHasherDefault<FxHasher>>

    Implementations§

    source§

    impl Interface

    source

    fn populate( + resources: Arena<Resource>, + entry_points: HashMap<(ShaderStage, String), EntryPoint, BuildHasherDefault<FxHasher>>, +}

    Fields§

    §limits: Limits§resources: Arena<Resource>§entry_points: HashMap<(ShaderStage, String), EntryPoint, BuildHasherDefault<FxHasher>>

    Implementations§

    source§

    impl Interface

    source

    fn populate( list: &mut Vec<Varying>, - binding: Option<&Binding>, - ty: Handle<Type>, - arena: &UniqueArena<Type>, -)

    source

    pub fn new(module: &Module, info: &ModuleInfo, limits: Limits) -> Self

    source

    pub fn finalize_entry_point_name( + binding: Option<&Binding>, + ty: Handle<Type>, + arena: &UniqueArena<Type>, +)

    source

    pub fn new(module: &Module, info: &ModuleInfo, limits: Limits) -> Self

    source

    pub fn finalize_entry_point_name( &self, stage_bit: ShaderStages, entry_point_name: Option<&str>, ) -> Result<String, StageError>

    source

    pub(crate) fn shader_stage_from_stage_bit( stage_bit: ShaderStages, -) -> ShaderStage

    source

    pub fn check_stage( +) -> ShaderStage

    source

    pub fn check_stage( &self, layouts: &mut BindingLayoutSource<'_>, - shader_binding_sizes: &mut HashMap<ResourceBinding, BufferSize, BuildHasherDefault<FxHasher>>, + shader_binding_sizes: &mut HashMap<ResourceBinding, BufferSize, BuildHasherDefault<FxHasher>>, entry_point_name: &str, stage_bit: ShaderStages, inputs: StageIo, diff --git a/doc/wgpu_core/validation/struct.InterfaceVar.html b/doc/wgpu_core/validation/struct.InterfaceVar.html index f110c39dbce0..23d28f1d382e 100644 --- a/doc/wgpu_core/validation/struct.InterfaceVar.html +++ b/doc/wgpu_core/validation/struct.InterfaceVar.html @@ -1,8 +1,8 @@ InterfaceVar in wgpu_core::validation - Rust
    wgpu_core::validation

    Struct InterfaceVar

    source
    pub struct InterfaceVar {
         pub ty: NumericType,
    -    interpolation: Option<Interpolation>,
    -    sampling: Option<Sampling>,
    -}

    Fields§

    §ty: NumericType§interpolation: Option<Interpolation>§sampling: Option<Sampling>

    Implementations§

    Trait Implementations§

    source§

    impl Clone for InterfaceVar

    source§

    fn clone(&self) -> InterfaceVar

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for InterfaceVar

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for InterfaceVar

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + interpolation: Option<Interpolation>, + sampling: Option<Sampling>, +}

    Fields§

    §ty: NumericType§interpolation: Option<Interpolation>§sampling: Option<Sampling>

    Implementations§

    Trait Implementations§

    source§

    impl Clone for InterfaceVar

    source§

    fn clone(&self) -> InterfaceVar

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for InterfaceVar

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for InterfaceVar

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where diff --git a/doc/wgpu_core/validation/struct.NumericType.html b/doc/wgpu_core/validation/struct.NumericType.html index d58bfe4f4471..a8e4cac22514 100644 --- a/doc/wgpu_core/validation/struct.NumericType.html +++ b/doc/wgpu_core/validation/struct.NumericType.html @@ -1,7 +1,7 @@ NumericType in wgpu_core::validation - Rust
    wgpu_core::validation

    Struct NumericType

    source
    pub struct NumericType {
         dim: NumericDimension,
    -    scalar: Scalar,
    -}

    Fields§

    §dim: NumericDimension§scalar: Scalar

    Implementations§

    Trait Implementations§

    source§

    impl Clone for NumericType

    source§

    fn clone(&self) -> NumericType

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for NumericType

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for NumericType

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for NumericType

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + scalar: Scalar, +}

    Fields§

    §dim: NumericDimension§scalar: Scalar

    Implementations§

    Trait Implementations§

    source§

    impl Clone for NumericType

    source§

    fn clone(&self) -> NumericType

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for NumericType

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for NumericType

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for NumericType

    Auto Trait Implementations§

    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> CloneToUninit for T
    where diff --git a/doc/wgpu_core/validation/struct.Resource.html b/doc/wgpu_core/validation/struct.Resource.html index 0e348132ccc9..0856457eb057 100644 --- a/doc/wgpu_core/validation/struct.Resource.html +++ b/doc/wgpu_core/validation/struct.Resource.html @@ -1,9 +1,9 @@ Resource in wgpu_core::validation - Rust
    wgpu_core::validation

    Struct Resource

    source
    struct Resource {
         name: Option<String>,
    -    bind: ResourceBinding,
    +    bind: ResourceBinding,
         ty: ResourceType,
    -    class: AddressSpace,
    -}

    Fields§

    §name: Option<String>§bind: ResourceBinding§ty: ResourceType§class: AddressSpace

    Implementations§

    source§

    impl Resource

    source

    fn check_binding_use( + class: AddressSpace, +}

    Fields§

    §name: Option<String>§bind: ResourceBinding§ty: ResourceType§class: AddressSpace

    Implementations§

    source§

    impl Resource

    source

    fn check_binding_use( &self, entry: &BindGroupLayoutEntry, ) -> Result<(), BindingError>

    source

    fn derive_binding_type( diff --git a/doc/wgpu_examples/boids/struct.Example.html b/doc/wgpu_examples/boids/struct.Example.html index 5bc0014fa40e..f68bb3de6bfc 100644 --- a/doc/wgpu_examples/boids/struct.Example.html +++ b/doc/wgpu_examples/boids/struct.Example.html @@ -22,7 +22,7 @@ )

    resize is called on WindowEvent::Resized events

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    render is called each frame, dispatching compute groups proportional a TriangleList draw call for all NUM_PARTICLES at 3 vertices each

    -
    source§

    fn required_limits() -> Limits

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    Auto Trait Implementations§

    Blanket Implementations§

    Auto Trait Implementations§

    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

    §

    impl<T> Downcast for T
    where @@ -44,7 +44,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/bunnymark/struct.Bunny.html b/doc/wgpu_examples/bunnymark/struct.Bunny.html index c557559f9724..56fdbbc11b36 100644 --- a/doc/wgpu_examples/bunnymark/struct.Bunny.html +++ b/doc/wgpu_examples/bunnymark/struct.Bunny.html @@ -27,7 +27,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/bunnymark/struct.Example.html b/doc/wgpu_examples/bunnymark/struct.Example.html index f7541791f455..98ed73ec0023 100644 --- a/doc/wgpu_examples/bunnymark/struct.Example.html +++ b/doc/wgpu_examples/bunnymark/struct.Example.html @@ -20,7 +20,7 @@ sc_desc: &SurfaceConfiguration, device: &Device, _queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    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

    §

    impl<T> Downcast for T
    where @@ -42,7 +42,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/bunnymark/struct.Globals.html b/doc/wgpu_examples/bunnymark/struct.Globals.html index 3851fd8a7920..5fac3bf33c62 100644 --- a/doc/wgpu_examples/bunnymark/struct.Globals.html +++ b/doc/wgpu_examples/bunnymark/struct.Globals.html @@ -32,7 +32,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/conservative_raster/constant.RENDER_TARGET_FORMAT.html b/doc/wgpu_examples/conservative_raster/constant.RENDER_TARGET_FORMAT.html index 90ba42c775e6..a4ca8a18c0f3 100644 --- a/doc/wgpu_examples/conservative_raster/constant.RENDER_TARGET_FORMAT.html +++ b/doc/wgpu_examples/conservative_raster/constant.RENDER_TARGET_FORMAT.html @@ -1 +1 @@ -RENDER_TARGET_FORMAT in wgpu_examples::conservative_raster - Rust
    wgpu_examples::conservative_raster

    Constant RENDER_TARGET_FORMAT

    source
    const RENDER_TARGET_FORMAT: TextureFormat;
    \ No newline at end of file +RENDER_TARGET_FORMAT in wgpu_examples::conservative_raster - Rust
    wgpu_examples::conservative_raster

    Constant RENDER_TARGET_FORMAT

    source
    const RENDER_TARGET_FORMAT: TextureFormat;
    \ No newline at end of file diff --git a/doc/wgpu_examples/conservative_raster/struct.Example.html b/doc/wgpu_examples/conservative_raster/struct.Example.html index 00b066ba97f6..4e398b8046ef 100644 --- a/doc/wgpu_examples/conservative_raster/struct.Example.html +++ b/doc/wgpu_examples/conservative_raster/struct.Example.html @@ -10,7 +10,7 @@ config: &SurfaceConfiguration, device: &Device, bind_group_layout_upscale: &BindGroupLayout, -) -> (TextureView, BindGroup)

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn optional_features() -> Features

    source§

    fn init( +) -> (TextureView, BindGroup)

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn optional_features() -> Features

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -20,7 +20,7 @@ config: &SurfaceConfiguration, device: &Device, _queue: &Queue, -)

    source§

    fn update(&mut self, _event: WindowEvent)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn update(&mut self, _event: WindowEvent)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -42,7 +42,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/cube/struct.Example.html b/doc/wgpu_examples/cube/struct.Example.html index 49998da417c4..49b344edc0aa 100644 --- a/doc/wgpu_examples/cube/struct.Example.html +++ b/doc/wgpu_examples/cube/struct.Example.html @@ -6,7 +6,7 @@ uniform_buf: Buffer, pipeline: RenderPipeline, pipeline_wire: Option<RenderPipeline>, -}

    Fields§

    §vertex_buf: Buffer§index_buf: Buffer§index_count: usize§bind_group: BindGroup§uniform_buf: Buffer§pipeline: RenderPipeline§pipeline_wire: Option<RenderPipeline>

    Implementations§

    source§

    impl Example

    source

    fn generate_matrix(aspect_ratio: f32) -> Mat4

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn init( +}

    Fields§

    §vertex_buf: Buffer§index_buf: Buffer§index_count: usize§bind_group: BindGroup§uniform_buf: Buffer§pipeline: RenderPipeline§pipeline_wire: Option<RenderPipeline>

    Implementations§

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -16,7 +16,7 @@ config: &SurfaceConfiguration, _device: &Device, queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -38,7 +38,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/cube/struct.Vertex.html b/doc/wgpu_examples/cube/struct.Vertex.html index 41b2a84ab04c..122f256fec4e 100644 --- a/doc/wgpu_examples/cube/struct.Vertex.html +++ b/doc/wgpu_examples/cube/struct.Vertex.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/framework/struct.ExampleContext.html b/doc/wgpu_examples/framework/struct.ExampleContext.html index a7eb0a421460..5064a261356c 100644 --- a/doc/wgpu_examples/framework/struct.ExampleContext.html +++ b/doc/wgpu_examples/framework/struct.ExampleContext.html @@ -30,7 +30,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/framework/struct.FrameCounter.html b/doc/wgpu_examples/framework/struct.FrameCounter.html index 9972355438e5..7d310a226c7c 100644 --- a/doc/wgpu_examples/framework/struct.FrameCounter.html +++ b/doc/wgpu_examples/framework/struct.FrameCounter.html @@ -23,7 +23,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/framework/struct.SurfaceWrapper.html b/doc/wgpu_examples/framework/struct.SurfaceWrapper.html index c09ce35613d7..9a98e5e048e0 100644 --- a/doc/wgpu_examples/framework/struct.SurfaceWrapper.html +++ b/doc/wgpu_examples/framework/struct.SurfaceWrapper.html @@ -39,7 +39,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/framework/trait.Example.html b/doc/wgpu_examples/framework/trait.Example.html index d8c06e1b9d10..230e62a00634 100644 --- a/doc/wgpu_examples/framework/trait.Example.html +++ b/doc/wgpu_examples/framework/trait.Example.html @@ -18,10 +18,10 @@ fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue); // Provided methods - fn optional_features() -> Features { ... } - fn required_features() -> Features { ... } - fn required_downlevel_capabilities() -> DownlevelCapabilities { ... } - fn required_limits() -> Limits { ... } + fn optional_features() -> Features { ... } + fn required_features() -> Features { ... } + fn required_downlevel_capabilities() -> DownlevelCapabilities { ... } + fn required_limits() -> Limits { ... } }

    Provided Associated Constants§

    source

    const SRGB: bool = true

    Required Methods§

    source

    fn init( config: &SurfaceConfiguration, adapter: &Adapter, @@ -32,4 +32,4 @@ config: &SurfaceConfiguration, device: &Device, queue: &Queue, -)

    source

    fn update(&mut self, event: WindowEvent)

    source

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    Provided Methods§

    source

    fn optional_features() -> Features

    source

    fn required_features() -> Features

    source

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source

    fn required_limits() -> Limits

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl Example for wgpu_examples::boids::Example

    source§

    impl Example for wgpu_examples::bunnymark::Example

    source§

    impl Example for wgpu_examples::conservative_raster::Example

    source§

    impl Example for wgpu_examples::cube::Example

    source§

    impl Example for wgpu_examples::mipmap::Example

    source§

    impl Example for wgpu_examples::msaa_line::Example

    source§

    impl Example for wgpu_examples::multiple_render_targets::Example

    source§

    impl Example for wgpu_examples::ray_cube_compute::Example

    source§

    impl Example for wgpu_examples::ray_cube_fragment::Example

    source§

    impl Example for wgpu_examples::ray_scene::Example

    source§

    impl Example for wgpu_examples::ray_shadows::Example

    source§

    impl Example for wgpu_examples::ray_traced_triangle::Example

    source§

    impl Example for wgpu_examples::shadow::Example

    source§

    impl Example for wgpu_examples::skybox::Example

    source§

    impl Example for wgpu_examples::stencil_triangles::Example

    source§

    impl Example for wgpu_examples::texture_arrays::Example

    source§

    impl Example for wgpu_examples::water::Example

    source§

    impl<const SRGB: bool> Example for wgpu_examples::srgb_blend::Example<SRGB>

    source§

    const SRGB: bool = SRGB

    \ No newline at end of file +)
    source

    fn update(&mut self, event: WindowEvent)

    source

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    Provided Methods§

    source

    fn optional_features() -> Features

    source

    fn required_features() -> Features

    source

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source

    fn required_limits() -> Limits

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl Example for wgpu_examples::boids::Example

    source§

    impl Example for wgpu_examples::bunnymark::Example

    source§

    impl Example for wgpu_examples::conservative_raster::Example

    source§

    impl Example for wgpu_examples::cube::Example

    source§

    impl Example for wgpu_examples::mipmap::Example

    source§

    impl Example for wgpu_examples::msaa_line::Example

    source§

    impl Example for wgpu_examples::multiple_render_targets::Example

    source§

    impl Example for wgpu_examples::ray_cube_compute::Example

    source§

    impl Example for wgpu_examples::ray_cube_fragment::Example

    source§

    impl Example for wgpu_examples::ray_scene::Example

    source§

    impl Example for wgpu_examples::ray_shadows::Example

    source§

    impl Example for wgpu_examples::ray_traced_triangle::Example

    source§

    impl Example for wgpu_examples::shadow::Example

    source§

    impl Example for wgpu_examples::skybox::Example

    source§

    impl Example for wgpu_examples::stencil_triangles::Example

    source§

    impl Example for wgpu_examples::texture_arrays::Example

    source§

    impl Example for wgpu_examples::water::Example

    source§

    impl<const SRGB: bool> Example for wgpu_examples::srgb_blend::Example<SRGB>

    source§

    const SRGB: bool = SRGB

    \ No newline at end of file diff --git a/doc/wgpu_examples/hello_synchronization/struct.ExecuteResults.html b/doc/wgpu_examples/hello_synchronization/struct.ExecuteResults.html index ef5888b1d3a0..60b765259c46 100644 --- a/doc/wgpu_examples/hello_synchronization/struct.ExecuteResults.html +++ b/doc/wgpu_examples/hello_synchronization/struct.ExecuteResults.html @@ -23,7 +23,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/hello_windows/fn.run.html b/doc/wgpu_examples/hello_windows/fn.run.html index dc2ba3ec34d2..39df34fe118b 100644 --- a/doc/wgpu_examples/hello_windows/fn.run.html +++ b/doc/wgpu_examples/hello_windows/fn.run.html @@ -1 +1 @@ -run in wgpu_examples::hello_windows - Rust
    wgpu_examples::hello_windows

    Function run

    source
    async fn run(event_loop: EventLoop<()>, viewports: Vec<(Arc<Window>, Color)>)
    \ No newline at end of file +run in wgpu_examples::hello_windows - Rust
    wgpu_examples::hello_windows

    Function run

    source
    async fn run(event_loop: EventLoop<()>, viewports: Vec<(Arc<Window>, Color)>)
    \ No newline at end of file diff --git a/doc/wgpu_examples/hello_windows/struct.Viewport.html b/doc/wgpu_examples/hello_windows/struct.Viewport.html index d6b516bf2ce9..7127046628fe 100644 --- a/doc/wgpu_examples/hello_windows/struct.Viewport.html +++ b/doc/wgpu_examples/hello_windows/struct.Viewport.html @@ -23,7 +23,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/hello_windows/struct.ViewportDesc.html b/doc/wgpu_examples/hello_windows/struct.ViewportDesc.html index 8ee93f72e3a6..459eef388190 100644 --- a/doc/wgpu_examples/hello_windows/struct.ViewportDesc.html +++ b/doc/wgpu_examples/hello_windows/struct.ViewportDesc.html @@ -1,8 +1,8 @@ ViewportDesc in wgpu_examples::hello_windows - Rust
    wgpu_examples::hello_windows

    Struct ViewportDesc

    source
    struct ViewportDesc {
         window: Arc<Window>,
    -    background: Color,
    +    background: Color,
         surface: Surface<'static>,
    -}

    Fields§

    §window: Arc<Window>§background: Color§surface: Surface<'static>

    Implementations§

    source§

    impl ViewportDesc

    source

    fn new(window: Arc<Window>, background: Color, instance: &Instance) -> Self

    source

    fn build(self, adapter: &Adapter, device: &Device) -> Viewport

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Fields§

    §window: Arc<Window>§background: Color§surface: Surface<'static>

    Implementations§

    source§

    impl ViewportDesc

    source

    fn new(window: Arc<Window>, background: Color, instance: &Instance) -> Self

    source

    fn build(self, adapter: &Adapter, device: &Device) -> Viewport

    Auto Trait Implementations§

    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

    §

    impl<T> Downcast for T
    where @@ -24,7 +24,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/mipmap/constant.QUERY_FEATURES.html b/doc/wgpu_examples/mipmap/constant.QUERY_FEATURES.html index f807bed4a79e..23cab41bf7c8 100644 --- a/doc/wgpu_examples/mipmap/constant.QUERY_FEATURES.html +++ b/doc/wgpu_examples/mipmap/constant.QUERY_FEATURES.html @@ -1 +1 @@ -QUERY_FEATURES in wgpu_examples::mipmap - Rust
    wgpu_examples::mipmap

    Constant QUERY_FEATURES

    source
    const QUERY_FEATURES: Features;
    \ No newline at end of file +QUERY_FEATURES in wgpu_examples::mipmap - Rust
    wgpu_examples::mipmap

    Constant QUERY_FEATURES

    source
    const QUERY_FEATURES: Features;
    \ No newline at end of file diff --git a/doc/wgpu_examples/mipmap/constant.TEXTURE_FORMAT.html b/doc/wgpu_examples/mipmap/constant.TEXTURE_FORMAT.html index 7f49c527649e..cc45424568eb 100644 --- a/doc/wgpu_examples/mipmap/constant.TEXTURE_FORMAT.html +++ b/doc/wgpu_examples/mipmap/constant.TEXTURE_FORMAT.html @@ -1 +1 @@ -TEXTURE_FORMAT in wgpu_examples::mipmap - Rust
    wgpu_examples::mipmap

    Constant TEXTURE_FORMAT

    source
    const TEXTURE_FORMAT: TextureFormat;
    \ No newline at end of file +TEXTURE_FORMAT in wgpu_examples::mipmap - Rust
    wgpu_examples::mipmap

    Constant TEXTURE_FORMAT

    source
    const TEXTURE_FORMAT: TextureFormat;
    \ No newline at end of file diff --git a/doc/wgpu_examples/mipmap/fn.pipeline_statistics_offset.html b/doc/wgpu_examples/mipmap/fn.pipeline_statistics_offset.html index 46a5fcbc5941..58402e38cc40 100644 --- a/doc/wgpu_examples/mipmap/fn.pipeline_statistics_offset.html +++ b/doc/wgpu_examples/mipmap/fn.pipeline_statistics_offset.html @@ -1 +1 @@ -pipeline_statistics_offset in wgpu_examples::mipmap - Rust
    wgpu_examples::mipmap

    Function pipeline_statistics_offset

    source
    fn pipeline_statistics_offset() -> BufferAddress
    \ No newline at end of file +pipeline_statistics_offset in wgpu_examples::mipmap - Rust
    wgpu_examples::mipmap

    Function pipeline_statistics_offset

    source
    fn pipeline_statistics_offset() -> BufferAddress
    \ No newline at end of file diff --git a/doc/wgpu_examples/mipmap/struct.Example.html b/doc/wgpu_examples/mipmap/struct.Example.html index 2202979a380f..7fb714dda455 100644 --- a/doc/wgpu_examples/mipmap/struct.Example.html +++ b/doc/wgpu_examples/mipmap/struct.Example.html @@ -8,7 +8,7 @@ texture: &Texture, query_sets: &Option<QuerySets>, mip_count: u32, -)

    Trait Implementations§

    source§

    impl Example for Example

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -18,7 +18,7 @@ config: &SurfaceConfiguration, _device: &Device, queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -40,7 +40,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/mipmap/struct.QuerySets.html b/doc/wgpu_examples/mipmap/struct.QuerySets.html index 872f3a3c0744..a73ea50e8648 100644 --- a/doc/wgpu_examples/mipmap/struct.QuerySets.html +++ b/doc/wgpu_examples/mipmap/struct.QuerySets.html @@ -26,7 +26,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/mipmap/struct.TimestampData.html b/doc/wgpu_examples/mipmap/struct.TimestampData.html index 94e4fc0e7f7b..6ee478979982 100644 --- a/doc/wgpu_examples/mipmap/struct.TimestampData.html +++ b/doc/wgpu_examples/mipmap/struct.TimestampData.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/msaa_line/struct.Example.html b/doc/wgpu_examples/msaa_line/struct.Example.html index ad3567b4b7a6..3c2946a5a8c1 100644 --- a/doc/wgpu_examples/msaa_line/struct.Example.html +++ b/doc/wgpu_examples/msaa_line/struct.Example.html @@ -21,7 +21,7 @@ device: &Device, config: &SurfaceConfiguration, sample_count: u32, -) -> TextureView

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn init( +) -> TextureView

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -31,7 +31,7 @@ config: &SurfaceConfiguration, device: &Device, _queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -53,7 +53,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/msaa_line/struct.Vertex.html b/doc/wgpu_examples/msaa_line/struct.Vertex.html index 077edf0f79b1..7171605a25a2 100644 --- a/doc/wgpu_examples/msaa_line/struct.Vertex.html +++ b/doc/wgpu_examples/msaa_line/struct.Vertex.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/multiple_render_targets/struct.Example.html b/doc/wgpu_examples/multiple_render_targets/struct.Example.html index 0099fcfff82f..eac7aed8815b 100644 --- a/doc/wgpu_examples/multiple_render_targets/struct.Example.html +++ b/doc/wgpu_examples/multiple_render_targets/struct.Example.html @@ -14,7 +14,7 @@ config: &SurfaceConfiguration, device: &Device, _queue: &Queue, -)
    source§

    fn update(&mut self, _event: WindowEvent)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn update(&mut self, _event: WindowEvent)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -36,7 +36,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/multiple_render_targets/struct.MultiTargetRenderer.html b/doc/wgpu_examples/multiple_render_targets/struct.MultiTargetRenderer.html index ed849c0c59b5..e7db2fcf43eb 100644 --- a/doc/wgpu_examples/multiple_render_targets/struct.MultiTargetRenderer.html +++ b/doc/wgpu_examples/multiple_render_targets/struct.MultiTargetRenderer.html @@ -9,7 +9,7 @@ device: &Device, queue: &Queue, shader: &ShaderModule, - target_states: &[Option<ColorTargetState>], + target_states: &[Option<ColorTargetState>], ) -> MultiTargetRenderer
    source

    fn draw( &self, encoder: &mut CommandEncoder, @@ -36,7 +36,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/multiple_render_targets/struct.TargetRenderer.html b/doc/wgpu_examples/multiple_render_targets/struct.TargetRenderer.html index 4871a3eb2332..ec4bc0a4e6e2 100644 --- a/doc/wgpu_examples/multiple_render_targets/struct.TargetRenderer.html +++ b/doc/wgpu_examples/multiple_render_targets/struct.TargetRenderer.html @@ -8,7 +8,7 @@

    Fields§

    §pipeline: RenderPipeline§bindgroup_layout: BindGroupLayout§bindgroup_left: BindGroup§bindgroup_right: BindGroup§sampler: Sampler

    Implementations§

    source§

    impl TargetRenderer

    source

    fn init( device: &Device, shader: &ShaderModule, - format: TextureFormat, + format: TextureFormat, targets: &TextureTargets, ) -> TargetRenderer

    source

    fn create_bindgroups( device: &Device, @@ -47,7 +47,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/multiple_render_targets/struct.TextureTargets.html b/doc/wgpu_examples/multiple_render_targets/struct.TextureTargets.html index e67ae2773f30..f31e16086cc7 100644 --- a/doc/wgpu_examples/multiple_render_targets/struct.TextureTargets.html +++ b/doc/wgpu_examples/multiple_render_targets/struct.TextureTargets.html @@ -3,7 +3,7 @@ green_view: TextureView, }

    Fields§

    §red_view: TextureView§green_view: TextureView

    Implementations§

    source§

    impl TextureTargets

    source

    fn new( device: &Device, - format: TextureFormat, + format: TextureFormat, width: u32, height: u32, ) -> TextureTargets

    Auto Trait Implementations§

    §

    impl Freeze for TextureTargets

    §

    impl !RefUnwindSafe for TextureTargets

    §

    impl Send for TextureTargets

    §

    impl Sync for TextureTargets

    §

    impl Unpin for TextureTargets

    §

    impl !UnwindSafe for TextureTargets

    Blanket Implementations§

    source§

    impl<T> Any for T
    where @@ -28,7 +28,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_cube_compute/struct.ErrorFuture.html b/doc/wgpu_examples/ray_cube_compute/struct.ErrorFuture.html index 9a7369455a54..59b31e2fbff6 100644 --- a/doc/wgpu_examples/ray_cube_compute/struct.ErrorFuture.html +++ b/doc/wgpu_examples/ray_cube_compute/struct.ErrorFuture.html @@ -37,7 +37,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_cube_compute/struct.Example.html b/doc/wgpu_examples/ray_cube_compute/struct.Example.html index 6056a12707e1..acba61c4771e 100644 --- a/doc/wgpu_examples/ray_cube_compute/struct.Example.html +++ b/doc/wgpu_examples/ray_cube_compute/struct.Example.html @@ -11,7 +11,7 @@ blit_pipeline: RenderPipeline, blit_bind_group: BindGroup, start_inst: Instant, -}

    Fields§

    §rt_target: Texture§rt_view: TextureView§sampler: Sampler§uniform_buf: Buffer§vertex_buf: Buffer§index_buf: Buffer§tlas_package: TlasPackage§compute_pipeline: ComputePipeline§compute_bind_group: BindGroup§blit_pipeline: RenderPipeline§blit_bind_group: BindGroup§start_inst: Instant

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    source§

    fn init( +}

    Fields§

    §rt_target: Texture§rt_view: TextureView§sampler: Sampler§uniform_buf: Buffer§vertex_buf: Buffer§index_buf: Buffer§tlas_package: TlasPackage§compute_pipeline: ComputePipeline§compute_bind_group: BindGroup§blit_pipeline: RenderPipeline§blit_bind_group: BindGroup§start_inst: Instant

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -21,7 +21,7 @@ _config: &SurfaceConfiguration, _device: &Device, _queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -43,7 +43,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_cube_compute/struct.Uniforms.html b/doc/wgpu_examples/ray_cube_compute/struct.Uniforms.html index d888ec3208b9..2644c088c7ab 100644 --- a/doc/wgpu_examples/ray_cube_compute/struct.Uniforms.html +++ b/doc/wgpu_examples/ray_cube_compute/struct.Uniforms.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_cube_compute/struct.Vertex.html b/doc/wgpu_examples/ray_cube_compute/struct.Vertex.html index 6679871ae3aa..fd68134e971b 100644 --- a/doc/wgpu_examples/ray_cube_compute/struct.Vertex.html +++ b/doc/wgpu_examples/ray_cube_compute/struct.Vertex.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_cube_fragment/struct.ErrorFuture.html b/doc/wgpu_examples/ray_cube_fragment/struct.ErrorFuture.html index c577a9bc1798..1f78de8d66ef 100644 --- a/doc/wgpu_examples/ray_cube_fragment/struct.ErrorFuture.html +++ b/doc/wgpu_examples/ray_cube_fragment/struct.ErrorFuture.html @@ -37,7 +37,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_cube_fragment/struct.Example.html b/doc/wgpu_examples/ray_cube_fragment/struct.Example.html index 72ab035ebdee..a0aff4ff4826 100644 --- a/doc/wgpu_examples/ray_cube_fragment/struct.Example.html +++ b/doc/wgpu_examples/ray_cube_fragment/struct.Example.html @@ -6,7 +6,7 @@ pipeline: RenderPipeline, bind_group: BindGroup, start_inst: Instant, -}

    Fields§

    §uniforms: Uniforms§uniform_buf: Buffer§blas: Blas§tlas_package: TlasPackage§pipeline: RenderPipeline§bind_group: BindGroup§start_inst: Instant

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    source§

    fn init( +}

    Fields§

    §uniforms: Uniforms§uniform_buf: Buffer§blas: Blas§tlas_package: TlasPackage§pipeline: RenderPipeline§bind_group: BindGroup§start_inst: Instant

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -16,7 +16,7 @@ config: &SurfaceConfiguration, _device: &Device, queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -38,7 +38,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_cube_fragment/struct.Uniforms.html b/doc/wgpu_examples/ray_cube_fragment/struct.Uniforms.html index dd2bc4f5479b..e2777bf9e35a 100644 --- a/doc/wgpu_examples/ray_cube_fragment/struct.Uniforms.html +++ b/doc/wgpu_examples/ray_cube_fragment/struct.Uniforms.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_cube_fragment/struct.Vertex.html b/doc/wgpu_examples/ray_cube_fragment/struct.Vertex.html index 0218b42d5f10..69405afbdd15 100644 --- a/doc/wgpu_examples/ray_cube_fragment/struct.Vertex.html +++ b/doc/wgpu_examples/ray_cube_fragment/struct.Vertex.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_scene/struct.ErrorFuture.html b/doc/wgpu_examples/ray_scene/struct.ErrorFuture.html index f2cbc5d19953..121be6761c43 100644 --- a/doc/wgpu_examples/ray_scene/struct.ErrorFuture.html +++ b/doc/wgpu_examples/ray_scene/struct.ErrorFuture.html @@ -37,7 +37,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_scene/struct.Example.html b/doc/wgpu_examples/ray_scene/struct.Example.html index 582f40d1df2f..5de1445f649d 100644 --- a/doc/wgpu_examples/ray_scene/struct.Example.html +++ b/doc/wgpu_examples/ray_scene/struct.Example.html @@ -6,7 +6,7 @@ bind_group: BindGroup, start_inst: Instant, scene_components: SceneComponents, -}

    Fields§

    §uniforms: Uniforms§uniform_buf: Buffer§tlas_package: TlasPackage§pipeline: RenderPipeline§bind_group: BindGroup§start_inst: Instant§scene_components: SceneComponents

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    source§

    fn init( +}

    Fields§

    §uniforms: Uniforms§uniform_buf: Buffer§tlas_package: TlasPackage§pipeline: RenderPipeline§bind_group: BindGroup§start_inst: Instant§scene_components: SceneComponents

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -16,7 +16,7 @@ config: &SurfaceConfiguration, _device: &Device, queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -38,7 +38,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_scene/struct.GeometryEntry.html b/doc/wgpu_examples/ray_scene/struct.GeometryEntry.html index 7fae61f52a7e..61cb5b86cd5c 100644 --- a/doc/wgpu_examples/ray_scene/struct.GeometryEntry.html +++ b/doc/wgpu_examples/ray_scene/struct.GeometryEntry.html @@ -32,7 +32,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_scene/struct.InstanceEntry.html b/doc/wgpu_examples/ray_scene/struct.InstanceEntry.html index b9a53174cc47..6e83390cd830 100644 --- a/doc/wgpu_examples/ray_scene/struct.InstanceEntry.html +++ b/doc/wgpu_examples/ray_scene/struct.InstanceEntry.html @@ -33,7 +33,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_scene/struct.Material.html b/doc/wgpu_examples/ray_scene/struct.Material.html index 1d7d62f8e8e7..53aabe924020 100644 --- a/doc/wgpu_examples/ray_scene/struct.Material.html +++ b/doc/wgpu_examples/ray_scene/struct.Material.html @@ -35,7 +35,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_scene/struct.RawSceneComponents.html b/doc/wgpu_examples/ray_scene/struct.RawSceneComponents.html index e45f0bf6396f..b83dc079b91b 100644 --- a/doc/wgpu_examples/ray_scene/struct.RawSceneComponents.html +++ b/doc/wgpu_examples/ray_scene/struct.RawSceneComponents.html @@ -27,7 +27,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_scene/struct.SceneComponents.html b/doc/wgpu_examples/ray_scene/struct.SceneComponents.html index 4195c29f79e5..9aba72d579ad 100644 --- a/doc/wgpu_examples/ray_scene/struct.SceneComponents.html +++ b/doc/wgpu_examples/ray_scene/struct.SceneComponents.html @@ -26,7 +26,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_scene/struct.Uniforms.html b/doc/wgpu_examples/ray_scene/struct.Uniforms.html index aeb09fff7c0c..af38d50bb8e0 100644 --- a/doc/wgpu_examples/ray_scene/struct.Uniforms.html +++ b/doc/wgpu_examples/ray_scene/struct.Uniforms.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_scene/struct.Vertex.html b/doc/wgpu_examples/ray_scene/struct.Vertex.html index 539fada89959..c4aec75e816a 100644 --- a/doc/wgpu_examples/ray_scene/struct.Vertex.html +++ b/doc/wgpu_examples/ray_scene/struct.Vertex.html @@ -35,7 +35,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_shadows/struct.ErrorFuture.html b/doc/wgpu_examples/ray_shadows/struct.ErrorFuture.html index 157cd9371f8f..5d117e8ce04f 100644 --- a/doc/wgpu_examples/ray_shadows/struct.ErrorFuture.html +++ b/doc/wgpu_examples/ray_shadows/struct.ErrorFuture.html @@ -37,7 +37,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_shadows/struct.Example.html b/doc/wgpu_examples/ray_shadows/struct.Example.html index 6c0546117aba..9fe2d98b2d88 100644 --- a/doc/wgpu_examples/ray_shadows/struct.Example.html +++ b/doc/wgpu_examples/ray_shadows/struct.Example.html @@ -6,7 +6,7 @@ pipeline: RenderPipeline, bind_group: BindGroup, start_inst: Instant, -}

    Fields§

    §uniforms: Uniforms§uniform_buf: Buffer§vertex_buf: Buffer§index_buf: Buffer§pipeline: RenderPipeline§bind_group: BindGroup§start_inst: Instant

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    source§

    fn init( +}

    Fields§

    §uniforms: Uniforms§uniform_buf: Buffer§vertex_buf: Buffer§index_buf: Buffer§pipeline: RenderPipeline§bind_group: BindGroup§start_inst: Instant

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -16,7 +16,7 @@ config: &SurfaceConfiguration, _device: &Device, queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -38,7 +38,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_shadows/struct.Uniforms.html b/doc/wgpu_examples/ray_shadows/struct.Uniforms.html index 4297c0d2324d..4a9516f2317f 100644 --- a/doc/wgpu_examples/ray_shadows/struct.Uniforms.html +++ b/doc/wgpu_examples/ray_shadows/struct.Uniforms.html @@ -32,7 +32,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_shadows/struct.Vertex.html b/doc/wgpu_examples/ray_shadows/struct.Vertex.html index d7d959ee5f61..bd13540c01eb 100644 --- a/doc/wgpu_examples/ray_shadows/struct.Vertex.html +++ b/doc/wgpu_examples/ray_shadows/struct.Vertex.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_traced_triangle/struct.Example.html b/doc/wgpu_examples/ray_traced_triangle/struct.Example.html index 1747f7e300a5..20d5f134328b 100644 --- a/doc/wgpu_examples/ray_traced_triangle/struct.Example.html +++ b/doc/wgpu_examples/ray_traced_triangle/struct.Example.html @@ -6,7 +6,7 @@ blit_bind_group: BindGroup, storage_texture: Texture, start: Instant, -}

    Fields§

    §tlas_package: TlasPackage§compute_pipeline: ComputePipeline§blit_pipeline: RenderPipeline§bind_group: BindGroup§blit_bind_group: BindGroup§storage_texture: Texture§start: Instant

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_limits() -> Limits

    source§

    fn init( +}

    Fields§

    §tlas_package: TlasPackage§compute_pipeline: ComputePipeline§blit_pipeline: RenderPipeline§bind_group: BindGroup§blit_bind_group: BindGroup§storage_texture: Texture§start: Instant

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn required_features() -> Features

    source§

    fn required_limits() -> Limits

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -16,7 +16,7 @@ _config: &SurfaceConfiguration, _device: &Device, _queue: &Queue, -)

    source§

    fn update(&mut self, _event: WindowEvent)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn update(&mut self, _event: WindowEvent)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -38,7 +38,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/ray_traced_triangle/struct.Uniforms.html b/doc/wgpu_examples/ray_traced_triangle/struct.Uniforms.html index dd97bdfcebe0..eaa019d5cfb5 100644 --- a/doc/wgpu_examples/ray_traced_triangle/struct.Uniforms.html +++ b/doc/wgpu_examples/ray_traced_triangle/struct.Uniforms.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/repeated_compute/struct.WgpuContext.html b/doc/wgpu_examples/repeated_compute/struct.WgpuContext.html index 3740e16bee38..e77a19342fc0 100644 --- a/doc/wgpu_examples/repeated_compute/struct.WgpuContext.html +++ b/doc/wgpu_examples/repeated_compute/struct.WgpuContext.html @@ -28,7 +28,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/shadow/struct.Entity.html b/doc/wgpu_examples/shadow/struct.Entity.html index 8d1ab8ed4893..75ece1b5dfed 100644 --- a/doc/wgpu_examples/shadow/struct.Entity.html +++ b/doc/wgpu_examples/shadow/struct.Entity.html @@ -1,13 +1,13 @@ Entity in wgpu_examples::shadow - Rust
    wgpu_examples::shadow

    Struct Entity

    source
    struct Entity {
         mx_world: Mat4,
         rotation_speed: f32,
    -    color: Color,
    +    color: Color,
         vertex_buf: Arc<Buffer>,
         index_buf: Arc<Buffer>,
    -    index_format: IndexFormat,
    +    index_format: IndexFormat,
         index_count: usize,
    -    uniform_offset: DynamicOffset,
    -}

    Fields§

    §mx_world: Mat4§rotation_speed: f32§color: Color§vertex_buf: Arc<Buffer>§index_buf: Arc<Buffer>§index_format: IndexFormat§index_count: usize§uniform_offset: DynamicOffset

    Auto Trait Implementations§

    §

    impl Freeze for Entity

    §

    impl !RefUnwindSafe for Entity

    §

    impl Send for Entity

    §

    impl Sync for Entity

    §

    impl Unpin for Entity

    §

    impl !UnwindSafe for Entity

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + uniform_offset: DynamicOffset, +}

    Fields§

    §mx_world: Mat4§rotation_speed: f32§color: Color§vertex_buf: Arc<Buffer>§index_buf: Arc<Buffer>§index_format: IndexFormat§index_count: usize§uniform_offset: DynamicOffset

    Auto Trait Implementations§

    §

    impl Freeze for Entity

    §

    impl !RefUnwindSafe for Entity

    §

    impl Send for Entity

    §

    impl Sync for Entity

    §

    impl Unpin for Entity

    §

    impl !UnwindSafe for Entity

    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

    §

    impl<T> Downcast for T
    where @@ -29,7 +29,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/shadow/struct.EntityUniforms.html b/doc/wgpu_examples/shadow/struct.EntityUniforms.html index 784c460a93ab..42ed7b8555a4 100644 --- a/doc/wgpu_examples/shadow/struct.EntityUniforms.html +++ b/doc/wgpu_examples/shadow/struct.EntityUniforms.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/shadow/struct.Example.html b/doc/wgpu_examples/shadow/struct.Example.html index 4bfb675b5721..379f1590d314 100644 --- a/doc/wgpu_examples/shadow/struct.Example.html +++ b/doc/wgpu_examples/shadow/struct.Example.html @@ -8,10 +8,10 @@ entity_bind_group: BindGroup, light_storage_buf: Buffer, entity_uniform_buf: Buffer, -}

    Fields§

    §entities: Vec<Entity>§lights: Vec<Light>§lights_are_dirty: bool§shadow_pass: Pass§forward_pass: Pass§forward_depth: TextureView§entity_bind_group: BindGroup§light_storage_buf: Buffer§entity_uniform_buf: Buffer

    Implementations§

    source§

    impl Example

    source

    const MAX_LIGHTS: usize = 10usize

    source

    const SHADOW_FORMAT: TextureFormat = wgpu::TextureFormat::Depth32Float

    source

    const SHADOW_SIZE: Extent3d = _

    source

    const DEPTH_FORMAT: TextureFormat = wgpu::TextureFormat::Depth32Float

    source

    fn generate_matrix(aspect_ratio: f32) -> Mat4

    source

    fn create_depth_texture( +}

    Fields§

    §entities: Vec<Entity>§lights: Vec<Light>§lights_are_dirty: bool§shadow_pass: Pass§forward_pass: Pass§forward_depth: TextureView§entity_bind_group: BindGroup§light_storage_buf: Buffer§entity_uniform_buf: Buffer

    Implementations§

    source§

    impl Example

    source

    const MAX_LIGHTS: usize = 10usize

    source

    const SHADOW_FORMAT: TextureFormat = wgpu::TextureFormat::Depth32Float

    source

    const SHADOW_SIZE: Extent3d = _

    source

    const DEPTH_FORMAT: TextureFormat = wgpu::TextureFormat::Depth32Float

    source

    fn generate_matrix(aspect_ratio: f32) -> Mat4

    source

    fn create_depth_texture( config: &SurfaceConfiguration, device: &Device, -) -> TextureView

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn init( +) -> TextureView

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn init( config: &SurfaceConfiguration, adapter: &Adapter, device: &Device, @@ -21,7 +21,7 @@ config: &SurfaceConfiguration, device: &Device, queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -43,7 +43,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/shadow/struct.GlobalUniforms.html b/doc/wgpu_examples/shadow/struct.GlobalUniforms.html index 627a832626e2..1276b11ebf5a 100644 --- a/doc/wgpu_examples/shadow/struct.GlobalUniforms.html +++ b/doc/wgpu_examples/shadow/struct.GlobalUniforms.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/shadow/struct.Light.html b/doc/wgpu_examples/shadow/struct.Light.html index d0910c249e18..b7acdc3ab70e 100644 --- a/doc/wgpu_examples/shadow/struct.Light.html +++ b/doc/wgpu_examples/shadow/struct.Light.html @@ -1,10 +1,10 @@ Light in wgpu_examples::shadow - Rust
    wgpu_examples::shadow

    Struct Light

    source
    struct Light {
         pos: Vec3,
    -    color: Color,
    +    color: Color,
         fov: f32,
         depth: Range<f32>,
         target_view: TextureView,
    -}

    Fields§

    §pos: Vec3§color: Color§fov: f32§depth: Range<f32>§target_view: TextureView

    Implementations§

    Auto Trait Implementations§

    §

    impl Freeze for Light

    §

    impl !RefUnwindSafe for Light

    §

    impl Send for Light

    §

    impl Sync for Light

    §

    impl Unpin for Light

    §

    impl !UnwindSafe for Light

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Fields§

    §pos: Vec3§color: Color§fov: f32§depth: Range<f32>§target_view: TextureView

    Implementations§

    Auto Trait Implementations§

    §

    impl Freeze for Light

    §

    impl !RefUnwindSafe for Light

    §

    impl Send for Light

    §

    impl Sync for Light

    §

    impl Unpin for Light

    §

    impl !UnwindSafe for Light

    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

    §

    impl<T> Downcast for T
    where @@ -26,7 +26,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/shadow/struct.LightRaw.html b/doc/wgpu_examples/shadow/struct.LightRaw.html index f3def80f70d3..5fcacc95eb75 100644 --- a/doc/wgpu_examples/shadow/struct.LightRaw.html +++ b/doc/wgpu_examples/shadow/struct.LightRaw.html @@ -32,7 +32,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/shadow/struct.Pass.html b/doc/wgpu_examples/shadow/struct.Pass.html index 807cd5cb0649..527bf3745ad2 100644 --- a/doc/wgpu_examples/shadow/struct.Pass.html +++ b/doc/wgpu_examples/shadow/struct.Pass.html @@ -24,7 +24,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/shadow/struct.Vertex.html b/doc/wgpu_examples/shadow/struct.Vertex.html index 4c64280358f5..d396c21f3c28 100644 --- a/doc/wgpu_examples/shadow/struct.Vertex.html +++ b/doc/wgpu_examples/shadow/struct.Vertex.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/skybox/struct.Camera.html b/doc/wgpu_examples/skybox/struct.Camera.html index d7c4834fd49a..2b0c9943cd6c 100644 --- a/doc/wgpu_examples/skybox/struct.Camera.html +++ b/doc/wgpu_examples/skybox/struct.Camera.html @@ -25,7 +25,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/skybox/struct.Entity.html b/doc/wgpu_examples/skybox/struct.Entity.html index 67ad8a059d9f..178c1c1763ec 100644 --- a/doc/wgpu_examples/skybox/struct.Entity.html +++ b/doc/wgpu_examples/skybox/struct.Entity.html @@ -23,7 +23,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/skybox/struct.Example.html b/doc/wgpu_examples/skybox/struct.Example.html index b9ae84ecfe2f..37246ceafce7 100644 --- a/doc/wgpu_examples/skybox/struct.Example.html +++ b/doc/wgpu_examples/skybox/struct.Example.html @@ -7,10 +7,10 @@ entities: Vec<Entity>, depth_view: TextureView, staging_belt: StagingBelt, -}

    Fields§

    §camera: Camera§sky_pipeline: RenderPipeline§entity_pipeline: RenderPipeline§bind_group: BindGroup§uniform_buf: Buffer§entities: Vec<Entity>§depth_view: TextureView§staging_belt: StagingBelt

    Implementations§

    source§

    impl Example

    source

    const DEPTH_FORMAT: TextureFormat = wgpu::TextureFormat::Depth24Plus

    source

    fn create_depth_texture( +}

    Fields§

    §camera: Camera§sky_pipeline: RenderPipeline§entity_pipeline: RenderPipeline§bind_group: BindGroup§uniform_buf: Buffer§entities: Vec<Entity>§depth_view: TextureView§staging_belt: StagingBelt

    Implementations§

    source§

    impl Example

    source

    const DEPTH_FORMAT: TextureFormat = wgpu::TextureFormat::Depth24Plus

    source

    fn create_depth_texture( config: &SurfaceConfiguration, device: &Device, -) -> TextureView

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn init( +) -> TextureView

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -20,7 +20,7 @@ config: &SurfaceConfiguration, device: &Device, _queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -42,7 +42,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/skybox/struct.Vertex.html b/doc/wgpu_examples/skybox/struct.Vertex.html index 9268fff2d7c5..2cd6f605df6b 100644 --- a/doc/wgpu_examples/skybox/struct.Vertex.html +++ b/doc/wgpu_examples/skybox/struct.Vertex.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/srgb_blend/struct.Example.html b/doc/wgpu_examples/srgb_blend/struct.Example.html index 9078b6fb3167..d29cab3f9c76 100644 --- a/doc/wgpu_examples/srgb_blend/struct.Example.html +++ b/doc/wgpu_examples/srgb_blend/struct.Example.html @@ -4,7 +4,7 @@ index_count: usize, bind_group: BindGroup, pipeline: RenderPipeline, -}

    Fields§

    §vertex_buf: Buffer§index_buf: Buffer§index_count: usize§bind_group: BindGroup§pipeline: RenderPipeline

    Trait Implementations§

    source§

    impl<const SRGB: bool> Example for Example<SRGB>

    source§

    const SRGB: bool = SRGB

    source§

    fn optional_features() -> Features

    source§

    fn init( +}

    Fields§

    §vertex_buf: Buffer§index_buf: Buffer§index_count: usize§bind_group: BindGroup§pipeline: RenderPipeline

    Trait Implementations§

    source§

    impl<const SRGB: bool> Example for Example<SRGB>

    source§

    const SRGB: bool = SRGB

    source§

    fn optional_features() -> Features

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -14,7 +14,7 @@ _config: &SurfaceConfiguration, _device: &Device, _queue: &Queue, -)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl<const SRGB: bool> Freeze for Example<SRGB>

    §

    impl<const SRGB: bool> !RefUnwindSafe for Example<SRGB>

    §

    impl<const SRGB: bool> Send for Example<SRGB>

    §

    impl<const SRGB: bool> Sync for Example<SRGB>

    §

    impl<const SRGB: bool> Unpin for Example<SRGB>

    §

    impl<const SRGB: bool> !UnwindSafe for Example<SRGB>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl<const SRGB: bool> Freeze for Example<SRGB>

    §

    impl<const SRGB: bool> !RefUnwindSafe for Example<SRGB>

    §

    impl<const SRGB: bool> Send for Example<SRGB>

    §

    impl<const SRGB: bool> Sync for Example<SRGB>

    §

    impl<const SRGB: bool> Unpin for Example<SRGB>

    §

    impl<const SRGB: bool> !UnwindSafe for Example<SRGB>

    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

    §

    impl<T> Downcast for T
    where @@ -36,7 +36,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/srgb_blend/struct.Vertex.html b/doc/wgpu_examples/srgb_blend/struct.Vertex.html index 9c440f4c4bd3..416a5bf57834 100644 --- a/doc/wgpu_examples/srgb_blend/struct.Vertex.html +++ b/doc/wgpu_examples/srgb_blend/struct.Vertex.html @@ -31,7 +31,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/stencil_triangles/struct.Example.html b/doc/wgpu_examples/stencil_triangles/struct.Example.html index c8f379bce000..988c2f0dc9ef 100644 --- a/doc/wgpu_examples/stencil_triangles/struct.Example.html +++ b/doc/wgpu_examples/stencil_triangles/struct.Example.html @@ -14,7 +14,7 @@ config: &SurfaceConfiguration, device: &Device, _queue: &Queue, -)
    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -36,7 +36,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/stencil_triangles/struct.Vertex.html b/doc/wgpu_examples/stencil_triangles/struct.Vertex.html index 8a648785ce69..830e10f447e4 100644 --- a/doc/wgpu_examples/stencil_triangles/struct.Vertex.html +++ b/doc/wgpu_examples/stencil_triangles/struct.Vertex.html @@ -30,7 +30,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/texture_arrays/enum.Color.html b/doc/wgpu_examples/texture_arrays/enum.Color.html index 7205c84b6293..615bad04b335 100644 --- a/doc/wgpu_examples/texture_arrays/enum.Color.html +++ b/doc/wgpu_examples/texture_arrays/enum.Color.html @@ -27,7 +27,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/texture_arrays/struct.Example.html b/doc/wgpu_examples/texture_arrays/struct.Example.html index 1be3b2d2e802..c6b19235eb35 100644 --- a/doc/wgpu_examples/texture_arrays/struct.Example.html +++ b/doc/wgpu_examples/texture_arrays/struct.Example.html @@ -4,9 +4,9 @@ uniform_bind_group: BindGroup, vertex_buffer: Buffer, index_buffer: Buffer, - index_format: IndexFormat, + index_format: IndexFormat, uniform_workaround: bool, -}

    Fields§

    §pipeline: RenderPipeline§bind_group: BindGroup§uniform_bind_group: BindGroup§vertex_buffer: Buffer§index_buffer: Buffer§index_format: IndexFormat§uniform_workaround: bool

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn init( +}

    Fields§

    §pipeline: RenderPipeline§bind_group: BindGroup§uniform_bind_group: BindGroup§vertex_buffer: Buffer§index_buffer: Buffer§index_format: IndexFormat§uniform_workaround: bool

    Trait Implementations§

    source§

    impl Example for Example

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn init( config: &SurfaceConfiguration, _adapter: &Adapter, device: &Device, @@ -16,7 +16,7 @@ _sc_desc: &SurfaceConfiguration, _device: &Device, _queue: &Queue, -)

    source§

    fn update(&mut self, _event: WindowEvent)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn update(&mut self, _event: WindowEvent)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -38,7 +38,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/texture_arrays/struct.Vertex.html b/doc/wgpu_examples/texture_arrays/struct.Vertex.html index 38cba768f7d0..baee6b6d9f8c 100644 --- a/doc/wgpu_examples/texture_arrays/struct.Vertex.html +++ b/doc/wgpu_examples/texture_arrays/struct.Vertex.html @@ -32,7 +32,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/timestamp_queries/struct.Queries.html b/doc/wgpu_examples/timestamp_queries/struct.Queries.html index bbf4fa59b8ea..fcb893057f2f 100644 --- a/doc/wgpu_examples/timestamp_queries/struct.Queries.html +++ b/doc/wgpu_examples/timestamp_queries/struct.Queries.html @@ -26,7 +26,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/timestamp_queries/struct.QueryResults.html b/doc/wgpu_examples/timestamp_queries/struct.QueryResults.html index adfc8f3d91f3..7406cfc612bf 100644 --- a/doc/wgpu_examples/timestamp_queries/struct.QueryResults.html +++ b/doc/wgpu_examples/timestamp_queries/struct.QueryResults.html @@ -29,7 +29,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/uniform_values/struct.AppState.html b/doc/wgpu_examples/uniform_values/struct.AppState.html index 74ea97532947..5c51a46d4b02 100644 --- a/doc/wgpu_examples/uniform_values/struct.AppState.html +++ b/doc/wgpu_examples/uniform_values/struct.AppState.html @@ -44,7 +44,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/uniform_values/struct.WgpuContext.html b/doc/wgpu_examples/uniform_values/struct.WgpuContext.html index 7cfbbdc9aa6e..ff5462b42d1f 100644 --- a/doc/wgpu_examples/uniform_values/struct.WgpuContext.html +++ b/doc/wgpu_examples/uniform_values/struct.WgpuContext.html @@ -29,7 +29,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/utils/fn.get_adapter_with_capabilities_or_from_env.html b/doc/wgpu_examples/utils/fn.get_adapter_with_capabilities_or_from_env.html index 731cd87de4e8..c3b14b7c36e4 100644 --- a/doc/wgpu_examples/utils/fn.get_adapter_with_capabilities_or_from_env.html +++ b/doc/wgpu_examples/utils/fn.get_adapter_with_capabilities_or_from_env.html @@ -1,7 +1,7 @@ get_adapter_with_capabilities_or_from_env in wgpu_examples::utils - Rust
    wgpu_examples::utils

    Function get_adapter_with_capabilities_or_from_env

    source
    pub(crate) async fn get_adapter_with_capabilities_or_from_env(
         instance: &Instance,
    -    required_features: &Features,
    -    required_downlevel_capabilities: &DownlevelCapabilities,
    +    required_features: &Features,
    +    required_downlevel_capabilities: &DownlevelCapabilities,
         surface: &Option<&Surface<'_>>,
     ) -> Adapter
    Expand description

    If the environment variable WGPU_ADAPTER_NAME is set, this function will attempt to initialize the adapter with that name. If it is not set, it will attempt to initialize diff --git a/doc/wgpu_examples/water/point_gen/struct.HexTerrainMesh.html b/doc/wgpu_examples/water/point_gen/struct.HexTerrainMesh.html index 7aaa89f888dd..ffbca0142bb4 100644 --- a/doc/wgpu_examples/water/point_gen/struct.HexTerrainMesh.html +++ b/doc/wgpu_examples/water/point_gen/struct.HexTerrainMesh.html @@ -32,7 +32,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/water/point_gen/struct.HexWaterMesh.html b/doc/wgpu_examples/water/point_gen/struct.HexWaterMesh.html index a6c856ea339e..8614aabd8322 100644 --- a/doc/wgpu_examples/water/point_gen/struct.HexWaterMesh.html +++ b/doc/wgpu_examples/water/point_gen/struct.HexWaterMesh.html @@ -28,7 +28,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/water/point_gen/struct.TerrainVertex.html b/doc/wgpu_examples/water/point_gen/struct.TerrainVertex.html index ae12c22a3119..40ece360b566 100644 --- a/doc/wgpu_examples/water/point_gen/struct.TerrainVertex.html +++ b/doc/wgpu_examples/water/point_gen/struct.TerrainVertex.html @@ -26,7 +26,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/water/point_gen/struct.TerrainVertexAttributes.html b/doc/wgpu_examples/water/point_gen/struct.TerrainVertexAttributes.html index 6e497e0dba57..e7357c9a21bb 100644 --- a/doc/wgpu_examples/water/point_gen/struct.TerrainVertexAttributes.html +++ b/doc/wgpu_examples/water/point_gen/struct.TerrainVertexAttributes.html @@ -33,7 +33,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/water/point_gen/struct.WaterVertexAttributes.html b/doc/wgpu_examples/water/point_gen/struct.WaterVertexAttributes.html index a49c80b57da7..bd35878b45b8 100644 --- a/doc/wgpu_examples/water/point_gen/struct.WaterVertexAttributes.html +++ b/doc/wgpu_examples/water/point_gen/struct.WaterVertexAttributes.html @@ -36,7 +36,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/water/struct.Example.html b/doc/wgpu_examples/water/struct.Example.html index 08dd93667e2a..5c009d64cb37 100644 --- a/doc/wgpu_examples/water/struct.Example.html +++ b/doc/wgpu_examples/water/struct.Example.html @@ -44,7 +44,7 @@ config: &SurfaceConfiguration, device: &Device, queue: &Queue, -)
    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn render(&mut self, view: &TextureView, device: &Device, queue: &Queue)

    source§

    const SRGB: bool = true

    source§

    fn optional_features() -> Features

    source§

    fn required_features() -> Features

    source§

    fn required_downlevel_capabilities() -> DownlevelCapabilities

    source§

    fn required_limits() -> Limits

    Auto Trait Implementations§

    §

    impl Freeze for Example

    §

    impl !RefUnwindSafe for Example

    §

    impl Send for Example

    §

    impl Sync for Example

    §

    impl Unpin for Example

    §

    impl !UnwindSafe for Example

    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

    §

    impl<T> Downcast for T
    where @@ -66,7 +66,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/water/struct.Matrices.html b/doc/wgpu_examples/water/struct.Matrices.html index d35f831dbea8..d5324c22d1fd 100644 --- a/doc/wgpu_examples/water/struct.Matrices.html +++ b/doc/wgpu_examples/water/struct.Matrices.html @@ -24,7 +24,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/water/struct.TerrainUniforms.html b/doc/wgpu_examples/water/struct.TerrainUniforms.html index 11e6665f3015..fba838e0a9fc 100644 --- a/doc/wgpu_examples/water/struct.TerrainUniforms.html +++ b/doc/wgpu_examples/water/struct.TerrainUniforms.html @@ -32,7 +32,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/water/struct.Uniforms.html b/doc/wgpu_examples/water/struct.Uniforms.html index 7f4ce5c52491..1d21a61aea36 100644 --- a/doc/wgpu_examples/water/struct.Uniforms.html +++ b/doc/wgpu_examples/water/struct.Uniforms.html @@ -24,7 +24,7 @@ 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>

    §

    impl<T> WithSubscriber for T

    §

    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
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where +[WithDispatch] wrapper. Read more
    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_examples/water/struct.WaterUniforms.html b/doc/wgpu_examples/water/struct.WaterUniforms.html index c18b92b11c63..469ecb10218b 100644 --- a/doc/wgpu_examples/water/struct.WaterUniforms.html +++ b/doc/wgpu_examples/water/struct.WaterUniforms.html @@ -34,7 +34,7 @@ [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

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

    impl<T> AnyBitPattern for T
    where T: Pod,

    §

    impl<T> NoUninit for T
    where - T: Pod,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Pod,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/auxil/fn.map_naga_stage.html b/doc/wgpu_hal/auxil/fn.map_naga_stage.html index 40991a887106..fc3d1922b0c9 100644 --- a/doc/wgpu_hal/auxil/fn.map_naga_stage.html +++ b/doc/wgpu_hal/auxil/fn.map_naga_stage.html @@ -1 +1 @@ -map_naga_stage in wgpu_hal::auxil - Rust
    wgpu_hal::auxil

    Function map_naga_stage

    source
    pub fn map_naga_stage(stage: ShaderStage) -> ShaderStages
    \ No newline at end of file +map_naga_stage in wgpu_hal::auxil - Rust
    wgpu_hal::auxil

    Function map_naga_stage

    source
    pub fn map_naga_stage(stage: ShaderStage) -> ShaderStages
    \ No newline at end of file diff --git a/doc/wgpu_hal/auxil/renderdoc/enum.RenderDoc.html b/doc/wgpu_hal/auxil/renderdoc/enum.RenderDoc.html index 2a779b3e454c..af1cb8f2e29f 100644 --- a/doc/wgpu_hal/auxil/renderdoc/enum.RenderDoc.html +++ b/doc/wgpu_hal/auxil/renderdoc/enum.RenderDoc.html @@ -30,7 +30,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/auxil/renderdoc/struct.RenderDocApi.html b/doc/wgpu_hal/auxil/renderdoc/struct.RenderDocApi.html index 33aa46f6894d..3b4f7d503b0d 100644 --- a/doc/wgpu_hal/auxil/renderdoc/struct.RenderDocApi.html +++ b/doc/wgpu_hal/auxil/renderdoc/struct.RenderDocApi.html @@ -12,7 +12,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/constant.QUERY_SIZE.html b/doc/wgpu_hal/constant.QUERY_SIZE.html index b3d2b58f7e2f..d2467985b11d 100644 --- a/doc/wgpu_hal/constant.QUERY_SIZE.html +++ b/doc/wgpu_hal/constant.QUERY_SIZE.html @@ -1,2 +1,2 @@ -QUERY_SIZE in wgpu_hal - Rust
    wgpu_hal

    Constant QUERY_SIZE

    source
    pub const QUERY_SIZE: BufferAddress = 8;
    Expand description

    Size of a single occlusion/timestamp query, when copied into a buffer, in bytes.

    +QUERY_SIZE in wgpu_hal - Rust
    wgpu_hal

    Constant QUERY_SIZE

    source
    pub const QUERY_SIZE: BufferAddress = 8;
    Expand description

    Size of a single occlusion/timestamp query, when copied into a buffer, in bytes.

    \ No newline at end of file diff --git a/doc/wgpu_hal/dynamic/adapter/struct.DynOpenDevice.html b/doc/wgpu_hal/dynamic/adapter/struct.DynOpenDevice.html index eb93abe239d7..853b0b2d038d 100644 --- a/doc/wgpu_hal/dynamic/adapter/struct.DynOpenDevice.html +++ b/doc/wgpu_hal/dynamic/adapter/struct.DynOpenDevice.html @@ -11,7 +11,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/dynamic/adapter/trait.DynAdapter.html b/doc/wgpu_hal/dynamic/adapter/trait.DynAdapter.html index 7748ae20b553..0b03c3a18744 100644 --- a/doc/wgpu_hal/dynamic/adapter/trait.DynAdapter.html +++ b/doc/wgpu_hal/dynamic/adapter/trait.DynAdapter.html @@ -2,28 +2,28 @@ // Required methods unsafe fn open( &self, - features: Features, - limits: &Limits, - memory_hints: &MemoryHints, + features: Features, + limits: &Limits, + memory_hints: &MemoryHints, ) -> Result<DynOpenDevice, DeviceError>; unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities; unsafe fn surface_capabilities( &self, surface: &dyn DynSurface, ) -> Option<SurfaceCapabilities>; - unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp; + unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp; }

    Required Methods§

    source

    unsafe fn open( &self, - features: Features, - limits: &Limits, - memory_hints: &MemoryHints, + features: Features, + limits: &Limits, + memory_hints: &MemoryHints, ) -> Result<DynOpenDevice, DeviceError>

    source

    unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities

    source

    unsafe fn surface_capabilities( &self, surface: &dyn DynSurface, -) -> Option<SurfaceCapabilities>

    source

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Implementors§

    source§

    impl<A: Adapter + DynResource> DynAdapter for A

    \ No newline at end of file +) -> Option<SurfaceCapabilities>
    source

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Implementors§

    source§

    impl<A: Adapter + DynResource> DynAdapter for A

    \ No newline at end of file diff --git a/doc/wgpu_hal/dynamic/command/trait.DynCommandEncoder.html b/doc/wgpu_hal/dynamic/command/trait.DynCommandEncoder.html index 38f5e3adb3e6..e447fbe0d034 100644 --- a/doc/wgpu_hal/dynamic/command/trait.DynCommandEncoder.html +++ b/doc/wgpu_hal/dynamic/command/trait.DynCommandEncoder.html @@ -56,12 +56,12 @@ layout: &dyn DynPipelineLayout, index: u32, group: Option<&dyn DynBindGroup>, - dynamic_offsets: &[DynamicOffset], + dynamic_offsets: &[DynamicOffset], ); unsafe fn set_push_constants( &mut self, layout: &dyn DynPipelineLayout, - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], ); @@ -77,8 +77,8 @@ set: &dyn DynQuerySet, range: Range<u32>, buffer: &dyn DynBuffer, - offset: BufferAddress, - stride: BufferSize, + offset: BufferAddress, + stride: BufferSize, ); unsafe fn begin_render_pass( &mut self, @@ -89,7 +89,7 @@ unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, dyn DynBuffer>, - format: IndexFormat, + format: IndexFormat, ); unsafe fn set_vertex_buffer<'a>( &mut self, @@ -118,29 +118,29 @@ unsafe fn draw_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, ); unsafe fn draw_indexed_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, ); unsafe fn draw_indirect_count( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &dyn DynBuffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, ); unsafe fn draw_indexed_indirect_count( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &dyn DynBuffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, ); unsafe fn begin_compute_pass( @@ -153,7 +153,7 @@ unsafe fn dispatch_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, ); unsafe fn build_acceleration_structures<'a>( &mut self, @@ -198,11 +198,11 @@ layout: &dyn DynPipelineLayout, index: u32, group: Option<&dyn DynBindGroup>, - dynamic_offsets: &[DynamicOffset], + dynamic_offsets: &[DynamicOffset], )
    source

    unsafe fn set_push_constants( &mut self, layout: &dyn DynPipelineLayout, - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], )

    source

    unsafe fn insert_debug_marker(&mut self, label: &str)

    source

    unsafe fn begin_debug_marker(&mut self, group_label: &str)

    source

    unsafe fn end_debug_marker(&mut self)

    source

    unsafe fn begin_query(&mut self, set: &dyn DynQuerySet, index: u32)

    source

    unsafe fn end_query(&mut self, set: &dyn DynQuerySet, index: u32)

    source

    unsafe fn write_timestamp(&mut self, set: &dyn DynQuerySet, index: u32)

    source

    unsafe fn reset_queries(&mut self, set: &dyn DynQuerySet, range: Range<u32>)

    source

    unsafe fn copy_query_results( @@ -210,15 +210,15 @@ set: &dyn DynQuerySet, range: Range<u32>, buffer: &dyn DynBuffer, - offset: BufferAddress, - stride: BufferSize, + offset: BufferAddress, + stride: BufferSize, )

    source

    unsafe fn begin_render_pass( &mut self, desc: &RenderPassDescriptor<'_, dyn DynQuerySet, dyn DynTextureView>, )

    source

    unsafe fn end_render_pass(&mut self)

    source

    unsafe fn set_render_pipeline(&mut self, pipeline: &dyn DynRenderPipeline)

    source

    unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, dyn DynBuffer>, - format: IndexFormat, + format: IndexFormat, )

    source

    unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, @@ -239,26 +239,26 @@ )

    source

    unsafe fn draw_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source

    unsafe fn draw_indexed_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source

    unsafe fn draw_indirect_count( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &dyn DynBuffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source

    unsafe fn draw_indexed_indirect_count( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &dyn DynBuffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source

    unsafe fn begin_compute_pass( &mut self, @@ -266,7 +266,7 @@ )

    source

    unsafe fn end_compute_pass(&mut self)

    source

    unsafe fn set_compute_pipeline(&mut self, pipeline: &dyn DynComputePipeline)

    source

    unsafe fn dispatch(&mut self, count: [u32; 3])

    source

    unsafe fn dispatch_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, )

    source

    unsafe fn build_acceleration_structures<'a>( &mut self, descriptors: &'a [BuildAccelerationStructureDescriptor<'a, dyn DynBuffer, dyn DynAccelerationStructure>], diff --git a/doc/wgpu_hal/dynamic/device/trait.DynDevice.html b/doc/wgpu_hal/dynamic/device/trait.DynDevice.html index 2080303e7478..3474f3f0dc4b 100644 --- a/doc/wgpu_hal/dynamic/device/trait.DynDevice.html +++ b/doc/wgpu_hal/dynamic/device/trait.DynDevice.html @@ -93,7 +93,7 @@ unsafe fn destroy_pipeline_cache(&self, cache: Box<dyn DynPipelineCache>); unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Label<'_>>, + desc: &QuerySetDescriptor<Label<'_>>, ) -> Result<Box<dyn DynQuerySet>, DeviceError>; unsafe fn destroy_query_set(&self, set: Box<dyn DynQuerySet>); unsafe fn create_fence(&self) -> Result<Box<dyn DynFence>, DeviceError>; @@ -125,14 +125,14 @@ unsafe fn get_acceleration_structure_device_address( &self, acceleration_structure: &dyn DynAccelerationStructure, - ) -> BufferAddress; + ) -> BufferAddress; unsafe fn destroy_acceleration_structure( &self, acceleration_structure: Box<dyn DynAccelerationStructure>, ); fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>; - fn get_internal_counters(&self) -> HalCounters; - fn generate_allocator_report(&self) -> Option<AllocatorReport>; + fn get_internal_counters(&self) -> HalCounters; + fn generate_allocator_report(&self) -> Option<AllocatorReport>; // Provided method fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]> { ... } @@ -194,7 +194,7 @@ desc: &PipelineCacheDescriptor<'_>, ) -> Result<Box<dyn DynPipelineCache>, PipelineCacheError>

    source

    unsafe fn destroy_pipeline_cache(&self, cache: Box<dyn DynPipelineCache>)

    source

    unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Label<'_>>, + desc: &QuerySetDescriptor<Label<'_>>, ) -> Result<Box<dyn DynQuerySet>, DeviceError>

    source

    unsafe fn destroy_query_set(&self, set: Box<dyn DynQuerySet>)

    source

    unsafe fn create_fence(&self) -> Result<Box<dyn DynFence>, DeviceError>

    source

    unsafe fn destroy_fence(&self, fence: Box<dyn DynFence>)

    source

    unsafe fn get_fence_value( &self, fence: &dyn DynFence, @@ -215,7 +215,7 @@ ) -> AccelerationStructureBuildSizes

    source

    unsafe fn get_acceleration_structure_device_address( &self, acceleration_structure: &dyn DynAccelerationStructure, -) -> BufferAddress

    source

    unsafe fn destroy_acceleration_structure( +) -> BufferAddress

    source

    unsafe fn destroy_acceleration_structure( &self, acceleration_structure: Box<dyn DynAccelerationStructure>, -)

    source

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source

    fn get_internal_counters(&self) -> HalCounters

    source

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    Provided Methods§

    source

    fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]>

    Implementors§

    source§

    impl<D: Device + DynResource> DynDevice for D

    \ No newline at end of file +)
    source

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source

    fn get_internal_counters(&self) -> HalCounters

    source

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    Provided Methods§

    source

    fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]>

    Implementors§

    source§

    impl<D: Device + DynResource> DynDevice for D

    \ No newline at end of file diff --git a/doc/wgpu_hal/dynamic/instance/struct.DynExposedAdapter.html b/doc/wgpu_hal/dynamic/instance/struct.DynExposedAdapter.html index a8140a693af3..675d232f698e 100644 --- a/doc/wgpu_hal/dynamic/instance/struct.DynExposedAdapter.html +++ b/doc/wgpu_hal/dynamic/instance/struct.DynExposedAdapter.html @@ -1,9 +1,9 @@ DynExposedAdapter in wgpu_hal::dynamic::instance - Rust
    wgpu_hal::dynamic::instance

    Struct DynExposedAdapter

    source
    pub struct DynExposedAdapter {
         pub adapter: Box<dyn DynAdapter>,
    -    pub info: AdapterInfo,
    -    pub features: Features,
    +    pub info: AdapterInfo,
    +    pub features: Features,
         pub capabilities: Capabilities,
    -}

    Fields§

    §adapter: Box<dyn DynAdapter>§info: AdapterInfo§features: Features§capabilities: Capabilities

    Implementations§

    source§

    impl DynExposedAdapter

    source

    pub fn backend(&self) -> Backend

    Returns the backend this adapter is using.

    +}

    Fields§

    §adapter: Box<dyn DynAdapter>§info: AdapterInfo§features: Features§capabilities: Capabilities

    Implementations§

    source§

    impl DynExposedAdapter

    source

    pub fn backend(&self) -> Backend

    Returns the backend this adapter is using.

    Trait Implementations§

    source§

    impl<A: Api> From<ExposedAdapter<A>> for DynExposedAdapter

    source§

    fn from(exposed_adapter: ExposedAdapter<A>) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    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 @@ -14,7 +14,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/dynamic/surface/struct.DynAcquiredSurfaceTexture.html b/doc/wgpu_hal/dynamic/surface/struct.DynAcquiredSurfaceTexture.html index 9b10aef98e19..d08da279c790 100644 --- a/doc/wgpu_hal/dynamic/surface/struct.DynAcquiredSurfaceTexture.html +++ b/doc/wgpu_hal/dynamic/surface/struct.DynAcquiredSurfaceTexture.html @@ -14,7 +14,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/dynamic/trait.DynResource.html b/doc/wgpu_hal/dynamic/trait.DynResource.html index cbd8c92b4600..557f69273908 100644 --- a/doc/wgpu_hal/dynamic/trait.DynResource.html +++ b/doc/wgpu_hal/dynamic/trait.DynResource.html @@ -1,6 +1,6 @@ DynResource in wgpu_hal::dynamic - Rust
    wgpu_hal::dynamic

    Trait DynResource

    source
    pub trait DynResource:
         Any
    -    + WasmNotSendSync
    +    + WasmNotSendSync
         + 'static {
         // Required methods
         fn as_any(&self) -> &dyn Any;
    diff --git a/doc/wgpu_hal/empty/struct.Api.html b/doc/wgpu_hal/empty/struct.Api.html
    index 5d89699e0251..698e10be2bfd 100644
    --- a/doc/wgpu_hal/empty/struct.Api.html
    +++ b/doc/wgpu_hal/empty/struct.Api.html
    @@ -10,7 +10,7 @@
     
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/empty/struct.Context.html b/doc/wgpu_hal/empty/struct.Context.html index b9421b981cf3..ad5724b645b6 100644 --- a/doc/wgpu_hal/empty/struct.Context.html +++ b/doc/wgpu_hal/empty/struct.Context.html @@ -1,15 +1,15 @@ Context in wgpu_hal::empty - Rust
    wgpu_hal::empty

    Struct Context

    source
    pub struct Context;

    Trait Implementations§

    source§

    impl Adapter for Context

    source§

    type A = Api

    source§

    unsafe fn open( &self, - features: Features, - _limits: &Limits, - _memory_hints: &MemoryHints, + features: Features, + _limits: &Limits, + _memory_hints: &MemoryHints, ) -> Result<OpenDevice<Api>, DeviceError>

    source§

    unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities

    Return the set of supported capabilities for a texture format.
    source§

    unsafe fn surface_capabilities( &self, surface: &Context, -) -> Option<SurfaceCapabilities>

    Returns the capabilities of working with a specified surface. Read more
    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Creates a PresentationTimestamp using the adapter’s WSI.
    source§

    impl Device for Context

    source§

    type A = Api

    source§

    unsafe fn create_buffer( +) -> Option<SurfaceCapabilities>

    Returns the capabilities of working with a specified surface. Read more
    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Creates a PresentationTimestamp using the adapter’s WSI.
    source§

    impl Device for Context

    source§

    type A = Api

    source§

    unsafe fn create_buffer( &self, desc: &BufferDescriptor<'_>, ) -> Result<Resource, DeviceError>

    Creates a new buffer. Read more
    source§

    unsafe fn destroy_buffer(&self, buffer: Resource)

    Free buffer and any GPU resources it owns. Read more
    source§

    unsafe fn add_raw_buffer(&self, _buffer: &Resource)

    A hook for when a wgpu-core buffer is created from a raw wgpu-hal buffer.
    source§

    unsafe fn map_buffer( @@ -53,7 +53,7 @@ desc: &PipelineCacheDescriptor<'_>, ) -> Result<Resource, PipelineCacheError>

    source§

    unsafe fn destroy_pipeline_cache(&self, cache: Resource)

    source§

    unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Label<'_>>, + desc: &QuerySetDescriptor<Label<'_>>, ) -> Result<Resource, DeviceError>

    source§

    unsafe fn destroy_query_set(&self, set: Resource)

    source§

    unsafe fn create_fence(&self) -> Result<Resource, DeviceError>

    source§

    unsafe fn destroy_fence(&self, fence: Resource)

    source§

    unsafe fn get_fence_value( &self, fence: &Resource, @@ -71,13 +71,13 @@ ) -> AccelerationStructureBuildSizes

    source§

    unsafe fn get_acceleration_structure_device_address( &self, _acceleration_structure: &Resource, -) -> BufferAddress

    source§

    unsafe fn destroy_acceleration_structure( +) -> BufferAddress

    source§

    unsafe fn destroy_acceleration_structure( &self, _acceleration_structure: Resource, -)

    source§

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]>

    source§

    unsafe fn pipeline_cache_get_data( +)

    source§

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]>

    source§

    unsafe fn pipeline_cache_get_data( &self, cache: &<Self::A as Api>::PipelineCache, -) -> Option<Vec<u8>>

    source§

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    source§

    impl DynResource for Context

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl Instance for Context

    source§

    impl DynResource for Context

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl Instance for Context

    source§

    type A = Api

    source§

    unsafe fn init(desc: &InstanceDescriptor<'_>) -> Result<Self, InstanceError>

    source§

    unsafe fn create_surface( &self, _display_handle: RawDisplayHandle, _window_handle: RawWindowHandle, @@ -107,16 +107,16 @@ 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<A> DynAdapter for A
    where A: Adapter + DynResource,

    source§

    unsafe fn open( &self, - features: Features, - limits: &Limits, - memory_hints: &MemoryHints, + features: Features, + limits: &Limits, + memory_hints: &MemoryHints, ) -> Result<DynOpenDevice, DeviceError>

    source§

    unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities

    source§

    unsafe fn surface_capabilities( &self, surface: &(dyn DynSurface + 'static), -) -> Option<SurfaceCapabilities>

    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    source§

    impl<D> DynDevice for D

    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    source§

    impl<D> DynDevice for D
    where D: Device + DynResource,

    source§

    unsafe fn create_buffer( &self, desc: &BufferDescriptor<'_>, @@ -178,7 +178,7 @@ pipeline_cache: Box<dyn DynPipelineCache>, )

    source§

    unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Option<&str>>, + desc: &QuerySetDescriptor<Option<&str>>, ) -> Result<Box<dyn DynQuerySet>, DeviceError>

    source§

    unsafe fn destroy_query_set(&self, query_set: Box<dyn DynQuerySet>)

    source§

    unsafe fn create_fence(&self) -> Result<Box<dyn DynFence>, DeviceError>

    source§

    unsafe fn destroy_fence(&self, fence: Box<dyn DynFence>)

    source§

    unsafe fn get_fence_value( &self, fence: &(dyn DynFence + 'static), @@ -202,7 +202,7 @@ ) -> u64

    source§

    unsafe fn destroy_acceleration_structure( &self, acceleration_structure: Box<dyn DynAccelerationStructure>, -)

    source§

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    source§

    impl<I> DynInstance for I
    where +)

    source§

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    source§

    impl<I> DynInstance for I
    where I: Instance + DynResource,

    source§

    unsafe fn create_surface( &self, display_handle: RawDisplayHandle, @@ -236,7 +236,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/empty/struct.Encoder.html b/doc/wgpu_hal/empty/struct.Encoder.html index b2c5d6ffb00d..a318e85259a0 100644 --- a/doc/wgpu_hal/empty/struct.Encoder.html +++ b/doc/wgpu_hal/empty/struct.Encoder.html @@ -35,8 +35,8 @@ set: &Resource, range: Range<u32>, buffer: &Resource, - offset: BufferAddress, - stride: BufferSize, + offset: BufferAddress, + stride: BufferSize, )
    source§

    unsafe fn begin_render_pass( &mut self, desc: &RenderPassDescriptor<'_, Resource, Resource>, @@ -45,17 +45,17 @@ layout: &Resource, index: u32, group: &Resource, - dynamic_offsets: &[DynamicOffset], + dynamic_offsets: &[DynamicOffset], )

    Sets the bind group at index to group. Read more
    source§

    unsafe fn set_push_constants( &mut self, layout: &Resource, - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], )

    Sets a range in push constant data. Read more
    source§

    unsafe fn insert_debug_marker(&mut self, label: &str)

    source§

    unsafe fn begin_debug_marker(&mut self, group_label: &str)

    source§

    unsafe fn end_debug_marker(&mut self)

    source§

    unsafe fn set_render_pipeline(&mut self, pipeline: &Resource)

    source§

    unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, Resource>, - format: IndexFormat, + format: IndexFormat, )

    source§

    unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, @@ -76,31 +76,31 @@ )

    source§

    unsafe fn draw_indirect( &mut self, buffer: &Resource, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source§

    unsafe fn draw_indexed_indirect( &mut self, buffer: &Resource, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source§

    unsafe fn draw_indirect_count( &mut self, buffer: &Resource, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &Resource, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source§

    unsafe fn draw_indexed_indirect_count( &mut self, buffer: &Resource, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &Resource, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source§

    unsafe fn begin_compute_pass( &mut self, desc: &ComputePassDescriptor<'_, Resource>, -)

    Begin a new compute pass, clearing all active bindings. Read more
    source§

    unsafe fn end_compute_pass(&mut self)

    End the current compute pass. Read more
    source§

    unsafe fn set_compute_pipeline(&mut self, pipeline: &Resource)

    source§

    unsafe fn dispatch(&mut self, count: [u32; 3])

    source§

    unsafe fn dispatch_indirect(&mut self, buffer: &Resource, offset: BufferAddress)

    source§

    unsafe fn build_acceleration_structures<'a, T>( +)

    Begin a new compute pass, clearing all active bindings. Read more
    source§

    unsafe fn end_compute_pass(&mut self)

    End the current compute pass. Read more
    source§

    unsafe fn set_compute_pipeline(&mut self, pipeline: &Resource)

    source§

    unsafe fn dispatch(&mut self, count: [u32; 3])

    source§

    unsafe fn dispatch_indirect(&mut self, buffer: &Resource, offset: BufferAddress)

    source§

    unsafe fn build_acceleration_structures<'a, T>( &mut self, _descriptor_count: u32, descriptors: T, @@ -163,7 +163,7 @@ )

    source§

    unsafe fn set_push_constants( &mut self, layout: &(dyn DynPipelineLayout + 'static), - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], )

    source§

    unsafe fn insert_debug_marker(&mut self, label: &str)

    source§

    unsafe fn begin_debug_marker(&mut self, group_label: &str)

    source§

    unsafe fn end_debug_marker(&mut self)

    source§

    unsafe fn begin_query(&mut self, set: &(dyn DynQuerySet + 'static), index: u32)

    source§

    unsafe fn end_query(&mut self, set: &(dyn DynQuerySet + 'static), index: u32)

    source§

    unsafe fn write_timestamp( @@ -237,7 +237,7 @@ )

    source§

    unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, dyn DynBuffer>, - format: IndexFormat, + format: IndexFormat, )

    source§

    unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, @@ -255,7 +255,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/empty/struct.Resource.html b/doc/wgpu_hal/empty/struct.Resource.html index f2a53e57fd21..d2f2c90985f8 100644 --- a/doc/wgpu_hal/empty/struct.Resource.html +++ b/doc/wgpu_hal/empty/struct.Resource.html @@ -8,7 +8,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/enum.AccelerationStructureBuildMode.html b/doc/wgpu_hal/enum.AccelerationStructureBuildMode.html index 35bd19d10697..609c687c193d 100644 --- a/doc/wgpu_hal/enum.AccelerationStructureBuildMode.html +++ b/doc/wgpu_hal/enum.AccelerationStructureBuildMode.html @@ -18,7 +18,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/enum.AccelerationStructureEntries.html b/doc/wgpu_hal/enum.AccelerationStructureEntries.html index f37826245d16..4b0429775fe9 100644 --- a/doc/wgpu_hal/enum.AccelerationStructureEntries.html +++ b/doc/wgpu_hal/enum.AccelerationStructureEntries.html @@ -24,7 +24,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/enum.AccelerationStructureFormat.html b/doc/wgpu_hal/enum.AccelerationStructureFormat.html index c090f0946634..f621119fb849 100644 --- a/doc/wgpu_hal/enum.AccelerationStructureFormat.html +++ b/doc/wgpu_hal/enum.AccelerationStructureFormat.html @@ -18,7 +18,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/enum.DeviceError.html b/doc/wgpu_hal/enum.DeviceError.html index 585ccd203140..b24afb8aa4ac 100644 --- a/doc/wgpu_hal/enum.DeviceError.html +++ b/doc/wgpu_hal/enum.DeviceError.html @@ -21,7 +21,7 @@ T: Clone,
    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/enum.PipelineCacheError.html b/doc/wgpu_hal/enum.PipelineCacheError.html index 73b621c2cac3..b2dd9752d0f7 100644 --- a/doc/wgpu_hal/enum.PipelineCacheError.html +++ b/doc/wgpu_hal/enum.PipelineCacheError.html @@ -18,7 +18,7 @@ T: Clone,
    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/enum.PipelineError.html b/doc/wgpu_hal/enum.PipelineError.html index f334d766554d..43799ec8ab02 100644 --- a/doc/wgpu_hal/enum.PipelineError.html +++ b/doc/wgpu_hal/enum.PipelineError.html @@ -1,9 +1,9 @@ PipelineError in wgpu_hal - Rust
    wgpu_hal

    Enum PipelineError

    source
    pub enum PipelineError {
    -    Linkage(ShaderStages, String),
    -    EntryPoint(ShaderStage),
    +    Linkage(ShaderStages, String),
    +    EntryPoint(ShaderStage),
         Device(DeviceError),
    -    PipelineConstants(ShaderStages, String),
    -}

    Variants§

    §

    Linkage(ShaderStages, String)

    §

    EntryPoint(ShaderStage)

    §

    Device(DeviceError)

    §

    PipelineConstants(ShaderStages, String)

    Trait Implementations§

    source§

    impl Clone for PipelineError

    source§

    fn clone(&self) -> PipelineError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PipelineError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for PipelineError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Error for PipelineError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    source§

    impl From<DeviceError> for PipelineError

    source§

    fn from(source: DeviceError) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for PipelineError

    source§

    fn eq(&self, other: &PipelineError) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, + PipelineConstants(ShaderStages, String), +}

    Variants§

    §

    Linkage(ShaderStages, String)

    §

    EntryPoint(ShaderStage)

    §

    Device(DeviceError)

    §

    PipelineConstants(ShaderStages, String)

    Trait Implementations§

    source§

    impl Clone for PipelineError

    source§

    fn clone(&self) -> PipelineError

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PipelineError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Display for PipelineError

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Error for PipelineError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    source§

    impl From<DeviceError> for PipelineError

    source§

    fn from(source: DeviceError) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for PipelineError

    source§

    fn eq(&self, other: &PipelineError) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    source§

    impl Eq for PipelineError

    source§

    impl StructuralPartialEq for PipelineError

    Auto Trait Implementations§

    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 @@ -21,7 +21,7 @@ T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/enum.ShaderError.html b/doc/wgpu_hal/enum.ShaderError.html index 9e54c725c585..542be872fdc1 100644 --- a/doc/wgpu_hal/enum.ShaderError.html +++ b/doc/wgpu_hal/enum.ShaderError.html @@ -19,7 +19,7 @@ T: Clone,
    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/enum.ShaderInput.html b/doc/wgpu_hal/enum.ShaderInput.html index ef9cc9703b25..b74920214b1c 100644 --- a/doc/wgpu_hal/enum.ShaderInput.html +++ b/doc/wgpu_hal/enum.ShaderInput.html @@ -12,7 +12,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/enum.SurfaceError.html b/doc/wgpu_hal/enum.SurfaceError.html index a55554d5d382..0a0301fe1262 100644 --- a/doc/wgpu_hal/enum.SurfaceError.html +++ b/doc/wgpu_hal/enum.SurfaceError.html @@ -21,7 +21,7 @@ T: Clone,
    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/command/struct.State.html b/doc/wgpu_hal/gles/command/struct.State.html index 75b2f4e78968..def67f632327 100644 --- a/doc/wgpu_hal/gles/command/struct.State.html +++ b/doc/wgpu_hal/gles/command/struct.State.html @@ -1,17 +1,17 @@ State in wgpu_hal::gles::command - Rust
    wgpu_hal::gles::command

    Struct State

    source
    pub(super) struct State {
    Show 23 fields topology: u32, primitive: PrimitiveState, - index_format: IndexFormat, - index_offset: BufferAddress, + index_format: IndexFormat, + index_offset: BufferAddress, vertex_buffers: [(VertexBufferDesc, Option<BufferBinding>); 16], vertex_attributes: ArrayVec<AttributeDesc, { super::MAX_VERTEX_ATTRIBUTES }>, color_targets: ArrayVec<ColorTargetDesc, { crate::MAX_COLOR_ATTACHMENTS }>, stencil: StencilState, - depth_bias: DepthBiasState, + depth_bias: DepthBiasState, alpha_to_coverage_enabled: bool, samplers: [Option<Sampler>; 16], texture_slots: [TextureSlotDesc; 16], - render_size: Extent3d, + render_size: Extent3d, resolve_attachments: ArrayVec<(u32, TextureView), { crate::MAX_COLOR_ATTACHMENTS }>, invalidate_attachments: ArrayVec<u32, { _ }>, has_pass_label: bool, @@ -22,7 +22,7 @@ push_constant_descs: ArrayVec<PushConstantDesc, { super::MAX_PUSH_CONSTANT_COMMANDS }>, current_push_constant_data: [u32; 64], end_of_pass_timestamp: Option<Query>, -
    }
    Available on gles only.

    Fields§

    §topology: u32§primitive: PrimitiveState§index_format: IndexFormat§index_offset: BufferAddress§vertex_buffers: [(VertexBufferDesc, Option<BufferBinding>); 16]§vertex_attributes: ArrayVec<AttributeDesc, { super::MAX_VERTEX_ATTRIBUTES }>§color_targets: ArrayVec<ColorTargetDesc, { crate::MAX_COLOR_ATTACHMENTS }>§stencil: StencilState§depth_bias: DepthBiasState§alpha_to_coverage_enabled: bool§samplers: [Option<Sampler>; 16]§texture_slots: [TextureSlotDesc; 16]§render_size: Extent3d§resolve_attachments: ArrayVec<(u32, TextureView), { crate::MAX_COLOR_ATTACHMENTS }>§invalidate_attachments: ArrayVec<u32, { _ }>§has_pass_label: bool§instance_vbuf_mask: usize§dirty_vbuf_mask: usize§active_first_instance: u32§first_instance_location: Option<UniformLocation>§push_constant_descs: ArrayVec<PushConstantDesc, { super::MAX_PUSH_CONSTANT_COMMANDS }>§current_push_constant_data: [u32; 64]§end_of_pass_timestamp: Option<Query>

    Trait Implementations§

    source§

    impl Default for State

    source§

    fn default() -> Self

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

    Auto Trait Implementations§

    §

    impl Freeze for State

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    }
    Available on gles only.

    Fields§

    §topology: u32§primitive: PrimitiveState§index_format: IndexFormat§index_offset: BufferAddress§vertex_buffers: [(VertexBufferDesc, Option<BufferBinding>); 16]§vertex_attributes: ArrayVec<AttributeDesc, { super::MAX_VERTEX_ATTRIBUTES }>§color_targets: ArrayVec<ColorTargetDesc, { crate::MAX_COLOR_ATTACHMENTS }>§stencil: StencilState§depth_bias: DepthBiasState§alpha_to_coverage_enabled: bool§samplers: [Option<Sampler>; 16]§texture_slots: [TextureSlotDesc; 16]§render_size: Extent3d§resolve_attachments: ArrayVec<(u32, TextureView), { crate::MAX_COLOR_ATTACHMENTS }>§invalidate_attachments: ArrayVec<u32, { _ }>§has_pass_label: bool§instance_vbuf_mask: usize§dirty_vbuf_mask: usize§active_first_instance: u32§first_instance_location: Option<UniformLocation>§push_constant_descs: ArrayVec<PushConstantDesc, { super::MAX_PUSH_CONSTANT_COMMANDS }>§current_push_constant_data: [u32; 64]§end_of_pass_timestamp: Option<Query>

    Trait Implementations§

    source§

    impl Default for State

    source§

    fn default() -> Self

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

    Auto Trait Implementations§

    §

    impl Freeze for State

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    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.

    @@ -32,7 +32,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/command/struct.TextureSlotDesc.html b/doc/wgpu_hal/gles/command/struct.TextureSlotDesc.html index bee38c7ad37a..aaccb78cdb0d 100644 --- a/doc/wgpu_hal/gles/command/struct.TextureSlotDesc.html +++ b/doc/wgpu_hal/gles/command/struct.TextureSlotDesc.html @@ -13,7 +13,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn._map_view_dimension.html b/doc/wgpu_hal/gles/conv/fn._map_view_dimension.html index c396589789f4..9c46cb6db0d9 100644 --- a/doc/wgpu_hal/gles/conv/fn._map_view_dimension.html +++ b/doc/wgpu_hal/gles/conv/fn._map_view_dimension.html @@ -1 +1 @@ -_map_view_dimension in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function _map_view_dimension

    source
    pub fn _map_view_dimension(dim: TextureViewDimension) -> u32
    Available on gles only.
    \ No newline at end of file +_map_view_dimension in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function _map_view_dimension

    source
    pub fn _map_view_dimension(dim: TextureViewDimension) -> u32
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.describe_vertex_format.html b/doc/wgpu_hal/gles/conv/fn.describe_vertex_format.html index f908680de226..4877fee51bf3 100644 --- a/doc/wgpu_hal/gles/conv/fn.describe_vertex_format.html +++ b/doc/wgpu_hal/gles/conv/fn.describe_vertex_format.html @@ -1,3 +1,3 @@ describe_vertex_format in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function describe_vertex_format

    source
    pub(super) fn describe_vertex_format(
    -    vertex_format: VertexFormat,
    +    vertex_format: VertexFormat,
     ) -> VertexFormatDesc
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_address_mode.html b/doc/wgpu_hal/gles/conv/fn.map_address_mode.html index f32a71c353b3..94730eb5f4e8 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_address_mode.html +++ b/doc/wgpu_hal/gles/conv/fn.map_address_mode.html @@ -1 +1 @@ -map_address_mode in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_address_mode

    source
    pub fn map_address_mode(mode: AddressMode) -> u32
    Available on gles only.
    \ No newline at end of file +map_address_mode in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_address_mode

    source
    pub fn map_address_mode(mode: AddressMode) -> u32
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_blend.html b/doc/wgpu_hal/gles/conv/fn.map_blend.html index c17452fd7724..ad74b6ac82db 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_blend.html +++ b/doc/wgpu_hal/gles/conv/fn.map_blend.html @@ -1 +1 @@ -map_blend in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_blend

    source
    pub(super) fn map_blend(blend: &BlendState) -> BlendDesc
    Available on gles only.
    \ No newline at end of file +map_blend in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_blend

    source
    pub(super) fn map_blend(blend: &BlendState) -> BlendDesc
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_blend_component.html b/doc/wgpu_hal/gles/conv/fn.map_blend_component.html index 48929902e8e4..2b52a7bfe864 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_blend_component.html +++ b/doc/wgpu_hal/gles/conv/fn.map_blend_component.html @@ -1 +1 @@ -map_blend_component in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_blend_component

    source
    fn map_blend_component(component: &BlendComponent) -> BlendComponent
    Available on gles only.
    \ No newline at end of file +map_blend_component in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_blend_component

    source
    fn map_blend_component(component: &BlendComponent) -> BlendComponent
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_blend_factor.html b/doc/wgpu_hal/gles/conv/fn.map_blend_factor.html index 647e9e24ca40..b95798e06cac 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_blend_factor.html +++ b/doc/wgpu_hal/gles/conv/fn.map_blend_factor.html @@ -1 +1 @@ -map_blend_factor in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_blend_factor

    source
    fn map_blend_factor(factor: BlendFactor) -> u32
    Available on gles only.
    \ No newline at end of file +map_blend_factor in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_blend_factor

    source
    fn map_blend_factor(factor: BlendFactor) -> u32
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_compare_func.html b/doc/wgpu_hal/gles/conv/fn.map_compare_func.html index 13547164cf47..6745663a104c 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_compare_func.html +++ b/doc/wgpu_hal/gles/conv/fn.map_compare_func.html @@ -1 +1 @@ -map_compare_func in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_compare_func

    source
    pub fn map_compare_func(fun: CompareFunction) -> u32
    Available on gles only.
    \ No newline at end of file +map_compare_func in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_compare_func

    source
    pub fn map_compare_func(fun: CompareFunction) -> u32
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_filter_modes.html b/doc/wgpu_hal/gles/conv/fn.map_filter_modes.html index 18f6c89d2f97..a8cd79aa885f 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_filter_modes.html +++ b/doc/wgpu_hal/gles/conv/fn.map_filter_modes.html @@ -1,5 +1,5 @@ map_filter_modes in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_filter_modes

    source
    pub fn map_filter_modes(
    -    min: FilterMode,
    -    mag: FilterMode,
    -    mip: FilterMode,
    +    min: FilterMode,
    +    mag: FilterMode,
    +    mip: FilterMode,
     ) -> (u32, u32)
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_primitive_state.html b/doc/wgpu_hal/gles/conv/fn.map_primitive_state.html index 91bdd6d30eef..d0ffb9966785 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_primitive_state.html +++ b/doc/wgpu_hal/gles/conv/fn.map_primitive_state.html @@ -1 +1 @@ -map_primitive_state in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_primitive_state

    source
    pub(super) fn map_primitive_state(state: &PrimitiveState) -> PrimitiveState
    Available on gles only.
    \ No newline at end of file +map_primitive_state in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_primitive_state

    source
    pub(super) fn map_primitive_state(state: &PrimitiveState) -> PrimitiveState
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_primitive_topology.html b/doc/wgpu_hal/gles/conv/fn.map_primitive_topology.html index 13f1eee6ddc0..8ba6fc0e35f7 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_primitive_topology.html +++ b/doc/wgpu_hal/gles/conv/fn.map_primitive_topology.html @@ -1 +1 @@ -map_primitive_topology in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_primitive_topology

    source
    pub fn map_primitive_topology(topology: PrimitiveTopology) -> u32
    Available on gles only.
    \ No newline at end of file +map_primitive_topology in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_primitive_topology

    source
    pub fn map_primitive_topology(topology: PrimitiveTopology) -> u32
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_stencil.html b/doc/wgpu_hal/gles/conv/fn.map_stencil.html index d1b69b81ec97..2e5c2d7f102a 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_stencil.html +++ b/doc/wgpu_hal/gles/conv/fn.map_stencil.html @@ -1 +1 @@ -map_stencil in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_stencil

    source
    pub(super) fn map_stencil(state: &StencilState) -> StencilState
    Available on gles only.
    \ No newline at end of file +map_stencil in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_stencil

    source
    pub(super) fn map_stencil(state: &StencilState) -> StencilState
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_stencil_op.html b/doc/wgpu_hal/gles/conv/fn.map_stencil_op.html index b68d24aade6c..2b2fb06b03ef 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_stencil_op.html +++ b/doc/wgpu_hal/gles/conv/fn.map_stencil_op.html @@ -1 +1 @@ -map_stencil_op in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_stencil_op

    source
    fn map_stencil_op(operation: StencilOperation) -> u32
    Available on gles only.
    \ No newline at end of file +map_stencil_op in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_stencil_op

    source
    fn map_stencil_op(operation: StencilOperation) -> u32
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_stencil_ops.html b/doc/wgpu_hal/gles/conv/fn.map_stencil_ops.html index 7b4e632e68cf..9494061d39b9 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_stencil_ops.html +++ b/doc/wgpu_hal/gles/conv/fn.map_stencil_ops.html @@ -1 +1 @@ -map_stencil_ops in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_stencil_ops

    source
    fn map_stencil_ops(face: &StencilFaceState) -> StencilOps
    Available on gles only.
    \ No newline at end of file +map_stencil_ops in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_stencil_ops

    source
    fn map_stencil_ops(face: &StencilFaceState) -> StencilOps
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/conv/fn.map_storage_access.html b/doc/wgpu_hal/gles/conv/fn.map_storage_access.html index 88a1e2378886..b87dde6d4f9d 100644 --- a/doc/wgpu_hal/gles/conv/fn.map_storage_access.html +++ b/doc/wgpu_hal/gles/conv/fn.map_storage_access.html @@ -1 +1 @@ -map_storage_access in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_storage_access

    source
    pub(super) fn map_storage_access(access: StorageTextureAccess) -> u32
    Available on gles only.
    \ No newline at end of file +map_storage_access in wgpu_hal::gles::conv - Rust
    wgpu_hal::gles::conv

    Function map_storage_access

    source
    pub(super) fn map_storage_access(access: StorageTextureAccess) -> u32
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/device/struct.CompilationContext.html b/doc/wgpu_hal/gles/device/struct.CompilationContext.html index 64beebb22df3..2c62a1791c68 100644 --- a/doc/wgpu_hal/gles/device/struct.CompilationContext.html +++ b/doc/wgpu_hal/gles/device/struct.CompilationContext.html @@ -2,15 +2,15 @@ layout: &'a PipelineLayout, sampler_map: &'a mut [Option<u8>; 16], name_binding_map: &'a mut FxHashMap<String, (BindingRegister, u8)>, - push_constant_items: &'a mut Vec<PushConstantItem>, + push_constant_items: &'a mut Vec<PushConstantItem>, multiview: Option<NonZeroU32>, -}
    Available on gles only.

    Fields§

    §layout: &'a PipelineLayout§sampler_map: &'a mut [Option<u8>; 16]§name_binding_map: &'a mut FxHashMap<String, (BindingRegister, u8)>§push_constant_items: &'a mut Vec<PushConstantItem>§multiview: Option<NonZeroU32>

    Implementations§

    source§

    impl CompilationContext<'_>

    source

    fn consume_reflection( +}
    Available on gles only.

    Fields§

    §layout: &'a PipelineLayout§sampler_map: &'a mut [Option<u8>; 16]§name_binding_map: &'a mut FxHashMap<String, (BindingRegister, u8)>§push_constant_items: &'a mut Vec<PushConstantItem>§multiview: Option<NonZeroU32>

    Implementations§

    source§

    impl CompilationContext<'_>

    source

    fn consume_reflection( self, gl: &Context, - module: &Module, - ep_info: &FunctionInfo, - reflection_info: ReflectionInfo, - naga_stage: ShaderStage, + module: &Module, + ep_info: &FunctionInfo, + reflection_info: ReflectionInfo, + naga_stage: ShaderStage, program: Program, )

    Auto Trait Implementations§

    §

    impl<'a> Freeze for CompilationContext<'a>

    §

    impl<'a> RefUnwindSafe for CompilationContext<'a>

    §

    impl<'a> Send for CompilationContext<'a>

    §

    impl<'a> Sync for CompilationContext<'a>

    §

    impl<'a> Unpin for CompilationContext<'a>

    §

    impl<'a> !UnwindSafe for CompilationContext<'a>

    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 @@ -22,7 +22,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/device/type.ShaderStage.html b/doc/wgpu_hal/gles/device/type.ShaderStage.html index 75fe15f6a313..65d24c7e808d 100644 --- a/doc/wgpu_hal/gles/device/type.ShaderStage.html +++ b/doc/wgpu_hal/gles/device/type.ShaderStage.html @@ -1 +1 @@ -ShaderStage in wgpu_hal::gles::device - Rust
    wgpu_hal::gles::device

    Type Alias ShaderStage

    source
    type ShaderStage<'a> = (ShaderStage, &'a ProgrammableStage<'a, ShaderModule>);
    Available on gles only.
    \ No newline at end of file +ShaderStage in wgpu_hal::gles::device - Rust
    wgpu_hal::gles::device

    Type Alias ShaderStage

    source
    type ShaderStage<'a> = (ShaderStage, &'a ProgrammableStage<'a, ShaderModule>);
    Available on gles only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/egl/enum.SrgbFrameBufferKind.html b/doc/wgpu_hal/gles/egl/enum.SrgbFrameBufferKind.html index 3589f867edde..34a66761109e 100644 --- a/doc/wgpu_hal/gles/egl/enum.SrgbFrameBufferKind.html +++ b/doc/wgpu_hal/gles/egl/enum.SrgbFrameBufferKind.html @@ -17,7 +17,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/egl/enum.WindowKind.html b/doc/wgpu_hal/gles/egl/enum.WindowKind.html index f03baba5e625..bd9b4b8af00d 100644 --- a/doc/wgpu_hal/gles/egl/enum.WindowKind.html +++ b/doc/wgpu_hal/gles/egl/enum.WindowKind.html @@ -16,7 +16,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/egl/struct.AdapterContext.html b/doc/wgpu_hal/gles/egl/struct.AdapterContext.html index 4bb1615a090a..a1e05bdbb628 100644 --- a/doc/wgpu_hal/gles/egl/struct.AdapterContext.html +++ b/doc/wgpu_hal/gles/egl/struct.AdapterContext.html @@ -31,7 +31,7 @@
    §Safety
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/egl/struct.Inner.html b/doc/wgpu_hal/gles/egl/struct.Inner.html index e87a6bfff816..c61711445ddd 100644 --- a/doc/wgpu_hal/gles/egl/struct.Inner.html +++ b/doc/wgpu_hal/gles/egl/struct.Inner.html @@ -4,16 +4,16 @@ supports_native_window: bool, config: Config, wl_display: Option<*mut c_void>, - force_gles_minor_version: Gles3MinorVersion, + force_gles_minor_version: Gles3MinorVersion, srgb_kind: SrgbFrameBufferKind, }
    Available on gles and neither Windows nor webgl only.

    Fields§

    §egl: EglContext

    Note: the context contains a dummy pbuffer (1x1). Required for eglMakeCurrent on platforms that doesn’t supports EGL_KHR_surfaceless_context.

    -
    §version: (i32, i32)§supports_native_window: bool§config: Config§wl_display: Option<*mut c_void>§force_gles_minor_version: Gles3MinorVersion§srgb_kind: SrgbFrameBufferKind

    Method by which the framebuffer should support srgb

    +
    §version: (i32, i32)§supports_native_window: bool§config: Config§wl_display: Option<*mut c_void>§force_gles_minor_version: Gles3MinorVersion§srgb_kind: SrgbFrameBufferKind

    Method by which the framebuffer should support srgb

    Implementations§

    source§

    impl Inner

    source

    fn create( - flags: InstanceFlags, + flags: InstanceFlags, egl: Arc<DynamicInstance<EGL1_4>>, display: Display, - force_gles_minor_version: Gles3MinorVersion, + force_gles_minor_version: Gles3MinorVersion, ) -> Result<Self, InstanceError>

    Trait Implementations§

    source§

    impl Debug for Inner

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Drop for Inner

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Inner

    §

    impl RefUnwindSafe for Inner

    §

    impl !Send for Inner

    §

    impl !Sync for Inner

    §

    impl Unpin for Inner

    §

    impl UnwindSafe for Inner

    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 diff --git a/doc/wgpu_hal/gles/egl/struct.Instance.html b/doc/wgpu_hal/gles/egl/struct.Instance.html index 5b39f2cbbd6c..c235b8fc8410 100644 --- a/doc/wgpu_hal/gles/egl/struct.Instance.html +++ b/doc/wgpu_hal/gles/egl/struct.Instance.html @@ -1,9 +1,9 @@ Instance in wgpu_hal::gles::egl - Rust
    wgpu_hal::gles::egl

    Struct Instance

    source
    pub struct Instance {
         wsi: WindowSystemInterface,
    -    flags: InstanceFlags,
    -    options: GlBackendOptions,
    +    flags: InstanceFlags,
    +    options: GlBackendOptions,
         inner: Mutex<Inner>,
    -}
    Available on gles and neither Windows nor webgl only.

    Fields§

    §wsi: WindowSystemInterface§flags: InstanceFlags§options: GlBackendOptions§inner: Mutex<Inner>

    Implementations§

    source§

    impl Instance

    source

    pub fn raw_display(&self) -> Display

    source

    pub fn egl_version(&self) -> (i32, i32)

    Returns the version of the EGL display.

    +}
    Available on gles and neither Windows nor webgl only.

    Fields§

    §wsi: WindowSystemInterface§flags: InstanceFlags§options: GlBackendOptions§inner: Mutex<Inner>

    Implementations§

    source§

    impl Instance

    source

    pub fn raw_display(&self) -> Display

    source

    pub fn egl_version(&self) -> (i32, i32)

    Returns the version of the EGL display.

    source

    pub fn egl_config(&self) -> Config

    Trait Implementations§

    source§

    impl DynResource for Instance

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl Instance for Instance

    source§

    type A = Api

    source§

    unsafe fn init(desc: &InstanceDescriptor<'_>) -> Result<Self, InstanceError>

    source§

    unsafe fn create_surface( &self, display_handle: RawDisplayHandle, @@ -29,7 +29,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/egl/struct.Surface.html b/doc/wgpu_hal/gles/egl/struct.Surface.html index d4f0bf7776dc..c3a09b41b730 100644 --- a/doc/wgpu_hal/gles/egl/struct.Surface.html +++ b/doc/wgpu_hal/gles/egl/struct.Surface.html @@ -40,7 +40,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/egl/struct.Swapchain.html b/doc/wgpu_hal/gles/egl/struct.Swapchain.html index 71c510adfd4b..8f6603a76a48 100644 --- a/doc/wgpu_hal/gles/egl/struct.Swapchain.html +++ b/doc/wgpu_hal/gles/egl/struct.Swapchain.html @@ -3,12 +3,12 @@ wl_window: Option<*mut c_void>, framebuffer: Framebuffer, renderbuffer: Renderbuffer, - extent: Extent3d, - format: TextureFormat, + extent: Extent3d, + format: TextureFormat, format_desc: TextureFormatDesc, - sample_type: TextureSampleType, -}
    Available on gles and neither Windows nor webgl only.

    Fields§

    §surface: Surface§wl_window: Option<*mut c_void>§framebuffer: Framebuffer§renderbuffer: Renderbuffer§extent: Extent3d

    Extent because the window lies

    -
    §format: TextureFormat§format_desc: TextureFormatDesc§sample_type: TextureSampleType

    Trait Implementations§

    source§

    impl Debug for Swapchain

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Swapchain

    §

    impl RefUnwindSafe for Swapchain

    §

    impl !Send for Swapchain

    §

    impl !Sync for Swapchain

    §

    impl Unpin for Swapchain

    §

    impl UnwindSafe for Swapchain

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + sample_type: TextureSampleType, +}
    Available on gles and neither Windows nor webgl only.

    Fields§

    §surface: Surface§wl_window: Option<*mut c_void>§framebuffer: Framebuffer§renderbuffer: Renderbuffer§extent: Extent3d

    Extent because the window lies

    +
    §format: TextureFormat§format_desc: TextureFormatDesc§sample_type: TextureSampleType

    Trait Implementations§

    source§

    impl Debug for Swapchain

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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.

    diff --git a/doc/wgpu_hal/gles/enum.BindingRegister.html b/doc/wgpu_hal/gles/enum.BindingRegister.html index 8f3e9832101b..1ba404e345c6 100644 --- a/doc/wgpu_hal/gles/enum.BindingRegister.html +++ b/doc/wgpu_hal/gles/enum.BindingRegister.html @@ -13,7 +13,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/enum.Command.html b/doc/wgpu_hal/gles/enum.Command.html index f9ef319833f8..4771def74054 100644 --- a/doc/wgpu_hal/gles/enum.Command.html +++ b/doc/wgpu_hal/gles/enum.Command.html @@ -11,7 +11,7 @@ topology: u32, index_type: u32, index_count: u32, - index_offset: BufferAddress, + index_offset: BufferAddress, base_vertex: i32, first_instance: u32, instance_count: u32, @@ -20,20 +20,20 @@ DrawIndirect { topology: u32, indirect_buf: Buffer, - indirect_offset: BufferAddress, + indirect_offset: BufferAddress, first_instance_location: Option<UniformLocation>, }, DrawIndexedIndirect { topology: u32, index_type: u32, indirect_buf: Buffer, - indirect_offset: BufferAddress, + indirect_offset: BufferAddress, first_instance_location: Option<UniformLocation>, }, Dispatch([u32; 3]), DispatchIndirect { indirect_buf: Buffer, - indirect_offset: BufferAddress, + indirect_offset: BufferAddress, }, ClearBuffer { dst: Buffer, @@ -59,13 +59,13 @@ src_target: u32, dst: Texture, dst_target: u32, - dst_format: TextureFormat, + dst_format: TextureFormat, copy: BufferTextureCopy, }, CopyTextureToBuffer { src: Texture, src_target: u32, - src_format: TextureFormat, + src_format: TextureFormat, dst: Buffer, dst_target: u32, copy: BufferTextureCopy, @@ -78,7 +78,7 @@ query_range: Range<u32>, dst: Buffer, dst_target: u32, - dst_offset: BufferAddress, + dst_offset: BufferAddress, }, ResetFramebuffer { is_default: bool, @@ -90,7 +90,7 @@ ResolveAttachment { attachment: u32, dst: TextureView, - size: Extent3d, + size: Extent3d, }, InvalidateAttachments(ArrayVec<u32, { _ }>), SetDrawColorBuffers(u8), @@ -123,7 +123,7 @@ ops: StencilOps, }, SetDepth(DepthState), - SetDepthBias(DepthBiasState), + SetDepthBias(DepthBiasState), ConfigureDepthStencil(FormatAspects), SetAlphaToCoverage(bool), SetVertexAttribute { @@ -170,7 +170,7 @@ uniform: PushConstantDesc, offset: u32, }, -}
    Available on gles only.

    Variants§

    §

    Draw

    Fields

    §topology: u32
    §first_vertex: u32
    §vertex_count: u32
    §first_instance: u32
    §instance_count: u32
    §first_instance_location: Option<UniformLocation>
    §

    DrawIndexed

    Fields

    §topology: u32
    §index_type: u32
    §index_count: u32
    §index_offset: BufferAddress
    §base_vertex: i32
    §first_instance: u32
    §instance_count: u32
    §first_instance_location: Option<UniformLocation>
    §

    DrawIndirect

    Fields

    §topology: u32
    §indirect_buf: Buffer
    §indirect_offset: BufferAddress
    §first_instance_location: Option<UniformLocation>
    §

    DrawIndexedIndirect

    Fields

    §topology: u32
    §index_type: u32
    §indirect_buf: Buffer
    §indirect_offset: BufferAddress
    §first_instance_location: Option<UniformLocation>
    §

    Dispatch([u32; 3])

    §

    DispatchIndirect

    Fields

    §indirect_buf: Buffer
    §indirect_offset: BufferAddress
    §

    ClearBuffer

    Fields

    §dst_target: u32
    §

    CopyBufferToBuffer

    Fields

    §src_target: u32
    §dst_target: u32
    §

    CopyTextureToTexture

    Fields

    §src: Texture
    §src_target: u32
    §dst: Texture
    §dst_target: u32
    §

    CopyBufferToTexture

    Fields

    §src_target: u32
    §dst: Texture
    §dst_target: u32
    §dst_format: TextureFormat
    §

    CopyTextureToBuffer

    Fields

    §src: Texture
    §src_target: u32
    §src_format: TextureFormat
    §dst_target: u32
    §

    SetIndexBuffer(Buffer)

    §

    BeginQuery(Query, u32)

    §

    EndQuery(u32)

    §

    TimestampQuery(Query)

    §

    CopyQueryResults

    Fields

    §query_range: Range<u32>
    §dst_target: u32
    §dst_offset: BufferAddress
    §

    ResetFramebuffer

    Fields

    §is_default: bool
    §

    BindAttachment

    Fields

    §attachment: u32
    §

    ResolveAttachment

    Fields

    §attachment: u32
    §size: Extent3d
    §

    InvalidateAttachments(ArrayVec<u32, { _ }>)

    §

    SetDrawColorBuffers(u8)

    §

    ClearColorF

    Fields

    §draw_buffer: u32
    §color: [f32; 4]
    §is_srgb: bool
    §

    ClearColorU(u32, [u32; 4])

    §

    ClearColorI(u32, [i32; 4])

    §

    ClearDepth(f32)

    §

    ClearStencil(u32)

    §

    ClearDepthAndStencil(f32, u32)

    §

    BufferBarrier(Buffer, BufferUses)

    §

    TextureBarrier(TextureUses)

    §

    SetViewport

    Fields

    §rect: Rect<i32>
    §depth: Range<f32>
    §

    SetScissor(Rect<i32>)

    §

    SetStencilFunc

    Fields

    §face: u32
    §function: u32
    §reference: u32
    §read_mask: u32
    §

    SetStencilOps

    Fields

    §face: u32
    §write_mask: u32
    §

    SetDepth(DepthState)

    §

    SetDepthBias(DepthBiasState)

    §

    ConfigureDepthStencil(FormatAspects)

    §

    SetAlphaToCoverage(bool)

    §

    SetVertexAttribute

    Fields

    §buffer: Option<Buffer>
    §buffer_desc: VertexBufferDesc
    §attribute_desc: AttributeDesc
    §

    UnsetVertexAttribute(u32)

    §

    SetVertexBuffer

    Fields

    §index: u32
    §buffer_desc: VertexBufferDesc
    §

    SetProgram(Program)

    §

    SetPrimitive(PrimitiveState)

    §

    SetBlendConstant([f32; 4])

    §

    SetColorTarget

    Fields

    §draw_buffer_index: Option<u32>
    §

    BindBuffer

    Fields

    §target: u32
    §slot: u32
    §buffer: Buffer
    §offset: i32
    §size: i32
    §

    BindSampler(u32, Option<Sampler>)

    §

    BindTexture

    Fields

    §slot: u32
    §texture: Texture
    §target: u32
    §mip_levels: Range<u32>
    §

    BindImage

    Fields

    §slot: u32
    §

    InsertDebugMarker(Range<u32>)

    §

    PushDebugGroup(Range<u32>)

    §

    PopDebugGroup

    §

    SetPushConstants

    Fields

    §offset: u32

    Offset from the start of the data_bytes

    +}
    Available on gles only.

    Variants§

    §

    Draw

    Fields

    §topology: u32
    §first_vertex: u32
    §vertex_count: u32
    §first_instance: u32
    §instance_count: u32
    §first_instance_location: Option<UniformLocation>
    §

    DrawIndexed

    Fields

    §topology: u32
    §index_type: u32
    §index_count: u32
    §index_offset: BufferAddress
    §base_vertex: i32
    §first_instance: u32
    §instance_count: u32
    §first_instance_location: Option<UniformLocation>
    §

    DrawIndirect

    Fields

    §topology: u32
    §indirect_buf: Buffer
    §indirect_offset: BufferAddress
    §first_instance_location: Option<UniformLocation>
    §

    DrawIndexedIndirect

    Fields

    §topology: u32
    §index_type: u32
    §indirect_buf: Buffer
    §indirect_offset: BufferAddress
    §first_instance_location: Option<UniformLocation>
    §

    Dispatch([u32; 3])

    §

    DispatchIndirect

    Fields

    §indirect_buf: Buffer
    §indirect_offset: BufferAddress
    §

    ClearBuffer

    Fields

    §dst_target: u32
    §

    CopyBufferToBuffer

    Fields

    §src_target: u32
    §dst_target: u32
    §

    CopyTextureToTexture

    Fields

    §src: Texture
    §src_target: u32
    §dst: Texture
    §dst_target: u32
    §

    CopyBufferToTexture

    Fields

    §src_target: u32
    §dst: Texture
    §dst_target: u32
    §dst_format: TextureFormat
    §

    CopyTextureToBuffer

    Fields

    §src: Texture
    §src_target: u32
    §src_format: TextureFormat
    §dst_target: u32
    §

    SetIndexBuffer(Buffer)

    §

    BeginQuery(Query, u32)

    §

    EndQuery(u32)

    §

    TimestampQuery(Query)

    §

    CopyQueryResults

    Fields

    §query_range: Range<u32>
    §dst_target: u32
    §dst_offset: BufferAddress
    §

    ResetFramebuffer

    Fields

    §is_default: bool
    §

    BindAttachment

    Fields

    §attachment: u32
    §

    ResolveAttachment

    Fields

    §attachment: u32
    §

    InvalidateAttachments(ArrayVec<u32, { _ }>)

    §

    SetDrawColorBuffers(u8)

    §

    ClearColorF

    Fields

    §draw_buffer: u32
    §color: [f32; 4]
    §is_srgb: bool
    §

    ClearColorU(u32, [u32; 4])

    §

    ClearColorI(u32, [i32; 4])

    §

    ClearDepth(f32)

    §

    ClearStencil(u32)

    §

    ClearDepthAndStencil(f32, u32)

    §

    BufferBarrier(Buffer, BufferUses)

    §

    TextureBarrier(TextureUses)

    §

    SetViewport

    Fields

    §rect: Rect<i32>
    §depth: Range<f32>
    §

    SetScissor(Rect<i32>)

    §

    SetStencilFunc

    Fields

    §face: u32
    §function: u32
    §reference: u32
    §read_mask: u32
    §

    SetStencilOps

    Fields

    §face: u32
    §write_mask: u32
    §

    SetDepth(DepthState)

    §

    SetDepthBias(DepthBiasState)

    §

    ConfigureDepthStencil(FormatAspects)

    §

    SetAlphaToCoverage(bool)

    §

    SetVertexAttribute

    Fields

    §buffer: Option<Buffer>
    §buffer_desc: VertexBufferDesc
    §attribute_desc: AttributeDesc
    §

    UnsetVertexAttribute(u32)

    §

    SetVertexBuffer

    Fields

    §index: u32
    §buffer_desc: VertexBufferDesc
    §

    SetProgram(Program)

    §

    SetPrimitive(PrimitiveState)

    §

    SetBlendConstant([f32; 4])

    §

    SetColorTarget

    Fields

    §draw_buffer_index: Option<u32>
    §

    BindBuffer

    Fields

    §target: u32
    §slot: u32
    §buffer: Buffer
    §offset: i32
    §size: i32
    §

    BindSampler(u32, Option<Sampler>)

    §

    BindTexture

    Fields

    §slot: u32
    §texture: Texture
    §target: u32
    §mip_levels: Range<u32>
    §

    BindImage

    Fields

    §slot: u32
    §

    InsertDebugMarker(Range<u32>)

    §

    PushDebugGroup(Range<u32>)

    §

    PopDebugGroup

    §

    SetPushConstants

    Fields

    §offset: u32

    Offset from the start of the data_bytes

    Trait Implementations§

    source§

    impl Debug for Command

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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 @@ -181,7 +181,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/enum.RawBinding.html b/doc/wgpu_hal/gles/enum.RawBinding.html index 1b1b70d0d21a..202cb6cbb195 100644 --- a/doc/wgpu_hal/gles/enum.RawBinding.html +++ b/doc/wgpu_hal/gles/enum.RawBinding.html @@ -22,7 +22,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/enum.TextureInner.html b/doc/wgpu_hal/gles/enum.TextureInner.html index 55c1542ae480..f324e0e64638 100644 --- a/doc/wgpu_hal/gles/enum.TextureInner.html +++ b/doc/wgpu_hal/gles/enum.TextureInner.html @@ -19,7 +19,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/enum.VertexAttribKind.html b/doc/wgpu_hal/gles/enum.VertexAttribKind.html index 7739660e1981..75058d9de7a6 100644 --- a/doc/wgpu_hal/gles/enum.VertexAttribKind.html +++ b/doc/wgpu_hal/gles/enum.VertexAttribKind.html @@ -13,7 +13,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/fence/struct.Fence.html b/doc/wgpu_hal/gles/fence/struct.Fence.html index 51422880216c..b1768176067c 100644 --- a/doc/wgpu_hal/gles/fence/struct.Fence.html +++ b/doc/wgpu_hal/gles/fence/struct.Fence.html @@ -1,8 +1,8 @@ Fence in wgpu_hal::gles::fence - Rust
    wgpu_hal::gles::fence

    Struct Fence

    source
    pub struct Fence {
         last_completed: AtomicFenceValue,
         pending: Vec<GLFence>,
    -    fence_mode: GlFenceBehavior,
    -}
    Available on gles only.

    Fields§

    §last_completed: AtomicFenceValue§pending: Vec<GLFence>§fence_mode: GlFenceBehavior

    Implementations§

    source§

    impl Fence

    source

    pub fn new(options: &GlBackendOptions) -> Self

    source

    pub fn signal( + fence_mode: GlFenceBehavior, +}
    Available on gles only.

    Fields§

    §last_completed: AtomicFenceValue§pending: Vec<GLFence>§fence_mode: GlFenceBehavior

    Implementations§

    source§

    impl Fence

    source

    pub fn new(options: &GlBackendOptions) -> Self

    source

    pub fn signal( &mut self, gl: &Context, value: FenceValue, @@ -21,7 +21,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.AccelerationStructure.html b/doc/wgpu_hal/gles/struct.AccelerationStructure.html index ae4804a42c3f..46fb1f2d1be2 100644 --- a/doc/wgpu_hal/gles/struct.AccelerationStructure.html +++ b/doc/wgpu_hal/gles/struct.AccelerationStructure.html @@ -8,7 +8,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.Adapter.html b/doc/wgpu_hal/gles/struct.Adapter.html index da5c8d0b7b45..633e5abf0963 100644 --- a/doc/wgpu_hal/gles/struct.Adapter.html +++ b/doc/wgpu_hal/gles/struct.Adapter.html @@ -2,7 +2,7 @@ shared: Arc<AdapterShared>, }
    Available on gles only.

    Fields§

    §shared: Arc<AdapterShared>

    Implementations§

    source§

    impl Adapter

    source

    pub unsafe fn new_external( fun: impl FnMut(&str) -> *const c_void, - options: GlBackendOptions, + options: GlBackendOptions, ) -> Option<ExposedAdapter<Api>>

    Available on neither Windows nor webgl.

    Creates a new external adapter using the specified loader function.

    §Safety

    Trait Implementations§

    source§

    impl Adapter for Adapter

    source§

    type A = Api

    source§

    unsafe fn open( &self, - features: Features, - _limits: &Limits, - _memory_hints: &MemoryHints, + features: Features, + _limits: &Limits, + _memory_hints: &MemoryHints, ) -> Result<OpenDevice<Api>, DeviceError>

    source§

    unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities

    Return the set of supported capabilities for a texture format.
    source§

    unsafe fn surface_capabilities( &self, surface: &Surface, -) -> Option<SurfaceCapabilities>

    Returns the capabilities of working with a specified surface. Read more
    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Creates a PresentationTimestamp using the adapter’s WSI.
    source§

    impl DynResource for Adapter

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl Send for Adapter

    Available on send_sync only.
    source§

    impl Sync for Adapter

    Available on send_sync only.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T

    Returns the capabilities of working with a specified surface. Read more
    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Creates a PresentationTimestamp using the adapter’s WSI.
    source§

    impl DynResource for Adapter

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl Send for Adapter

    Available on send_sync only.
    source§

    impl Sync for Adapter

    Available on send_sync only.

    Auto Trait Implementations§

    §

    impl Freeze for Adapter

    §

    impl !RefUnwindSafe for Adapter

    §

    impl Unpin for Adapter

    §

    impl !UnwindSafe for Adapter

    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<A> DynAdapter for A
    where A: Adapter + DynResource,

    source§

    unsafe fn open( &self, - features: Features, - limits: &Limits, - memory_hints: &MemoryHints, + features: Features, + limits: &Limits, + memory_hints: &MemoryHints, ) -> Result<DynOpenDevice, DeviceError>

    source§

    unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities

    source§

    unsafe fn surface_capabilities( &self, surface: &(dyn DynSurface + 'static), -) -> Option<SurfaceCapabilities>

    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Option<SurfaceCapabilities>
    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.AdapterContext.html b/doc/wgpu_hal/gles/struct.AdapterContext.html index 8a75d29336e0..db4487ff3e8f 100644 --- a/doc/wgpu_hal/gles/struct.AdapterContext.html +++ b/doc/wgpu_hal/gles/struct.AdapterContext.html @@ -31,7 +31,7 @@
    §Safety
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.AdapterShared.html b/doc/wgpu_hal/gles/struct.AdapterShared.html index f00a441b12be..35ba1098ff5e 100644 --- a/doc/wgpu_hal/gles/struct.AdapterShared.html +++ b/doc/wgpu_hal/gles/struct.AdapterShared.html @@ -1,15 +1,15 @@ AdapterShared in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct AdapterShared

    source
    struct AdapterShared {
         context: AdapterContext,
         private_caps: PrivateCapabilities,
    -    features: Features,
    +    features: Features,
         workarounds: Workarounds,
    -    options: GlBackendOptions,
    -    shading_language_version: Version,
    +    options: GlBackendOptions,
    +    shading_language_version: Version,
         next_shader_id: AtomicU32,
    -    program_cache: Mutex<FastHashMap<ProgramCacheKey, Result<Arc<PipelineInner>, PipelineError>>>,
    +    program_cache: Mutex<FastHashMap<ProgramCacheKey, Result<Arc<PipelineInner>, PipelineError>>>,
         es: bool,
         max_msaa_samples: i32,
    -}
    Available on gles only.

    Fields§

    §context: AdapterContext§private_caps: PrivateCapabilities§features: Features§workarounds: Workarounds§options: GlBackendOptions§shading_language_version: Version§next_shader_id: AtomicU32§program_cache: Mutex<FastHashMap<ProgramCacheKey, Result<Arc<PipelineInner>, PipelineError>>>§es: bool§max_msaa_samples: i32

    Result of gl.get_parameter_i32(glow::MAX_SAMPLES). +}

    Available on gles only.

    Fields§

    §context: AdapterContext§private_caps: PrivateCapabilities§features: Features§workarounds: Workarounds§options: GlBackendOptions§shading_language_version: Version§next_shader_id: AtomicU32§program_cache: Mutex<FastHashMap<ProgramCacheKey, Result<Arc<PipelineInner>, PipelineError>>>§es: bool§max_msaa_samples: i32

    Result of gl.get_parameter_i32(glow::MAX_SAMPLES). Cached here so it doesn’t need to be queried every time texture format capabilities are requested. (this has been shown to be a significant enough overhead)

    Implementations§

    source§

    impl AdapterShared

    source

    pub(super) unsafe fn get_buffer_sub_data( @@ -20,7 +20,7 @@ dst_data: &mut [u8], )

    source§

    impl AdapterShared

    source

    pub(super) fn describe_texture_format( &self, - texture_format: TextureFormat, + texture_format: TextureFormat, ) -> TextureFormatDesc

    Auto Trait Implementations§

    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 @@ -31,7 +31,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.Api.html b/doc/wgpu_hal/gles/struct.Api.html index 223a92fa2660..cf067da95bc5 100644 --- a/doc/wgpu_hal/gles/struct.Api.html +++ b/doc/wgpu_hal/gles/struct.Api.html @@ -10,7 +10,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.AttributeDesc.html b/doc/wgpu_hal/gles/struct.AttributeDesc.html index 7bafb0da8eac..e480f57a924d 100644 --- a/doc/wgpu_hal/gles/struct.AttributeDesc.html +++ b/doc/wgpu_hal/gles/struct.AttributeDesc.html @@ -15,7 +15,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.BindGroup.html b/doc/wgpu_hal/gles/struct.BindGroup.html index c49b21422675..1a8d032f3a38 100644 --- a/doc/wgpu_hal/gles/struct.BindGroup.html +++ b/doc/wgpu_hal/gles/struct.BindGroup.html @@ -10,7 +10,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.BindGroupLayout.html b/doc/wgpu_hal/gles/struct.BindGroupLayout.html index 094f2f897e8a..a9966755f75a 100644 --- a/doc/wgpu_hal/gles/struct.BindGroupLayout.html +++ b/doc/wgpu_hal/gles/struct.BindGroupLayout.html @@ -1,6 +1,6 @@ BindGroupLayout in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct BindGroupLayout

    source
    pub struct BindGroupLayout {
    -    entries: Arc<[BindGroupLayoutEntry]>,
    -}
    Available on gles only.

    Fields§

    §entries: Arc<[BindGroupLayoutEntry]>

    Trait Implementations§

    source§

    impl Debug for BindGroupLayout

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for BindGroupLayout

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynBindGroupLayout for BindGroupLayout

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + entries: Arc<[BindGroupLayoutEntry]>, +}
    Available on gles only.

    Fields§

    §entries: Arc<[BindGroupLayoutEntry]>

    Trait Implementations§

    source§

    impl Debug for BindGroupLayout

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for BindGroupLayout

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynBindGroupLayout for BindGroupLayout

    Auto Trait Implementations§

    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.

    @@ -10,7 +10,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.BindGroupLayoutInfo.html b/doc/wgpu_hal/gles/struct.BindGroupLayoutInfo.html index 90b8651f4268..13353dc5a018 100644 --- a/doc/wgpu_hal/gles/struct.BindGroupLayoutInfo.html +++ b/doc/wgpu_hal/gles/struct.BindGroupLayoutInfo.html @@ -1,7 +1,7 @@ BindGroupLayoutInfo in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct BindGroupLayoutInfo

    source
    struct BindGroupLayoutInfo {
    -    entries: Arc<[BindGroupLayoutEntry]>,
    +    entries: Arc<[BindGroupLayoutEntry]>,
         binding_to_slot: Box<[u8]>,
    -}
    Available on gles only.

    Fields§

    §entries: Arc<[BindGroupLayoutEntry]>§binding_to_slot: Box<[u8]>

    Mapping of resources, indexed by binding, into the whole layout space. +}

    Available on gles only.

    Fields§

    §entries: Arc<[BindGroupLayoutEntry]>§binding_to_slot: Box<[u8]>

    Mapping of resources, indexed by binding, into the whole layout space. For texture resources, the value is the texture slot index. For sampler resources, the value is the index of the sampler in the whole layout. For buffers, the value is the uniform or storage slot index. @@ -16,7 +16,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.BlendComponent.html b/doc/wgpu_hal/gles/struct.BlendComponent.html index afc05a8bb068..2df881c3bf1d 100644 --- a/doc/wgpu_hal/gles/struct.BlendComponent.html +++ b/doc/wgpu_hal/gles/struct.BlendComponent.html @@ -15,7 +15,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.BlendDesc.html b/doc/wgpu_hal/gles/struct.BlendDesc.html index c2dacdfded7d..a2dba7ffb3cf 100644 --- a/doc/wgpu_hal/gles/struct.BlendDesc.html +++ b/doc/wgpu_hal/gles/struct.BlendDesc.html @@ -14,7 +14,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.Buffer.html b/doc/wgpu_hal/gles/struct.Buffer.html index f3163942b4ab..674ef51e08c5 100644 --- a/doc/wgpu_hal/gles/struct.Buffer.html +++ b/doc/wgpu_hal/gles/struct.Buffer.html @@ -1,11 +1,11 @@ Buffer in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct Buffer

    source
    pub struct Buffer {
         raw: Option<Buffer>,
         target: u32,
    -    size: BufferAddress,
    +    size: BufferAddress,
         map_flags: u32,
         data: Option<Arc<Mutex<Vec<u8>>>>,
    -    offset_of_current_mapping: Arc<Mutex<BufferAddress>>,
    -}
    Available on gles only.

    Fields§

    §raw: Option<Buffer>§target: u32§size: BufferAddress§map_flags: u32§data: Option<Arc<Mutex<Vec<u8>>>>§offset_of_current_mapping: Arc<Mutex<BufferAddress>>

    Trait Implementations§

    source§

    impl Clone for Buffer

    source§

    fn clone(&self) -> Buffer

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Buffer

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for Buffer

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynBuffer for Buffer

    source§

    impl Send for Buffer

    Available on send_sync only.
    source§

    impl Sync for Buffer

    Available on send_sync only.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + offset_of_current_mapping: Arc<Mutex<BufferAddress>>, +}
    Available on gles only.

    Fields§

    §raw: Option<Buffer>§target: u32§size: BufferAddress§map_flags: u32§data: Option<Arc<Mutex<Vec<u8>>>>§offset_of_current_mapping: Arc<Mutex<BufferAddress>>

    Trait Implementations§

    source§

    impl Clone for Buffer

    source§

    fn clone(&self) -> Buffer

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Buffer

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for Buffer

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynBuffer for Buffer

    source§

    impl Send for Buffer

    Available on send_sync only.
    source§

    impl Sync for Buffer

    Available on send_sync only.

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -17,7 +17,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.BufferBinding.html b/doc/wgpu_hal/gles/struct.BufferBinding.html index d67aa95c9f1b..e22f85ef9fa5 100644 --- a/doc/wgpu_hal/gles/struct.BufferBinding.html +++ b/doc/wgpu_hal/gles/struct.BufferBinding.html @@ -1,7 +1,7 @@ BufferBinding in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct BufferBinding

    source
    struct BufferBinding {
         raw: Buffer,
    -    offset: BufferAddress,
    -}
    Available on gles only.

    Fields§

    §raw: Buffer§offset: BufferAddress

    Trait Implementations§

    source§

    impl Clone for BufferBinding

    source§

    fn clone(&self) -> BufferBinding

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BufferBinding

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + offset: BufferAddress, +}
    Available on gles only.

    Fields§

    §raw: Buffer§offset: BufferAddress

    Trait Implementations§

    source§

    impl Clone for BufferBinding

    source§

    fn clone(&self) -> BufferBinding

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BufferBinding

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -13,7 +13,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.ColorTargetDesc.html b/doc/wgpu_hal/gles/struct.ColorTargetDesc.html index cd49b4f9d802..564d477fbf46 100644 --- a/doc/wgpu_hal/gles/struct.ColorTargetDesc.html +++ b/doc/wgpu_hal/gles/struct.ColorTargetDesc.html @@ -1,7 +1,7 @@ ColorTargetDesc in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct ColorTargetDesc

    source
    struct ColorTargetDesc {
    -    mask: ColorWrites,
    +    mask: ColorWrites,
         blend: Option<BlendDesc>,
    -}
    Available on gles only.

    Fields§

    §mask: ColorWrites§blend: Option<BlendDesc>

    Trait Implementations§

    source§

    impl Clone for ColorTargetDesc

    source§

    fn clone(&self) -> ColorTargetDesc

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ColorTargetDesc

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Default for ColorTargetDesc

    source§

    fn default() -> ColorTargetDesc

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

    impl PartialEq for ColorTargetDesc

    source§

    fn eq(&self, other: &ColorTargetDesc) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +}
    Available on gles only.

    Fields§

    §mask: ColorWrites§blend: Option<BlendDesc>

    Trait Implementations§

    source§

    impl Clone for ColorTargetDesc

    source§

    fn clone(&self) -> ColorTargetDesc

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ColorTargetDesc

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Default for ColorTargetDesc

    source§

    fn default() -> ColorTargetDesc

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

    impl PartialEq for ColorTargetDesc

    source§

    fn eq(&self, other: &ColorTargetDesc) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    source§

    impl StructuralPartialEq for ColorTargetDesc

    Auto Trait Implementations§

    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 @@ -14,7 +14,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.CommandBuffer.html b/doc/wgpu_hal/gles/struct.CommandBuffer.html index 247b72b7d554..4befb71f0dc4 100644 --- a/doc/wgpu_hal/gles/struct.CommandBuffer.html +++ b/doc/wgpu_hal/gles/struct.CommandBuffer.html @@ -13,7 +13,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.CommandEncoder.html b/doc/wgpu_hal/gles/struct.CommandEncoder.html index 51021184e482..4db45ab7b509 100644 --- a/doc/wgpu_hal/gles/struct.CommandEncoder.html +++ b/doc/wgpu_hal/gles/struct.CommandEncoder.html @@ -2,8 +2,8 @@ cmd_buffer: CommandBuffer, state: State, private_caps: PrivateCapabilities, - counters: Arc<HalCounters>, -}
    Available on gles only.

    Fields§

    §cmd_buffer: CommandBuffer§state: State§private_caps: PrivateCapabilities§counters: Arc<HalCounters>

    Implementations§

    source§

    impl CommandEncoder

    source

    fn rebind_stencil_func(&mut self)

    source

    fn rebind_vertex_data(&mut self, first_instance: u32)

    source

    fn rebind_sampler_states(&mut self, dirty_textures: u32, dirty_samplers: u32)

    source

    fn prepare_draw(&mut self, first_instance: u32)

    source

    fn set_pipeline_inner(&mut self, inner: &PipelineInner)

    Trait Implementations§

    source§

    impl CommandEncoder for CommandEncoder

    source§

    type A = Api

    source§

    unsafe fn begin_encoding(&mut self, label: Label<'_>) -> Result<(), DeviceError>

    Begin encoding a new command buffer. Read more
    source§

    unsafe fn discard_encoding(&mut self)

    Discard the command list under construction. Read more
    source§

    unsafe fn end_encoding(&mut self) -> Result<CommandBuffer, DeviceError>

    Return a fresh CommandBuffer holding the recorded commands. Read more
    source§

    unsafe fn reset_all<I>(&mut self, _command_buffers: I)

    Reclaim all resources belonging to this CommandEncoder. Read more
    source§

    unsafe fn transition_buffers<'a, T>(&mut self, barriers: T)
    where + counters: Arc<HalCounters>, +}
    Available on gles only.

    Fields§

    §cmd_buffer: CommandBuffer§state: State§private_caps: PrivateCapabilities§counters: Arc<HalCounters>

    Implementations§

    source§

    impl CommandEncoder

    source

    fn rebind_stencil_func(&mut self)

    source

    fn rebind_vertex_data(&mut self, first_instance: u32)

    source

    fn rebind_sampler_states(&mut self, dirty_textures: u32, dirty_samplers: u32)

    source

    fn prepare_draw(&mut self, first_instance: u32)

    source

    fn set_pipeline_inner(&mut self, inner: &PipelineInner)

    Trait Implementations§

    source§

    impl CommandEncoder for CommandEncoder

    source§

    type A = Api

    source§

    unsafe fn begin_encoding(&mut self, label: Label<'_>) -> Result<(), DeviceError>

    Begin encoding a new command buffer. Read more
    source§

    unsafe fn discard_encoding(&mut self)

    Discard the command list under construction. Read more
    source§

    unsafe fn end_encoding(&mut self) -> Result<CommandBuffer, DeviceError>

    Return a fresh CommandBuffer holding the recorded commands. Read more
    source§

    unsafe fn reset_all<I>(&mut self, _command_buffers: I)

    Reclaim all resources belonging to this CommandEncoder. Read more
    source§

    unsafe fn transition_buffers<'a, T>(&mut self, barriers: T)
    where T: Iterator<Item = BufferBarrier<'a, Buffer>>,

    source§

    unsafe fn transition_textures<'a, T>(&mut self, barriers: T)
    where T: Iterator<Item = TextureBarrier<'a, Texture>>,

    source§

    unsafe fn clear_buffer(&mut self, buffer: &Buffer, range: MemoryRange)

    source§

    unsafe fn copy_buffer_to_buffer<T>( &mut self, @@ -44,8 +44,8 @@ set: &QuerySet, range: Range<u32>, buffer: &Buffer, - offset: BufferAddress, - _stride: BufferSize, + offset: BufferAddress, + _stride: BufferSize, )

    source§

    unsafe fn begin_render_pass( &mut self, desc: &RenderPassDescriptor<'_, QuerySet, TextureView>, @@ -54,17 +54,17 @@ layout: &PipelineLayout, index: u32, group: &BindGroup, - dynamic_offsets: &[DynamicOffset], + dynamic_offsets: &[DynamicOffset], )

    Sets the bind group at index to group. Read more
    source§

    unsafe fn set_push_constants( &mut self, _layout: &PipelineLayout, - _stages: ShaderStages, + _stages: ShaderStages, offset_bytes: u32, data: &[u32], )

    Sets a range in push constant data. Read more
    source§

    unsafe fn insert_debug_marker(&mut self, label: &str)

    source§

    unsafe fn begin_debug_marker(&mut self, group_label: &str)

    source§

    unsafe fn end_debug_marker(&mut self)

    source§

    unsafe fn set_render_pipeline(&mut self, pipeline: &RenderPipeline)

    source§

    unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, Buffer>, - format: IndexFormat, + format: IndexFormat, )

    source§

    unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, @@ -85,31 +85,31 @@ )

    source§

    unsafe fn draw_indirect( &mut self, buffer: &Buffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source§

    unsafe fn draw_indexed_indirect( &mut self, buffer: &Buffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source§

    unsafe fn draw_indirect_count( &mut self, _buffer: &Buffer, - _offset: BufferAddress, + _offset: BufferAddress, _count_buffer: &Buffer, - _count_offset: BufferAddress, + _count_offset: BufferAddress, _max_count: u32, )

    source§

    unsafe fn draw_indexed_indirect_count( &mut self, _buffer: &Buffer, - _offset: BufferAddress, + _offset: BufferAddress, _count_buffer: &Buffer, - _count_offset: BufferAddress, + _count_offset: BufferAddress, _max_count: u32, )

    source§

    unsafe fn begin_compute_pass( &mut self, desc: &ComputePassDescriptor<'_, QuerySet>, -)

    Begin a new compute pass, clearing all active bindings. Read more
    source§

    unsafe fn end_compute_pass(&mut self)

    End the current compute pass. Read more
    source§

    unsafe fn set_compute_pipeline(&mut self, pipeline: &ComputePipeline)

    source§

    unsafe fn dispatch(&mut self, count: [u32; 3])

    source§

    unsafe fn dispatch_indirect(&mut self, buffer: &Buffer, offset: BufferAddress)

    source§

    unsafe fn build_acceleration_structures<'a, T>( +)

    Begin a new compute pass, clearing all active bindings. Read more
    source§

    unsafe fn end_compute_pass(&mut self)

    End the current compute pass. Read more
    source§

    unsafe fn set_compute_pipeline(&mut self, pipeline: &ComputePipeline)

    source§

    unsafe fn dispatch(&mut self, count: [u32; 3])

    source§

    unsafe fn dispatch_indirect(&mut self, buffer: &Buffer, offset: BufferAddress)

    source§

    unsafe fn build_acceleration_structures<'a, T>( &mut self, _descriptor_count: u32, _descriptors: T, @@ -172,7 +172,7 @@ )

    source§

    unsafe fn set_push_constants( &mut self, layout: &(dyn DynPipelineLayout + 'static), - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], )

    source§

    unsafe fn insert_debug_marker(&mut self, label: &str)

    source§

    unsafe fn begin_debug_marker(&mut self, group_label: &str)

    source§

    unsafe fn end_debug_marker(&mut self)

    source§

    unsafe fn begin_query(&mut self, set: &(dyn DynQuerySet + 'static), index: u32)

    source§

    unsafe fn end_query(&mut self, set: &(dyn DynQuerySet + 'static), index: u32)

    source§

    unsafe fn write_timestamp( @@ -246,7 +246,7 @@ )

    source§

    unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, dyn DynBuffer>, - format: IndexFormat, + format: IndexFormat, )

    source§

    unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, @@ -264,7 +264,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.ComputePipeline.html b/doc/wgpu_hal/gles/struct.ComputePipeline.html index 1a5b395df070..16e35803e951 100644 --- a/doc/wgpu_hal/gles/struct.ComputePipeline.html +++ b/doc/wgpu_hal/gles/struct.ComputePipeline.html @@ -10,7 +10,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.DepthState.html b/doc/wgpu_hal/gles/struct.DepthState.html index 4e430fb8e04e..2bd44c15f615 100644 --- a/doc/wgpu_hal/gles/struct.DepthState.html +++ b/doc/wgpu_hal/gles/struct.DepthState.html @@ -13,7 +13,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.Device.html b/doc/wgpu_hal/gles/struct.Device.html index 72b836aba038..45bff292fdcb 100644 --- a/doc/wgpu_hal/gles/struct.Device.html +++ b/doc/wgpu_hal/gles/struct.Device.html @@ -2,8 +2,8 @@ shared: Arc<AdapterShared>, main_vao: VertexArray, render_doc: RenderDoc, - counters: Arc<HalCounters>, -}
    Available on gles only.

    Fields§

    §shared: Arc<AdapterShared>§main_vao: VertexArray§render_doc: RenderDoc
    Available on native and crate feature renderdoc only.
    §counters: Arc<HalCounters>

    Implementations§

    source§

    impl Device

    source

    pub fn context(&self) -> &AdapterContext

    Available on neither Windows nor webgl.

    Returns the underlying EGL context.

    + counters: Arc<HalCounters>, +}
    Available on gles only.

    Fields§

    §shared: Arc<AdapterShared>§main_vao: VertexArray§render_doc: RenderDoc
    Available on native and crate feature renderdoc only.
    §counters: Arc<HalCounters>

    Implementations§

    source§

    impl Device

    source

    pub fn context(&self) -> &AdapterContext

    Available on neither Windows nor webgl.

    Returns the underlying EGL context.

    source§

    impl Device

    source

    pub unsafe fn texture_from_raw( &self, name: NonZeroU32, @@ -31,28 +31,28 @@

    source

    unsafe fn compile_shader( gl: &Context, shader: &str, - naga_stage: ShaderStage, + naga_stage: ShaderStage, label: Option<&str>, ) -> Result<Shader, PipelineError>

    source

    fn create_shader( gl: &Context, - naga_stage: ShaderStage, + naga_stage: ShaderStage, stage: &ProgrammableStage<'_, ShaderModule>, context: CompilationContext<'_>, program: Program, ) -> Result<Shader, PipelineError>

    source

    unsafe fn create_pipeline<'a>( &self, gl: &Context, - shaders: ArrayVec<(ShaderStage, &'a ProgrammableStage<'a, ShaderModule>), { crate::MAX_CONCURRENT_SHADER_STAGES }>, + shaders: ArrayVec<(ShaderStage, &'a ProgrammableStage<'a, ShaderModule>), { crate::MAX_CONCURRENT_SHADER_STAGES }>, layout: &PipelineLayout, label: Option<&str>, multiview: Option<NonZeroU32>, ) -> Result<Arc<PipelineInner>, PipelineError>

    source

    unsafe fn create_program<'a>( gl: &Context, - shaders: ArrayVec<(ShaderStage, &'a ProgrammableStage<'a, ShaderModule>), { crate::MAX_CONCURRENT_SHADER_STAGES }>, + shaders: ArrayVec<(ShaderStage, &'a ProgrammableStage<'a, ShaderModule>), { crate::MAX_CONCURRENT_SHADER_STAGES }>, layout: &PipelineLayout, label: Option<&str>, multiview: Option<NonZeroU32>, - glsl_version: Version, + glsl_version: Version, private_caps: PrivateCapabilities, ) -> Result<Arc<PipelineInner>, PipelineError>

    Trait Implementations§

    source§

    impl Device for Device

    source§

    type A = Api

    source§

    unsafe fn create_buffer( &self, @@ -99,7 +99,7 @@ _: &PipelineCacheDescriptor<'_>, ) -> Result<PipelineCache, PipelineCacheError>

    source§

    unsafe fn destroy_pipeline_cache(&self, _: PipelineCache)

    source§

    unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Label<'_>>, + desc: &QuerySetDescriptor<Label<'_>>, ) -> Result<QuerySet, DeviceError>

    source§

    unsafe fn destroy_query_set(&self, set: QuerySet)

    source§

    unsafe fn create_fence(&self) -> Result<Fence, DeviceError>

    source§

    unsafe fn destroy_fence(&self, fence: Fence)

    source§

    unsafe fn get_fence_value( &self, fence: &Fence, @@ -117,13 +117,13 @@ ) -> AccelerationStructureBuildSizes

    source§

    unsafe fn get_acceleration_structure_device_address( &self, _acceleration_structure: &AccelerationStructure, -) -> BufferAddress

    source§

    unsafe fn destroy_acceleration_structure( +) -> BufferAddress

    source§

    unsafe fn destroy_acceleration_structure( &self, _acceleration_structure: AccelerationStructure, -)

    source§

    fn tlas_instance_to_bytes(&self, _instance: TlasInstance) -> Vec<u8>

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]>

    source§

    unsafe fn pipeline_cache_get_data( +)

    source§

    fn tlas_instance_to_bytes(&self, _instance: TlasInstance) -> Vec<u8>

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]>

    source§

    unsafe fn pipeline_cache_get_data( &self, cache: &<Self::A as Api>::PipelineCache, -) -> Option<Vec<u8>>

    source§

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    source§

    impl Drop for Device

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    source§

    impl DynResource for Device

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl Send for Device

    Available on send_sync only.
    source§

    impl Sync for Device

    Available on send_sync only.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl Drop for Device

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    source§

    impl DynResource for Device

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl Send for Device

    Available on send_sync only.
    source§

    impl Sync for Device

    Available on send_sync only.

    Auto Trait Implementations§

    §

    impl Freeze for Device

    §

    impl !RefUnwindSafe for Device

    §

    impl Unpin for Device

    §

    impl !UnwindSafe for Device

    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<D> DynDevice for D
    where @@ -188,7 +188,7 @@ pipeline_cache: Box<dyn DynPipelineCache>, )

    source§

    unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Option<&str>>, + desc: &QuerySetDescriptor<Option<&str>>, ) -> Result<Box<dyn DynQuerySet>, DeviceError>

    source§

    unsafe fn destroy_query_set(&self, query_set: Box<dyn DynQuerySet>)

    source§

    unsafe fn create_fence(&self) -> Result<Box<dyn DynFence>, DeviceError>

    source§

    unsafe fn destroy_fence(&self, fence: Box<dyn DynFence>)

    source§

    unsafe fn get_fence_value( &self, fence: &(dyn DynFence + 'static), @@ -212,14 +212,14 @@ ) -> u64

    source§

    unsafe fn destroy_acceleration_structure( &self, acceleration_structure: Box<dyn DynAccelerationStructure>, -)

    source§

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.Fence.html b/doc/wgpu_hal/gles/struct.Fence.html index 89aa17643dd9..be26ac026107 100644 --- a/doc/wgpu_hal/gles/struct.Fence.html +++ b/doc/wgpu_hal/gles/struct.Fence.html @@ -1,8 +1,8 @@ Fence in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct Fence

    source
    pub struct Fence {
         last_completed: AtomicFenceValue,
         pending: Vec<GLFence>,
    -    fence_mode: GlFenceBehavior,
    -}
    Available on gles only.

    Fields§

    §last_completed: AtomicFenceValue§pending: Vec<GLFence>§fence_mode: GlFenceBehavior

    Implementations§

    source§

    impl Fence

    source

    pub fn new(options: &GlBackendOptions) -> Self

    source

    pub fn signal( + fence_mode: GlFenceBehavior, +}
    Available on gles only.

    Fields§

    §last_completed: AtomicFenceValue§pending: Vec<GLFence>§fence_mode: GlFenceBehavior

    Implementations§

    source§

    impl Fence

    source

    pub fn new(options: &GlBackendOptions) -> Self

    source

    pub fn signal( &mut self, gl: &Context, value: FenceValue, @@ -21,7 +21,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.ImageBinding.html b/doc/wgpu_hal/gles/struct.ImageBinding.html index 4a0df728b82b..aadde007c4c9 100644 --- a/doc/wgpu_hal/gles/struct.ImageBinding.html +++ b/doc/wgpu_hal/gles/struct.ImageBinding.html @@ -16,7 +16,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.PipelineCache.html b/doc/wgpu_hal/gles/struct.PipelineCache.html index 2b432604fd87..ba88632c3c56 100644 --- a/doc/wgpu_hal/gles/struct.PipelineCache.html +++ b/doc/wgpu_hal/gles/struct.PipelineCache.html @@ -8,7 +8,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.PipelineInner.html b/doc/wgpu_hal/gles/struct.PipelineInner.html index 2b4b6e56733a..9d1bb8523079 100644 --- a/doc/wgpu_hal/gles/struct.PipelineInner.html +++ b/doc/wgpu_hal/gles/struct.PipelineInner.html @@ -13,7 +13,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.PipelineLayout.html b/doc/wgpu_hal/gles/struct.PipelineLayout.html index 8f3d1127544b..1aa3dc695f87 100644 --- a/doc/wgpu_hal/gles/struct.PipelineLayout.html +++ b/doc/wgpu_hal/gles/struct.PipelineLayout.html @@ -1,7 +1,7 @@ PipelineLayout in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct PipelineLayout

    source
    pub struct PipelineLayout {
         group_infos: Box<[BindGroupLayoutInfo]>,
    -    naga_options: Options,
    -}
    Available on gles only.

    Fields§

    §group_infos: Box<[BindGroupLayoutInfo]>§naga_options: Options

    Implementations§

    source§

    impl PipelineLayout

    source

    fn get_slot(&self, br: &ResourceBinding) -> u8

    Trait Implementations§

    source§

    impl Debug for PipelineLayout

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for PipelineLayout

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynPipelineLayout for PipelineLayout

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + naga_options: Options, +}
    Available on gles only.

    Fields§

    §group_infos: Box<[BindGroupLayoutInfo]>§naga_options: Options

    Implementations§

    Trait Implementations§

    source§

    impl Debug for PipelineLayout

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for PipelineLayout

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynPipelineLayout for PipelineLayout

    Auto Trait Implementations§

    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.

    @@ -11,7 +11,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.PrimitiveState.html b/doc/wgpu_hal/gles/struct.PrimitiveState.html index 0d40a1b5e269..e76b6188b192 100644 --- a/doc/wgpu_hal/gles/struct.PrimitiveState.html +++ b/doc/wgpu_hal/gles/struct.PrimitiveState.html @@ -16,7 +16,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.PrivateCapabilities.html b/doc/wgpu_hal/gles/struct.PrivateCapabilities.html index 92010693817a..0051c2856a32 100644 --- a/doc/wgpu_hal/gles/struct.PrivateCapabilities.html +++ b/doc/wgpu_hal/gles/struct.PrivateCapabilities.html @@ -92,7 +92,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.ProgramCacheKey.html b/doc/wgpu_hal/gles/struct.ProgramCacheKey.html index f9556eac9ff4..21a99a970f6f 100644 --- a/doc/wgpu_hal/gles/struct.ProgramCacheKey.html +++ b/doc/wgpu_hal/gles/struct.ProgramCacheKey.html @@ -18,7 +18,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.ProgramStage.html b/doc/wgpu_hal/gles/struct.ProgramStage.html index 0a089834ba3c..a0e9926dee4d 100644 --- a/doc/wgpu_hal/gles/struct.ProgramStage.html +++ b/doc/wgpu_hal/gles/struct.ProgramStage.html @@ -1,9 +1,9 @@ ProgramStage in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct ProgramStage

    source
    struct ProgramStage {
    -    naga_stage: ShaderStage,
    +    naga_stage: ShaderStage,
         shader_id: u32,
         entry_point: String,
         zero_initialize_workgroup_memory: bool,
    -}
    Available on gles only.

    Fields§

    §naga_stage: ShaderStage§shader_id: u32§entry_point: String§zero_initialize_workgroup_memory: bool

    Trait Implementations§

    source§

    impl Hash for ProgramStage

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +}
    Available on gles only.

    Fields§

    §naga_stage: ShaderStage§shader_id: u32§entry_point: String§zero_initialize_workgroup_memory: bool

    Trait Implementations§

    source§

    impl Hash for ProgramStage

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for ProgramStage

    source§

    fn eq(&self, other: &ProgramStage) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    source§

    impl Eq for ProgramStage

    source§

    impl StructuralPartialEq for ProgramStage

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where @@ -20,7 +20,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.PushConstantDesc.html b/doc/wgpu_hal/gles/struct.PushConstantDesc.html index c8a8e6abee8f..2b017d4a5460 100644 --- a/doc/wgpu_hal/gles/struct.PushConstantDesc.html +++ b/doc/wgpu_hal/gles/struct.PushConstantDesc.html @@ -1,9 +1,9 @@ PushConstantDesc in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct PushConstantDesc

    source
    struct PushConstantDesc {
         location: UniformLocation,
    -    ty: TypeInner,
    +    ty: TypeInner,
         offset: u32,
         size_bytes: u32,
    -}
    Available on gles only.

    Fields§

    §location: UniformLocation§ty: TypeInner§offset: u32§size_bytes: u32

    Trait Implementations§

    source§

    impl Clone for PushConstantDesc

    source§

    fn clone(&self) -> PushConstantDesc

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PushConstantDesc

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Send for PushConstantDesc

    Available on send_sync only.
    source§

    impl Sync for PushConstantDesc

    Available on send_sync only.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}
    Available on gles only.

    Fields§

    §location: UniformLocation§ty: TypeInner§offset: u32§size_bytes: u32

    Trait Implementations§

    source§

    impl Clone for PushConstantDesc

    source§

    fn clone(&self) -> PushConstantDesc

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PushConstantDesc

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Send for PushConstantDesc

    Available on send_sync only.
    source§

    impl Sync for PushConstantDesc

    Available on send_sync only.

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -15,7 +15,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.QuerySet.html b/doc/wgpu_hal/gles/struct.QuerySet.html index 30104ad19dc3..67a5201c4dbe 100644 --- a/doc/wgpu_hal/gles/struct.QuerySet.html +++ b/doc/wgpu_hal/gles/struct.QuerySet.html @@ -11,7 +11,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.Queue.html b/doc/wgpu_hal/gles/struct.Queue.html index e4a8154a63fb..2476bef97a29 100644 --- a/doc/wgpu_hal/gles/struct.Queue.html +++ b/doc/wgpu_hal/gles/struct.Queue.html @@ -1,6 +1,6 @@ Queue in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct Queue

    source
    pub struct Queue {
         shared: Arc<AdapterShared>,
    -    features: Features,
    +    features: Features,
         draw_fbo: Framebuffer,
         copy_fbo: Framebuffer,
         shader_clear_program: Option<ShaderClearProgram>,
    @@ -8,7 +8,7 @@
         temp_query_results: Mutex<Vec<u64>>,
         draw_buffer_count: AtomicU8,
         current_index_buffer: Mutex<Option<Buffer>>,
    -}
    Available on gles only.

    Fields§

    §shared: Arc<AdapterShared>§features: Features§draw_fbo: Framebuffer§copy_fbo: Framebuffer§shader_clear_program: Option<ShaderClearProgram>

    Shader program used to clear the screen for Workarounds::MESA_I915_SRGB_SHADER_CLEAR +}

    Available on gles only.

    Fields§

    §shared: Arc<AdapterShared>§features: Features§draw_fbo: Framebuffer§copy_fbo: Framebuffer§shader_clear_program: Option<ShaderClearProgram>

    Shader program used to clear the screen for Workarounds::MESA_I915_SRGB_SHADER_CLEAR devices.

    §zero_buffer: Buffer

    Keep a reasonably large buffer filled with zeroes, so that we can implement ClearBuffer of zeroes by copying from it.

    @@ -59,7 +59,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.RenderPipeline.html b/doc/wgpu_hal/gles/struct.RenderPipeline.html index 06e0918c75ac..b9bc13debe69 100644 --- a/doc/wgpu_hal/gles/struct.RenderPipeline.html +++ b/doc/wgpu_hal/gles/struct.RenderPipeline.html @@ -1,14 +1,14 @@ RenderPipeline in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct RenderPipeline

    source
    pub struct RenderPipeline {
         inner: Arc<PipelineInner>,
    -    primitive: PrimitiveState,
    +    primitive: PrimitiveState,
         vertex_buffers: Box<[VertexBufferDesc]>,
         vertex_attributes: Box<[AttributeDesc]>,
         color_targets: Box<[ColorTargetDesc]>,
         depth: Option<DepthState>,
    -    depth_bias: DepthBiasState,
    +    depth_bias: DepthBiasState,
         stencil: Option<StencilState>,
         alpha_to_coverage_enabled: bool,
    -}
    Available on gles only.

    Fields§

    §inner: Arc<PipelineInner>§primitive: PrimitiveState§vertex_buffers: Box<[VertexBufferDesc]>§vertex_attributes: Box<[AttributeDesc]>§color_targets: Box<[ColorTargetDesc]>§depth: Option<DepthState>§depth_bias: DepthBiasState§stencil: Option<StencilState>§alpha_to_coverage_enabled: bool

    Trait Implementations§

    source§

    impl Debug for RenderPipeline

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for RenderPipeline

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynRenderPipeline for RenderPipeline

    source§

    impl Send for RenderPipeline

    Available on send_sync only.
    source§

    impl Sync for RenderPipeline

    Available on send_sync only.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}
    Available on gles only.

    Fields§

    §inner: Arc<PipelineInner>§primitive: PrimitiveState§vertex_buffers: Box<[VertexBufferDesc]>§vertex_attributes: Box<[AttributeDesc]>§color_targets: Box<[ColorTargetDesc]>§depth: Option<DepthState>§depth_bias: DepthBiasState§stencil: Option<StencilState>§alpha_to_coverage_enabled: bool

    Trait Implementations§

    source§

    impl Debug for RenderPipeline

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for RenderPipeline

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynRenderPipeline for RenderPipeline

    source§

    impl Send for RenderPipeline

    Available on send_sync only.
    source§

    impl Sync for RenderPipeline

    Available on send_sync only.

    Auto Trait Implementations§

    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.

    @@ -18,7 +18,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.Sampler.html b/doc/wgpu_hal/gles/struct.Sampler.html index 770d8f91e344..70efc4e823c6 100644 --- a/doc/wgpu_hal/gles/struct.Sampler.html +++ b/doc/wgpu_hal/gles/struct.Sampler.html @@ -10,7 +10,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.ShaderClearProgram.html b/doc/wgpu_hal/gles/struct.ShaderClearProgram.html index c4e83b151b35..6e0f85178398 100644 --- a/doc/wgpu_hal/gles/struct.ShaderClearProgram.html +++ b/doc/wgpu_hal/gles/struct.ShaderClearProgram.html @@ -11,7 +11,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.ShaderModule.html b/doc/wgpu_hal/gles/struct.ShaderModule.html index 969b5978f244..24b2eb60fb6e 100644 --- a/doc/wgpu_hal/gles/struct.ShaderModule.html +++ b/doc/wgpu_hal/gles/struct.ShaderModule.html @@ -12,7 +12,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.StencilOps.html b/doc/wgpu_hal/gles/struct.StencilOps.html index 7c1332e29560..1b7622d469d2 100644 --- a/doc/wgpu_hal/gles/struct.StencilOps.html +++ b/doc/wgpu_hal/gles/struct.StencilOps.html @@ -15,7 +15,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.StencilSide.html b/doc/wgpu_hal/gles/struct.StencilSide.html index 0dce28cc76b6..866f03eb9e5b 100644 --- a/doc/wgpu_hal/gles/struct.StencilSide.html +++ b/doc/wgpu_hal/gles/struct.StencilSide.html @@ -17,7 +17,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.StencilState.html b/doc/wgpu_hal/gles/struct.StencilState.html index 31803d794f61..b7b10f3fac56 100644 --- a/doc/wgpu_hal/gles/struct.StencilState.html +++ b/doc/wgpu_hal/gles/struct.StencilState.html @@ -13,7 +13,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.Texture.html b/doc/wgpu_hal/gles/struct.Texture.html index 5a80adbc4922..b7b28e605f03 100644 --- a/doc/wgpu_hal/gles/struct.Texture.html +++ b/doc/wgpu_hal/gles/struct.Texture.html @@ -3,12 +3,12 @@ pub drop_guard: Option<DropGuard>, pub mip_level_count: u32, pub array_layer_count: u32, - pub format: TextureFormat, + pub format: TextureFormat, pub format_desc: TextureFormatDesc, pub copy_size: CopyExtent, -}
    Available on gles only.

    Fields§

    §inner: TextureInner§drop_guard: Option<DropGuard>§mip_level_count: u32§array_layer_count: u32§format: TextureFormat§format_desc: TextureFormatDesc§copy_size: CopyExtent

    Implementations§

    source§

    impl Texture

    source

    pub fn default_framebuffer(format: TextureFormat) -> Self

    source

    fn get_info_from_desc(desc: &TextureDescriptor<'_>) -> u32

    Returns the target, whether the image is 3d and whether the image is a cubemap.

    +}
    Available on gles only.

    Fields§

    §inner: TextureInner§drop_guard: Option<DropGuard>§mip_level_count: u32§array_layer_count: u32§format: TextureFormat§format_desc: TextureFormatDesc§copy_size: CopyExtent

    Implementations§

    source§

    impl Texture

    source

    pub fn default_framebuffer(format: TextureFormat) -> Self

    source

    fn get_info_from_desc(desc: &TextureDescriptor<'_>) -> u32

    Returns the target, whether the image is 3d and whether the image is a cubemap.

    source

    fn log_failing_target_heuristics( - view_dimension: TextureViewDimension, + view_dimension: TextureViewDimension, target: u32, )

    More information can be found in issues #1614 and #1574

    Trait Implementations§

    source§

    impl Borrow<dyn DynTexture> for Texture

    source§

    fn borrow(&self) -> &dyn DynTexture

    Immutably borrows from an owned value. Read more
    source§

    impl Debug for Texture

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for Texture

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynSurfaceTexture for Texture

    source§

    impl DynTexture for Texture

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where @@ -21,7 +21,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.TextureFormatDesc.html b/doc/wgpu_hal/gles/struct.TextureFormatDesc.html index c554483dc26a..872e042b188f 100644 --- a/doc/wgpu_hal/gles/struct.TextureFormatDesc.html +++ b/doc/wgpu_hal/gles/struct.TextureFormatDesc.html @@ -14,7 +14,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.TextureView.html b/doc/wgpu_hal/gles/struct.TextureView.html index 062d314b23e2..3148ea9d6e6d 100644 --- a/doc/wgpu_hal/gles/struct.TextureView.html +++ b/doc/wgpu_hal/gles/struct.TextureView.html @@ -3,8 +3,8 @@ aspects: FormatAspects, mip_levels: Range<u32>, array_layers: Range<u32>, - format: TextureFormat, -}
    Available on gles only.

    Fields§

    §inner: TextureInner§aspects: FormatAspects§mip_levels: Range<u32>§array_layers: Range<u32>§format: TextureFormat

    Trait Implementations§

    source§

    impl Clone for TextureView

    source§

    fn clone(&self) -> TextureView

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for TextureView

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for TextureView

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynTextureView for TextureView

    Auto Trait Implementations§

    §

    impl Freeze for TextureView

    §

    impl RefUnwindSafe for TextureView

    §

    impl Send for TextureView

    §

    impl Sync for TextureView

    §

    impl Unpin for TextureView

    §

    impl UnwindSafe for TextureView

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + format: TextureFormat, +}
    Available on gles only.

    Fields§

    §inner: TextureInner§aspects: FormatAspects§mip_levels: Range<u32>§array_layers: Range<u32>§format: TextureFormat

    Trait Implementations§

    source§

    impl Clone for TextureView

    source§

    fn clone(&self) -> TextureView

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for TextureView

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for TextureView

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynTextureView for TextureView

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -16,7 +16,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.VertexBufferDesc.html b/doc/wgpu_hal/gles/struct.VertexBufferDesc.html index d423d4cd481f..58d809fe2a6d 100644 --- a/doc/wgpu_hal/gles/struct.VertexBufferDesc.html +++ b/doc/wgpu_hal/gles/struct.VertexBufferDesc.html @@ -1,7 +1,7 @@ VertexBufferDesc in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Struct VertexBufferDesc

    source
    struct VertexBufferDesc {
    -    step: VertexStepMode,
    +    step: VertexStepMode,
         stride: u32,
    -}
    Available on gles only.

    Fields§

    §step: VertexStepMode§stride: u32

    Trait Implementations§

    source§

    impl Clone for VertexBufferDesc

    source§

    fn clone(&self) -> VertexBufferDesc

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for VertexBufferDesc

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Default for VertexBufferDesc

    source§

    fn default() -> VertexBufferDesc

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

    impl PartialEq for VertexBufferDesc

    source§

    fn eq(&self, other: &VertexBufferDesc) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +}
    Available on gles only.

    Fields§

    §step: VertexStepMode§stride: u32

    Trait Implementations§

    source§

    impl Clone for VertexBufferDesc

    source§

    fn clone(&self) -> VertexBufferDesc

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for VertexBufferDesc

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Default for VertexBufferDesc

    source§

    fn default() -> VertexBufferDesc

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

    impl PartialEq for VertexBufferDesc

    source§

    fn eq(&self, other: &VertexBufferDesc) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    source§

    impl StructuralPartialEq for VertexBufferDesc

    Auto Trait Implementations§

    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 @@ -14,7 +14,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.VertexFormatDesc.html b/doc/wgpu_hal/gles/struct.VertexFormatDesc.html index cdbdb1f0e7ee..7b44c8a58f24 100644 --- a/doc/wgpu_hal/gles/struct.VertexFormatDesc.html +++ b/doc/wgpu_hal/gles/struct.VertexFormatDesc.html @@ -14,7 +14,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/struct.Workarounds.html b/doc/wgpu_hal/gles/struct.Workarounds.html index b5795949f3c5..3a47a441f004 100644 --- a/doc/wgpu_hal/gles/struct.Workarounds.html +++ b/doc/wgpu_hal/gles/struct.Workarounds.html @@ -75,7 +75,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/gles/type.ProgramCache.html b/doc/wgpu_hal/gles/type.ProgramCache.html index 4bd1b6500d92..7c92a68ef7ae 100644 --- a/doc/wgpu_hal/gles/type.ProgramCache.html +++ b/doc/wgpu_hal/gles/type.ProgramCache.html @@ -1 +1 @@ -ProgramCache in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Type Alias ProgramCache

    source
    type ProgramCache = FastHashMap<ProgramCacheKey, Result<Arc<PipelineInner>, PipelineError>>;
    Available on gles only.

    Aliased Type§

    struct ProgramCache { /* private fields */ }
    \ No newline at end of file +ProgramCache in wgpu_hal::gles - Rust
    wgpu_hal::gles

    Type Alias ProgramCache

    source
    type ProgramCache = FastHashMap<ProgramCacheKey, Result<Arc<PipelineInner>, PipelineError>>;
    Available on gles only.

    Aliased Type§

    struct ProgramCache { /* private fields */ }
    \ No newline at end of file diff --git a/doc/wgpu_hal/index.html b/doc/wgpu_hal/index.html index 5e982e71bf35..a90ec8e081ea 100644 --- a/doc/wgpu_hal/index.html +++ b/doc/wgpu_hal/index.html @@ -96,7 +96,7 @@

    §< available. See the gles module documentation for details.

    You can see what capabilities an adapter is missing by checking the -DownlevelCapabilities in ExposedAdapter::capabilities, available +DownlevelCapabilities in ExposedAdapter::capabilities, available from Instance::enumerate_adapters.

    The API is generally designed to fit the primary backends better than the secondary backends, so the latter may impose more overhead.

    diff --git a/doc/wgpu_hal/struct.AccelerationStructureAABBs.html b/doc/wgpu_hal/struct.AccelerationStructureAABBs.html index ad87ec22ae6f..84e9637e3df7 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureAABBs.html +++ b/doc/wgpu_hal/struct.AccelerationStructureAABBs.html @@ -2,12 +2,12 @@ pub buffer: Option<&'a B>, pub offset: u32, pub count: u32, - pub stride: BufferAddress, + pub stride: BufferAddress, pub flags: AccelerationStructureGeometryFlags, }
    Expand description
    • offset - offset in bytes
    -

    Fields§

    §buffer: Option<&'a B>§offset: u32§count: u32§stride: BufferAddress§flags: AccelerationStructureGeometryFlags

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBuffer + ?Sized> Clone for AccelerationStructureAABBs<'a, B>

    source§

    fn clone(&self) -> AccelerationStructureAABBs<'a, B>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBuffer + ?Sized> Debug for AccelerationStructureAABBs<'a, B>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B> Freeze for AccelerationStructureAABBs<'a, B>
    where +

    Fields§

    §buffer: Option<&'a B>§offset: u32§count: u32§stride: BufferAddress§flags: AccelerationStructureGeometryFlags

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBuffer + ?Sized> Clone for AccelerationStructureAABBs<'a, B>

    source§

    fn clone(&self) -> AccelerationStructureAABBs<'a, B>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBuffer + ?Sized> Debug for AccelerationStructureAABBs<'a, B>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B> Freeze for AccelerationStructureAABBs<'a, B>
    where B: ?Sized,

    §

    impl<'a, B> RefUnwindSafe for AccelerationStructureAABBs<'a, B>
    where B: RefUnwindSafe + ?Sized,

    §

    impl<'a, B> Send for AccelerationStructureAABBs<'a, B>
    where B: ?Sized,

    §

    impl<'a, B> Sync for AccelerationStructureAABBs<'a, B>
    where @@ -25,7 +25,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureBarrier.html b/doc/wgpu_hal/struct.AccelerationStructureBarrier.html index 7ab6cd5be010..37456db9a62c 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureBarrier.html +++ b/doc/wgpu_hal/struct.AccelerationStructureBarrier.html @@ -12,7 +12,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureBuildFlags.html b/doc/wgpu_hal/struct.AccelerationStructureBuildFlags.html index 7707a355a023..c3db18d00e32 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureBuildFlags.html +++ b/doc/wgpu_hal/struct.AccelerationStructureBuildFlags.html @@ -1,95 +1,95 @@ -AccelerationStructureBuildFlags in wgpu_hal - Rust
    wgpu_hal

    Struct AccelerationStructureBuildFlags

    pub struct AccelerationStructureBuildFlags(pub(crate) <AccelerationStructureFlags as PublicFlags>::Internal);
    Expand description

    Flags for acceleration structures

    -

    Tuple Fields§

    §0: <AccelerationStructureFlags as PublicFlags>::Internal

    Implementations§

    §

    impl AccelerationStructureFlags

    pub const ALLOW_UPDATE: AccelerationStructureFlags = _

    Allow for incremental updates (no change in size), currently this is unimplemented +AccelerationStructureBuildFlags in wgpu_hal - Rust

    wgpu_hal

    Struct AccelerationStructureBuildFlags

    source
    pub struct AccelerationStructureBuildFlags(pub(crate) <AccelerationStructureFlags as PublicFlags>::Internal);
    Expand description

    Flags for acceleration structures

    +

    Tuple Fields§

    §0: <AccelerationStructureFlags as PublicFlags>::Internal

    Implementations§

    source§

    impl AccelerationStructureFlags

    source

    pub const ALLOW_UPDATE: AccelerationStructureFlags = _

    Allow for incremental updates (no change in size), currently this is unimplemented and will build as normal (this is fine, update vs build should be unnoticeable)

    -

    pub const ALLOW_COMPACTION: AccelerationStructureFlags = _

    Allow the acceleration structure to be compacted in a copy operation, the function +

    source

    pub const ALLOW_COMPACTION: AccelerationStructureFlags = _

    Allow the acceleration structure to be compacted in a copy operation, the function to compact is not currently implemented.

    -

    pub const PREFER_FAST_TRACE: AccelerationStructureFlags = _

    Optimize for fast ray tracing performance, recommended if the geometry is unlikely +

    source

    pub const PREFER_FAST_TRACE: AccelerationStructureFlags = _

    Optimize for fast ray tracing performance, recommended if the geometry is unlikely to change (e.g. in a game: non-interactive scene geometry)

    -

    pub const PREFER_FAST_BUILD: AccelerationStructureFlags = _

    Optimize for fast build time, recommended if geometry is likely to change frequently +

    source

    pub const PREFER_FAST_BUILD: AccelerationStructureFlags = _

    Optimize for fast build time, recommended if geometry is likely to change frequently (e.g. in a game: player model).

    -

    pub const LOW_MEMORY: AccelerationStructureFlags = _

    Optimize for low memory footprint (both while building and in the output BLAS).

    -
    §

    impl AccelerationStructureFlags

    pub const fn empty() -> AccelerationStructureFlags

    Get a flags value with all bits unset.

    -

    pub const fn all() -> AccelerationStructureFlags

    Get a flags value with all known bits set.

    -

    pub const fn bits(&self) -> u8

    Get the underlying bits value.

    +
    source

    pub const LOW_MEMORY: AccelerationStructureFlags = _

    Optimize for low memory footprint (both while building and in the output BLAS).

    +
    source§

    impl AccelerationStructureFlags

    source

    pub const fn empty() -> AccelerationStructureFlags

    Get a flags value with all bits unset.

    +
    source

    pub const fn all() -> AccelerationStructureFlags

    Get a flags value with all known bits set.

    +
    source

    pub const fn bits(&self) -> u8

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -

    pub const fn from_bits(bits: u8) -> Option<AccelerationStructureFlags>

    Convert from a bits value.

    +
    source

    pub const fn from_bits(bits: u8) -> Option<AccelerationStructureFlags>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -

    pub const fn from_bits_truncate(bits: u8) -> AccelerationStructureFlags

    Convert from a bits value, unsetting any unknown bits.

    -

    pub const fn from_bits_retain(bits: u8) -> AccelerationStructureFlags

    Convert from a bits value exactly.

    -

    pub fn from_name(name: &str) -> Option<AccelerationStructureFlags>

    Get a flags value with the bits of a flag with the given name set.

    +
    source

    pub const fn from_bits_truncate(bits: u8) -> AccelerationStructureFlags

    Convert from a bits value, unsetting any unknown bits.

    +
    source

    pub const fn from_bits_retain(bits: u8) -> AccelerationStructureFlags

    Convert from a bits value exactly.

    +
    source

    pub fn from_name(name: &str) -> Option<AccelerationStructureFlags>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -

    pub const fn intersects(&self, other: AccelerationStructureFlags) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -

    pub const fn contains(&self, other: AccelerationStructureFlags) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -

    pub fn insert(&mut self, other: AccelerationStructureFlags)

    The bitwise or (|) of the bits in two flags values.

    -

    pub fn remove(&mut self, other: AccelerationStructureFlags)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    source

    pub const fn intersects(&self, other: AccelerationStructureFlags) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    +
    source

    pub const fn contains(&self, other: AccelerationStructureFlags) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    source

    pub fn insert(&mut self, other: AccelerationStructureFlags)

    The bitwise or (|) of the bits in two flags values.

    +
    source

    pub fn remove(&mut self, other: AccelerationStructureFlags)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -

    pub fn toggle(&mut self, other: AccelerationStructureFlags)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -

    pub fn set(&mut self, other: AccelerationStructureFlags, value: bool)

    Call insert when value is true or remove when value is false.

    -

    pub const fn intersection( +

    source

    pub fn toggle(&mut self, other: AccelerationStructureFlags)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    source

    pub fn set(&mut self, other: AccelerationStructureFlags, value: bool)

    Call insert when value is true or remove when value is false.

    +
    source

    pub const fn intersection( self, other: AccelerationStructureFlags, ) -> AccelerationStructureFlags

    The bitwise and (&) of the bits in two flags values.

    -

    pub const fn union( +

    source

    pub const fn union( self, other: AccelerationStructureFlags, ) -> AccelerationStructureFlags

    The bitwise or (|) of the bits in two flags values.

    -

    pub const fn difference( +

    source

    pub const fn difference( self, other: AccelerationStructureFlags, ) -> AccelerationStructureFlags

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -

    pub const fn symmetric_difference( +

    source

    pub const fn symmetric_difference( self, other: AccelerationStructureFlags, ) -> AccelerationStructureFlags

    The bitwise exclusive-or (^) of the bits in two flags values.

    -

    pub const fn complement(self) -> AccelerationStructureFlags

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    §

    impl AccelerationStructureFlags

    pub const fn iter(&self) -> Iter<AccelerationStructureFlags>

    Yield a set of contained flags values.

    +
    source

    pub const fn complement(self) -> AccelerationStructureFlags

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    source§

    impl AccelerationStructureFlags

    source

    pub const fn iter(&self) -> Iter<AccelerationStructureFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -

    pub const fn iter_names(&self) -> IterNames<AccelerationStructureFlags>

    Yield a set of contained named flags values.

    +
    source

    pub const fn iter_names(&self) -> IterNames<AccelerationStructureFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    §

    impl Binary for AccelerationStructureFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl BitAnd for AccelerationStructureFlags

    §

    fn bitand(self, other: AccelerationStructureFlags) -> AccelerationStructureFlags

    The bitwise and (&) of the bits in two flags values.

    -
    §

    type Output = AccelerationStructureFlags

    The resulting type after applying the & operator.
    §

    impl BitAndAssign for AccelerationStructureFlags

    §

    fn bitand_assign(&mut self, other: AccelerationStructureFlags)

    The bitwise and (&) of the bits in two flags values.

    -
    §

    impl BitOr for AccelerationStructureFlags

    §

    fn bitor(self, other: AccelerationStructureFlags) -> AccelerationStructureFlags

    The bitwise or (|) of the bits in two flags values.

    -
    §

    type Output = AccelerationStructureFlags

    The resulting type after applying the | operator.
    §

    impl BitOrAssign for AccelerationStructureFlags

    §

    fn bitor_assign(&mut self, other: AccelerationStructureFlags)

    The bitwise or (|) of the bits in two flags values.

    -
    §

    impl BitXor for AccelerationStructureFlags

    §

    fn bitxor(self, other: AccelerationStructureFlags) -> AccelerationStructureFlags

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    §

    type Output = AccelerationStructureFlags

    The resulting type after applying the ^ operator.
    §

    impl BitXorAssign for AccelerationStructureFlags

    §

    fn bitxor_assign(&mut self, other: AccelerationStructureFlags)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    §

    impl Clone for AccelerationStructureFlags

    §

    fn clone(&self) -> AccelerationStructureFlags

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for AccelerationStructureFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for AccelerationStructureFlags

    §

    fn deserialize<__D>( +

    Trait Implementations§

    source§

    impl Binary for AccelerationStructureFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl BitAnd for AccelerationStructureFlags

    source§

    fn bitand(self, other: AccelerationStructureFlags) -> AccelerationStructureFlags

    The bitwise and (&) of the bits in two flags values.

    +
    source§

    type Output = AccelerationStructureFlags

    The resulting type after applying the & operator.
    source§

    impl BitAndAssign for AccelerationStructureFlags

    source§

    fn bitand_assign(&mut self, other: AccelerationStructureFlags)

    The bitwise and (&) of the bits in two flags values.

    +
    source§

    impl BitOr for AccelerationStructureFlags

    source§

    fn bitor(self, other: AccelerationStructureFlags) -> AccelerationStructureFlags

    The bitwise or (|) of the bits in two flags values.

    +
    source§

    type Output = AccelerationStructureFlags

    The resulting type after applying the | operator.
    source§

    impl BitOrAssign for AccelerationStructureFlags

    source§

    fn bitor_assign(&mut self, other: AccelerationStructureFlags)

    The bitwise or (|) of the bits in two flags values.

    +
    source§

    impl BitXor for AccelerationStructureFlags

    source§

    fn bitxor(self, other: AccelerationStructureFlags) -> AccelerationStructureFlags

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    source§

    type Output = AccelerationStructureFlags

    The resulting type after applying the ^ operator.
    source§

    impl BitXorAssign for AccelerationStructureFlags

    source§

    fn bitxor_assign(&mut self, other: AccelerationStructureFlags)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    source§

    impl Clone for AccelerationStructureFlags

    source§

    fn clone(&self) -> AccelerationStructureFlags

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for AccelerationStructureFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for AccelerationStructureFlags

    source§

    fn deserialize<__D>( __deserializer: __D, ) -> Result<AccelerationStructureFlags, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl Extend<AccelerationStructureFlags> for AccelerationStructureFlags

    §

    fn extend<T>(&mut self, iterator: T)
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Extend<AccelerationStructureFlags> for AccelerationStructureFlags

    source§

    fn extend<T>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Flags for AccelerationStructureFlags

    §

    const FLAGS: &'static [Flag<AccelerationStructureFlags>] = _

    The set of defined flags.
    §

    type Bits = u8

    The underlying bits type.
    §

    fn bits(&self) -> u8

    Get the underlying bits value. Read more
    §

    fn from_bits_retain(bits: u8) -> AccelerationStructureFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn contains_unknown_bits(&self) -> bool

    This method will return true if any unknown bits are set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    source§

    impl Flags for AccelerationStructureFlags

    source§

    const FLAGS: &'static [Flag<AccelerationStructureFlags>] = _

    The set of defined flags.
    source§

    type Bits = u8

    The underlying bits type.
    source§

    fn bits(&self) -> u8

    Get the underlying bits value. Read more
    source§

    fn from_bits_retain(bits: u8) -> AccelerationStructureFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn contains_unknown_bits(&self) -> bool

    This method will return true if any unknown bits are set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn truncate(&mut self)
    where Self: Sized,

    Remove any unknown bits from the flags.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    §

    impl FromIterator<AccelerationStructureFlags> for AccelerationStructureFlags

    §

    fn from_iter<T>(iterator: T) -> AccelerationStructureFlags
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    source§

    impl FromIterator<AccelerationStructureFlags> for AccelerationStructureFlags

    source§

    fn from_iter<T>(iterator: T) -> AccelerationStructureFlags

    The bitwise or (|) of the bits in each flags value.

    -
    §

    impl Hash for AccelerationStructureFlags

    §

    fn hash<__H>(&self, state: &mut __H)
    where +

    source§

    impl Hash for AccelerationStructureFlags

    source§

    fn hash<__H>(&self, state: &mut __H)
    where __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl IntoIterator for AccelerationStructureFlags

    §

    type Item = AccelerationStructureFlags

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<AccelerationStructureFlags>

    Which kind of iterator are we turning this into?
    §

    fn into_iter(self) -> <AccelerationStructureFlags as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for AccelerationStructureFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Not for AccelerationStructureFlags

    §

    fn not(self) -> AccelerationStructureFlags

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    §

    type Output = AccelerationStructureFlags

    The resulting type after applying the ! operator.
    §

    impl Octal for AccelerationStructureFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for AccelerationStructureFlags

    §

    fn eq(&self, other: &AccelerationStructureFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    §

    impl Serialize for AccelerationStructureFlags

    §

    fn serialize<__S>( + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl IntoIterator for AccelerationStructureFlags

    source§

    type Item = AccelerationStructureFlags

    The type of the elements being iterated over.
    source§

    type IntoIter = Iter<AccelerationStructureFlags>

    Which kind of iterator are we turning this into?
    source§

    fn into_iter(self) -> <AccelerationStructureFlags as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    source§

    impl LowerHex for AccelerationStructureFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Not for AccelerationStructureFlags

    source§

    fn not(self) -> AccelerationStructureFlags

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    source§

    type Output = AccelerationStructureFlags

    The resulting type after applying the ! operator.
    source§

    impl Octal for AccelerationStructureFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl PartialEq for AccelerationStructureFlags

    source§

    fn eq(&self, other: &AccelerationStructureFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for AccelerationStructureFlags

    source§

    fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl Sub for AccelerationStructureFlags

    §

    fn sub(self, other: AccelerationStructureFlags) -> AccelerationStructureFlags

    The intersection of a source flags value with the complement of a target flags value (&!).

    + __S: Serializer,
    Serialize this value into the given Serde serializer. Read more
    source§

    impl Sub for AccelerationStructureFlags

    source§

    fn sub(self, other: AccelerationStructureFlags) -> AccelerationStructureFlags

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    §

    type Output = AccelerationStructureFlags

    The resulting type after applying the - operator.
    §

    impl SubAssign for AccelerationStructureFlags

    §

    fn sub_assign(&mut self, other: AccelerationStructureFlags)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    source§

    type Output = AccelerationStructureFlags

    The resulting type after applying the - operator.
    source§

    impl SubAssign for AccelerationStructureFlags

    source§

    fn sub_assign(&mut self, other: AccelerationStructureFlags)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    §

    impl UpperHex for AccelerationStructureFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Copy for AccelerationStructureFlags

    §

    impl Eq for AccelerationStructureFlags

    §

    impl StructuralPartialEq for AccelerationStructureFlags

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    source§

    impl UpperHex for AccelerationStructureFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for AccelerationStructureFlags

    source§

    impl Eq for AccelerationStructureFlags

    source§

    impl StructuralPartialEq for AccelerationStructureFlags

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -106,7 +106,7 @@ T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: for<'de> Deserialize<'de>,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureBuildSizes.html b/doc/wgpu_hal/struct.AccelerationStructureBuildSizes.html index 9fce1e98953e..d5ab8d434ff8 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureBuildSizes.html +++ b/doc/wgpu_hal/struct.AccelerationStructureBuildSizes.html @@ -1,9 +1,9 @@ AccelerationStructureBuildSizes in wgpu_hal - Rust
    wgpu_hal

    Struct AccelerationStructureBuildSizes

    source
    pub struct AccelerationStructureBuildSizes {
    -    pub acceleration_structure_size: BufferAddress,
    -    pub update_scratch_size: BufferAddress,
    -    pub build_scratch_size: BufferAddress,
    +    pub acceleration_structure_size: BufferAddress,
    +    pub update_scratch_size: BufferAddress,
    +    pub build_scratch_size: BufferAddress,
     }
    Expand description

    Information of the required size for a corresponding entries struct (+ flags)

    -

    Fields§

    §acceleration_structure_size: BufferAddress§update_scratch_size: BufferAddress§build_scratch_size: BufferAddress

    Trait Implementations§

    source§

    impl Clone for AccelerationStructureBuildSizes

    source§

    fn clone(&self) -> AccelerationStructureBuildSizes

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for AccelerationStructureBuildSizes

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Default for AccelerationStructureBuildSizes

    source§

    fn default() -> AccelerationStructureBuildSizes

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

    impl PartialEq for AccelerationStructureBuildSizes

    source§

    fn eq(&self, other: &AccelerationStructureBuildSizes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +

    Fields§

    §acceleration_structure_size: BufferAddress§update_scratch_size: BufferAddress§build_scratch_size: BufferAddress

    Trait Implementations§

    source§

    impl Clone for AccelerationStructureBuildSizes

    source§

    fn clone(&self) -> AccelerationStructureBuildSizes

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for AccelerationStructureBuildSizes

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Default for AccelerationStructureBuildSizes

    source§

    fn default() -> AccelerationStructureBuildSizes

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

    impl PartialEq for AccelerationStructureBuildSizes

    source§

    fn eq(&self, other: &AccelerationStructureBuildSizes) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for AccelerationStructureBuildSizes

    source§

    impl Eq for AccelerationStructureBuildSizes

    source§

    impl StructuralPartialEq for AccelerationStructureBuildSizes

    Auto Trait Implementations§

    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 @@ -20,7 +20,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureDescriptor.html b/doc/wgpu_hal/struct.AccelerationStructureDescriptor.html index 0c7cf6d9d048..595fb7965f70 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureDescriptor.html +++ b/doc/wgpu_hal/struct.AccelerationStructureDescriptor.html @@ -1,8 +1,8 @@ AccelerationStructureDescriptor in wgpu_hal - Rust
    wgpu_hal

    Struct AccelerationStructureDescriptor

    source
    pub struct AccelerationStructureDescriptor<'a> {
         pub label: Label<'a>,
    -    pub size: BufferAddress,
    +    pub size: BufferAddress,
         pub format: AccelerationStructureFormat,
    -}

    Fields§

    §label: Label<'a>§size: BufferAddress§format: AccelerationStructureFormat

    Trait Implementations§

    source§

    impl<'a> Clone for AccelerationStructureDescriptor<'a>

    source§

    fn clone(&self) -> AccelerationStructureDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for AccelerationStructureDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Fields§

    §label: Label<'a>§size: BufferAddress§format: AccelerationStructureFormat

    Trait Implementations§

    source§

    impl<'a> Clone for AccelerationStructureDescriptor<'a>

    source§

    fn clone(&self) -> AccelerationStructureDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for AccelerationStructureDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -14,7 +14,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureGeometryFlags.html b/doc/wgpu_hal/struct.AccelerationStructureGeometryFlags.html index 1f303e641f42..70b367f9a109 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureGeometryFlags.html +++ b/doc/wgpu_hal/struct.AccelerationStructureGeometryFlags.html @@ -1,112 +1,112 @@ -AccelerationStructureGeometryFlags in wgpu_hal - Rust
    wgpu_hal

    Struct AccelerationStructureGeometryFlags

    pub struct AccelerationStructureGeometryFlags(pub(crate) <AccelerationStructureGeometryFlags as PublicFlags>::Internal);
    Expand description

    Flags for acceleration structure geometries

    -

    Tuple Fields§

    §0: <AccelerationStructureGeometryFlags as PublicFlags>::Internal

    Implementations§

    §

    impl AccelerationStructureGeometryFlags

    pub const OPAQUE: AccelerationStructureGeometryFlags = _

    Is OPAQUE (is there no alpha test) recommended as currently in naga there is no +AccelerationStructureGeometryFlags in wgpu_hal - Rust

    wgpu_hal

    Struct AccelerationStructureGeometryFlags

    source
    pub struct AccelerationStructureGeometryFlags(pub(crate) <AccelerationStructureGeometryFlags as PublicFlags>::Internal);
    Expand description

    Flags for acceleration structure geometries

    +

    Tuple Fields§

    §0: <AccelerationStructureGeometryFlags as PublicFlags>::Internal

    Implementations§

    source§

    impl AccelerationStructureGeometryFlags

    source

    pub const OPAQUE: AccelerationStructureGeometryFlags = _

    Is OPAQUE (is there no alpha test) recommended as currently in naga there is no candidate intersections yet so currently BLASes without this flag will not have hits. Not enabling this makes the BLAS unable to be interacted with in WGSL.

    -

    pub const NO_DUPLICATE_ANY_HIT_INVOCATION: AccelerationStructureGeometryFlags = _

    NO_DUPLICATE_ANY_HIT_INVOCATION, not useful unless using hal with wgpu, ray-tracing +

    source

    pub const NO_DUPLICATE_ANY_HIT_INVOCATION: AccelerationStructureGeometryFlags = _

    NO_DUPLICATE_ANY_HIT_INVOCATION, not useful unless using hal with wgpu, ray-tracing pipelines are not supported in wgpu so any-hit shaders do not exist. For when any-hit shaders are implemented (or experienced users who combine this with an underlying library: for any primitive (triangle or AABB) multiple any-hit shaders sometimes may be invoked (especially in AABBs like a sphere), if this flag in present only one hit on a primitive may invoke an any-hit shader.

    -
    §

    impl AccelerationStructureGeometryFlags

    pub const fn empty() -> AccelerationStructureGeometryFlags

    Get a flags value with all bits unset.

    -

    pub const fn all() -> AccelerationStructureGeometryFlags

    Get a flags value with all known bits set.

    -

    pub const fn bits(&self) -> u8

    Get the underlying bits value.

    +
    source§

    impl AccelerationStructureGeometryFlags

    source

    pub const fn empty() -> AccelerationStructureGeometryFlags

    Get a flags value with all bits unset.

    +
    source

    pub const fn all() -> AccelerationStructureGeometryFlags

    Get a flags value with all known bits set.

    +
    source

    pub const fn bits(&self) -> u8

    Get the underlying bits value.

    The returned value is exactly the bits set in this flags value.

    -

    pub const fn from_bits(bits: u8) -> Option<AccelerationStructureGeometryFlags>

    Convert from a bits value.

    +
    source

    pub const fn from_bits(bits: u8) -> Option<AccelerationStructureGeometryFlags>

    Convert from a bits value.

    This method will return None if any unknown bits are set.

    -

    pub const fn from_bits_truncate(bits: u8) -> AccelerationStructureGeometryFlags

    Convert from a bits value, unsetting any unknown bits.

    -

    pub const fn from_bits_retain(bits: u8) -> AccelerationStructureGeometryFlags

    Convert from a bits value exactly.

    -

    pub fn from_name(name: &str) -> Option<AccelerationStructureGeometryFlags>

    Get a flags value with the bits of a flag with the given name set.

    +
    source

    pub const fn from_bits_truncate(bits: u8) -> AccelerationStructureGeometryFlags

    Convert from a bits value, unsetting any unknown bits.

    +
    source

    pub const fn from_bits_retain(bits: u8) -> AccelerationStructureGeometryFlags

    Convert from a bits value exactly.

    +
    source

    pub fn from_name(name: &str) -> Option<AccelerationStructureGeometryFlags>

    Get a flags value with the bits of a flag with the given name set.

    This method will return None if name is empty or doesn’t correspond to any named flag.

    -

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    -

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    -

    pub const fn intersects( +

    source

    pub const fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.

    +
    source

    pub const fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.

    +
    source

    pub const fn intersects( &self, other: AccelerationStructureGeometryFlags, ) -> bool

    Whether any set bits in a source flags value are also set in a target flags value.

    -

    pub const fn contains(&self, other: AccelerationStructureGeometryFlags) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    -

    pub fn insert(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise or (|) of the bits in two flags values.

    -

    pub fn remove(&mut self, other: AccelerationStructureGeometryFlags)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    source

    pub const fn contains(&self, other: AccelerationStructureGeometryFlags) -> bool

    Whether all set bits in a source flags value are also set in a target flags value.

    +
    source

    pub fn insert(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise or (|) of the bits in two flags values.

    +
    source

    pub fn remove(&mut self, other: AccelerationStructureGeometryFlags)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. remove won’t truncate other, but the ! operator will.

    -

    pub fn toggle(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -

    pub fn set(&mut self, other: AccelerationStructureGeometryFlags, value: bool)

    Call insert when value is true or remove when value is false.

    -

    pub const fn intersection( +

    source

    pub fn toggle(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    source

    pub fn set(&mut self, other: AccelerationStructureGeometryFlags, value: bool)

    Call insert when value is true or remove when value is false.

    +
    source

    pub const fn intersection( self, other: AccelerationStructureGeometryFlags, ) -> AccelerationStructureGeometryFlags

    The bitwise and (&) of the bits in two flags values.

    -

    pub const fn union( +

    source

    pub const fn union( self, other: AccelerationStructureGeometryFlags, ) -> AccelerationStructureGeometryFlags

    The bitwise or (|) of the bits in two flags values.

    -

    pub const fn difference( +

    source

    pub const fn difference( self, other: AccelerationStructureGeometryFlags, ) -> AccelerationStructureGeometryFlags

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -

    pub const fn symmetric_difference( +

    source

    pub const fn symmetric_difference( self, other: AccelerationStructureGeometryFlags, ) -> AccelerationStructureGeometryFlags

    The bitwise exclusive-or (^) of the bits in two flags values.

    -

    pub const fn complement(self) -> AccelerationStructureGeometryFlags

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    §

    impl AccelerationStructureGeometryFlags

    pub const fn iter(&self) -> Iter<AccelerationStructureGeometryFlags>

    Yield a set of contained flags values.

    +
    source

    pub const fn complement(self) -> AccelerationStructureGeometryFlags

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    source§

    impl AccelerationStructureGeometryFlags

    source

    pub const fn iter(&self) -> Iter<AccelerationStructureGeometryFlags>

    Yield a set of contained flags values.

    Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.

    -

    pub const fn iter_names(&self) -> IterNames<AccelerationStructureGeometryFlags>

    Yield a set of contained named flags values.

    +
    source

    pub const fn iter_names(&self) -> IterNames<AccelerationStructureGeometryFlags>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -

    Trait Implementations§

    §

    impl Binary for AccelerationStructureGeometryFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl BitAnd for AccelerationStructureGeometryFlags

    §

    fn bitand( +

    Trait Implementations§

    source§

    impl Binary for AccelerationStructureGeometryFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl BitAnd for AccelerationStructureGeometryFlags

    source§

    fn bitand( self, other: AccelerationStructureGeometryFlags, ) -> AccelerationStructureGeometryFlags

    The bitwise and (&) of the bits in two flags values.

    -
    §

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the & operator.
    §

    impl BitAndAssign for AccelerationStructureGeometryFlags

    §

    fn bitand_assign(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise and (&) of the bits in two flags values.

    -
    §

    impl BitOr for AccelerationStructureGeometryFlags

    §

    fn bitor( +

    source§

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the & operator.
    source§

    impl BitAndAssign for AccelerationStructureGeometryFlags

    source§

    fn bitand_assign(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise and (&) of the bits in two flags values.

    +
    source§

    impl BitOr for AccelerationStructureGeometryFlags

    source§

    fn bitor( self, other: AccelerationStructureGeometryFlags, ) -> AccelerationStructureGeometryFlags

    The bitwise or (|) of the bits in two flags values.

    -
    §

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the | operator.
    §

    impl BitOrAssign for AccelerationStructureGeometryFlags

    §

    fn bitor_assign(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise or (|) of the bits in two flags values.

    -
    §

    impl BitXor for AccelerationStructureGeometryFlags

    §

    fn bitxor( +

    source§

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the | operator.
    source§

    impl BitOrAssign for AccelerationStructureGeometryFlags

    source§

    fn bitor_assign(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise or (|) of the bits in two flags values.

    +
    source§

    impl BitXor for AccelerationStructureGeometryFlags

    source§

    fn bitxor( self, other: AccelerationStructureGeometryFlags, ) -> AccelerationStructureGeometryFlags

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    §

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the ^ operator.
    §

    impl BitXorAssign for AccelerationStructureGeometryFlags

    §

    fn bitxor_assign(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise exclusive-or (^) of the bits in two flags values.

    -
    §

    impl Clone for AccelerationStructureGeometryFlags

    §

    fn clone(&self) -> AccelerationStructureGeometryFlags

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for AccelerationStructureGeometryFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for AccelerationStructureGeometryFlags

    §

    fn deserialize<__D>( +

    source§

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the ^ operator.
    source§

    impl BitXorAssign for AccelerationStructureGeometryFlags

    source§

    fn bitxor_assign(&mut self, other: AccelerationStructureGeometryFlags)

    The bitwise exclusive-or (^) of the bits in two flags values.

    +
    source§

    impl Clone for AccelerationStructureGeometryFlags

    source§

    fn clone(&self) -> AccelerationStructureGeometryFlags

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for AccelerationStructureGeometryFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for AccelerationStructureGeometryFlags

    source§

    fn deserialize<__D>( __deserializer: __D, ) -> Result<AccelerationStructureGeometryFlags, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl Extend<AccelerationStructureGeometryFlags> for AccelerationStructureGeometryFlags

    §

    fn extend<T>(&mut self, iterator: T)
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Extend<AccelerationStructureGeometryFlags> for AccelerationStructureGeometryFlags

    source§

    fn extend<T>(&mut self, iterator: T)

    The bitwise or (|) of the bits in each flags value.

    -
    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    §

    impl Flags for AccelerationStructureGeometryFlags

    §

    const FLAGS: &'static [Flag<AccelerationStructureGeometryFlags>] = _

    The set of defined flags.
    §

    type Bits = u8

    The underlying bits type.
    §

    fn bits(&self) -> u8

    Get the underlying bits value. Read more
    §

    fn from_bits_retain(bits: u8) -> AccelerationStructureGeometryFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn contains_unknown_bits(&self) -> bool

    This method will return true if any unknown bits are set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where +

    source§

    fn extend_one(&mut self, item: A)

    🔬This is a nightly-only experimental API. (extend_one)
    Extends a collection with exactly one element.
    source§

    fn extend_reserve(&mut self, additional: usize)

    🔬This is a nightly-only experimental API. (extend_one)
    Reserves capacity in a collection for the given number of additional elements. Read more
    source§

    impl Flags for AccelerationStructureGeometryFlags

    source§

    const FLAGS: &'static [Flag<AccelerationStructureGeometryFlags>] = _

    The set of defined flags.
    source§

    type Bits = u8

    The underlying bits type.
    source§

    fn bits(&self) -> u8

    Get the underlying bits value. Read more
    source§

    fn from_bits_retain(bits: u8) -> AccelerationStructureGeometryFlags

    Convert from a bits value exactly.
    §

    fn empty() -> Self

    Get a flags value with all bits unset.
    §

    fn all() -> Self

    Get a flags value with all known bits set.
    §

    fn contains_unknown_bits(&self) -> bool

    This method will return true if any unknown bits are set.
    §

    fn from_bits(bits: Self::Bits) -> Option<Self>

    Convert from a bits value. Read more
    §

    fn from_bits_truncate(bits: Self::Bits) -> Self

    Convert from a bits value, unsetting any unknown bits.
    §

    fn from_name(name: &str) -> Option<Self>

    Get a flags value with the bits of a flag with the given name set. Read more
    §

    fn iter(&self) -> Iter<Self>

    Yield a set of contained flags values. Read more
    §

    fn iter_names(&self) -> IterNames<Self>

    Yield a set of contained named flags values. Read more
    §

    fn is_empty(&self) -> bool

    Whether all bits in this flags value are unset.
    §

    fn is_all(&self) -> bool

    Whether all known bits in this flags value are set.
    §

    fn intersects(&self, other: Self) -> bool
    where Self: Sized,

    Whether any set bits in a source flags value are also set in a target flags value.
    §

    fn contains(&self, other: Self) -> bool
    where Self: Sized,

    Whether all set bits in a source flags value are also set in a target flags value.
    §

    fn truncate(&mut self)
    where Self: Sized,

    Remove any unknown bits from the flags.
    §

    fn insert(&mut self, other: Self)
    where Self: Sized,

    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    §

    impl FromIterator<AccelerationStructureGeometryFlags> for AccelerationStructureGeometryFlags

    §

    fn from_iter<T>(iterator: T) -> AccelerationStructureGeometryFlags
    where + Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    source§

    impl FromIterator<AccelerationStructureGeometryFlags> for AccelerationStructureGeometryFlags

    source§

    fn from_iter<T>(iterator: T) -> AccelerationStructureGeometryFlags

    The bitwise or (|) of the bits in each flags value.

    -
    §

    impl Hash for AccelerationStructureGeometryFlags

    §

    fn hash<__H>(&self, state: &mut __H)
    where +

    source§

    impl Hash for AccelerationStructureGeometryFlags

    source§

    fn hash<__H>(&self, state: &mut __H)
    where __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl IntoIterator for AccelerationStructureGeometryFlags

    §

    type Item = AccelerationStructureGeometryFlags

    The type of the elements being iterated over.
    §

    type IntoIter = Iter<AccelerationStructureGeometryFlags>

    Which kind of iterator are we turning this into?
    §

    fn into_iter( + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl IntoIterator for AccelerationStructureGeometryFlags

    source§

    type Item = AccelerationStructureGeometryFlags

    The type of the elements being iterated over.
    source§

    type IntoIter = Iter<AccelerationStructureGeometryFlags>

    Which kind of iterator are we turning this into?
    source§

    fn into_iter( self, -) -> <AccelerationStructureGeometryFlags as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    §

    impl LowerHex for AccelerationStructureGeometryFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Not for AccelerationStructureGeometryFlags

    §

    fn not(self) -> AccelerationStructureGeometryFlags

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    -
    §

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the ! operator.
    §

    impl Octal for AccelerationStructureGeometryFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for AccelerationStructureGeometryFlags

    §

    fn eq(&self, other: &AccelerationStructureGeometryFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, -and should not be overridden without very good reason.
    §

    impl Serialize for AccelerationStructureGeometryFlags

    §

    fn serialize<__S>( +) -> <AccelerationStructureGeometryFlags as IntoIterator>::IntoIter

    Creates an iterator from a value. Read more
    source§

    impl LowerHex for AccelerationStructureGeometryFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Not for AccelerationStructureGeometryFlags

    source§

    fn not(self) -> AccelerationStructureGeometryFlags

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    +
    source§

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the ! operator.
    source§

    impl Octal for AccelerationStructureGeometryFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl PartialEq for AccelerationStructureGeometryFlags

    source§

    fn eq(&self, other: &AccelerationStructureGeometryFlags) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, +and should not be overridden without very good reason.
    source§

    impl Serialize for AccelerationStructureGeometryFlags

    source§

    fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl Sub for AccelerationStructureGeometryFlags

    §

    fn sub( + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Sub for AccelerationStructureGeometryFlags

    source§

    fn sub( self, other: AccelerationStructureGeometryFlags, ) -> AccelerationStructureGeometryFlags

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    §

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the - operator.
    §

    impl SubAssign for AccelerationStructureGeometryFlags

    §

    fn sub_assign(&mut self, other: AccelerationStructureGeometryFlags)

    The intersection of a source flags value with the complement of a target flags value (&!).

    +
    source§

    type Output = AccelerationStructureGeometryFlags

    The resulting type after applying the - operator.
    source§

    impl SubAssign for AccelerationStructureGeometryFlags

    source§

    fn sub_assign(&mut self, other: AccelerationStructureGeometryFlags)

    The intersection of a source flags value with the complement of a target flags value (&!).

    This method is not equivalent to self & !other when other has unknown bits set. difference won’t truncate other, but the ! operator will.

    -
    §

    impl UpperHex for AccelerationStructureGeometryFlags

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Copy for AccelerationStructureGeometryFlags

    §

    impl Eq for AccelerationStructureGeometryFlags

    §

    impl StructuralPartialEq for AccelerationStructureGeometryFlags

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    source§

    impl UpperHex for AccelerationStructureGeometryFlags

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for AccelerationStructureGeometryFlags

    source§

    impl Eq for AccelerationStructureGeometryFlags

    source§

    impl StructuralPartialEq for AccelerationStructureGeometryFlags

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -123,7 +123,7 @@ T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: for<'de> Deserialize<'de>,

    source§

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

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureInstances.html b/doc/wgpu_hal/struct.AccelerationStructureInstances.html index 0ee8552f3cdb..a98d5639f7e1 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureInstances.html +++ b/doc/wgpu_hal/struct.AccelerationStructureInstances.html @@ -23,7 +23,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureTriangleIndices.html b/doc/wgpu_hal/struct.AccelerationStructureTriangleIndices.html index b5b0dcebaa20..7dccb39d97fd 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureTriangleIndices.html +++ b/doc/wgpu_hal/struct.AccelerationStructureTriangleIndices.html @@ -1,12 +1,12 @@ AccelerationStructureTriangleIndices in wgpu_hal - Rust
    wgpu_hal

    Struct AccelerationStructureTriangleIndices

    source
    pub struct AccelerationStructureTriangleIndices<'a, B: DynBuffer + ?Sized> {
    -    pub format: IndexFormat,
    +    pub format: IndexFormat,
         pub buffer: Option<&'a B>,
         pub offset: u32,
         pub count: u32,
     }
    Expand description
    • offset - offset in bytes
    -

    Fields§

    §format: IndexFormat§buffer: Option<&'a B>§offset: u32§count: u32

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBuffer + ?Sized> Clone for AccelerationStructureTriangleIndices<'a, B>

    source§

    fn clone(&self) -> AccelerationStructureTriangleIndices<'a, B>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBuffer + ?Sized> Debug for AccelerationStructureTriangleIndices<'a, B>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B> Freeze for AccelerationStructureTriangleIndices<'a, B>
    where +

    Fields§

    §format: IndexFormat§buffer: Option<&'a B>§offset: u32§count: u32

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBuffer + ?Sized> Clone for AccelerationStructureTriangleIndices<'a, B>

    source§

    fn clone(&self) -> AccelerationStructureTriangleIndices<'a, B>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBuffer + ?Sized> Debug for AccelerationStructureTriangleIndices<'a, B>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B> Freeze for AccelerationStructureTriangleIndices<'a, B>
    where B: ?Sized,

    §

    impl<'a, B> RefUnwindSafe for AccelerationStructureTriangleIndices<'a, B>
    where B: RefUnwindSafe + ?Sized,

    §

    impl<'a, B> Send for AccelerationStructureTriangleIndices<'a, B>
    where B: ?Sized,

    §

    impl<'a, B> Sync for AccelerationStructureTriangleIndices<'a, B>
    where @@ -24,7 +24,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureTriangleTransform.html b/doc/wgpu_hal/struct.AccelerationStructureTriangleTransform.html index 31272d7d9c88..2bf87d9bb0b9 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureTriangleTransform.html +++ b/doc/wgpu_hal/struct.AccelerationStructureTriangleTransform.html @@ -22,7 +22,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureTriangles.html b/doc/wgpu_hal/struct.AccelerationStructureTriangles.html index e99f0131fe22..e7bdc6e88a42 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureTriangles.html +++ b/doc/wgpu_hal/struct.AccelerationStructureTriangles.html @@ -1,9 +1,9 @@ AccelerationStructureTriangles in wgpu_hal - Rust
    wgpu_hal

    Struct AccelerationStructureTriangles

    source
    pub struct AccelerationStructureTriangles<'a, B: DynBuffer + ?Sized> {
         pub vertex_buffer: Option<&'a B>,
    -    pub vertex_format: VertexFormat,
    +    pub vertex_format: VertexFormat,
         pub first_vertex: u32,
         pub vertex_count: u32,
    -    pub vertex_stride: BufferAddress,
    +    pub vertex_stride: BufferAddress,
         pub indices: Option<AccelerationStructureTriangleIndices<'a, B>>,
         pub transform: Option<AccelerationStructureTriangleTransform<'a, B>>,
         pub flags: AccelerationStructureGeometryFlags,
    @@ -12,7 +12,7 @@
     
  • indices - optional index buffer with attributes
  • transform - optional transform
  • -

    Fields§

    §vertex_buffer: Option<&'a B>§vertex_format: VertexFormat§first_vertex: u32§vertex_count: u32§vertex_stride: BufferAddress§indices: Option<AccelerationStructureTriangleIndices<'a, B>>§transform: Option<AccelerationStructureTriangleTransform<'a, B>>§flags: AccelerationStructureGeometryFlags

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBuffer + ?Sized> Clone for AccelerationStructureTriangles<'a, B>

    source§

    fn clone(&self) -> AccelerationStructureTriangles<'a, B>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBuffer + ?Sized> Debug for AccelerationStructureTriangles<'a, B>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B> Freeze for AccelerationStructureTriangles<'a, B>
    where +

    Fields§

    §vertex_buffer: Option<&'a B>§vertex_format: VertexFormat§first_vertex: u32§vertex_count: u32§vertex_stride: BufferAddress§indices: Option<AccelerationStructureTriangleIndices<'a, B>>§transform: Option<AccelerationStructureTriangleTransform<'a, B>>§flags: AccelerationStructureGeometryFlags

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBuffer + ?Sized> Clone for AccelerationStructureTriangles<'a, B>

    source§

    fn clone(&self) -> AccelerationStructureTriangles<'a, B>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBuffer + ?Sized> Debug for AccelerationStructureTriangles<'a, B>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B> Freeze for AccelerationStructureTriangles<'a, B>
    where B: ?Sized,

    §

    impl<'a, B> RefUnwindSafe for AccelerationStructureTriangles<'a, B>
    where B: RefUnwindSafe + ?Sized,

    §

    impl<'a, B> Send for AccelerationStructureTriangles<'a, B>
    where B: ?Sized,

    §

    impl<'a, B> Sync for AccelerationStructureTriangles<'a, B>
    where @@ -30,7 +30,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AccelerationStructureUses.html b/doc/wgpu_hal/struct.AccelerationStructureUses.html index 088c928deaeb..e67fdd1ef78c 100644 --- a/doc/wgpu_hal/struct.AccelerationStructureUses.html +++ b/doc/wgpu_hal/struct.AccelerationStructureUses.html @@ -73,7 +73,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AcquiredSurfaceTexture.html b/doc/wgpu_hal/struct.AcquiredSurfaceTexture.html index 96bfef2aaad8..801c6549c7cc 100644 --- a/doc/wgpu_hal/struct.AcquiredSurfaceTexture.html +++ b/doc/wgpu_hal/struct.AcquiredSurfaceTexture.html @@ -19,7 +19,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.Alignments.html b/doc/wgpu_hal/struct.Alignments.html index dccf8c26061a..0e731cb80056 100644 --- a/doc/wgpu_hal/struct.Alignments.html +++ b/doc/wgpu_hal/struct.Alignments.html @@ -1,15 +1,15 @@ Alignments in wgpu_hal - Rust
    wgpu_hal

    Struct Alignments

    source
    pub struct Alignments {
    -    pub buffer_copy_offset: BufferSize,
    -    pub buffer_copy_pitch: BufferSize,
    -    pub uniform_bounds_check_alignment: BufferSize,
    +    pub buffer_copy_offset: BufferSize,
    +    pub buffer_copy_pitch: BufferSize,
    +    pub uniform_bounds_check_alignment: BufferSize,
         pub raw_tlas_instance_size: usize,
         pub ray_tracing_scratch_buffer_alignment: u32,
    -}

    Fields§

    §buffer_copy_offset: BufferSize

    The alignment of the start of the buffer used as a GPU copy source.

    -
    §buffer_copy_pitch: BufferSize

    The alignment of the row pitch of the texture data stored in a buffer that is +}

    Fields§

    §buffer_copy_offset: BufferSize

    The alignment of the start of the buffer used as a GPU copy source.

    +
    §buffer_copy_pitch: BufferSize

    The alignment of the row pitch of the texture data stored in a buffer that is used in a GPU copy operation.

    -
    §uniform_bounds_check_alignment: BufferSize

    The finest alignment of bound range checking for uniform buffers.

    +
    §uniform_bounds_check_alignment: BufferSize

    The finest alignment of bound range checking for uniform buffers.

    When wgpu_hal restricts shader references to the accessible -region of a Uniform buffer, the size of the accessible region +region of a Uniform buffer, the size of the accessible region is the bind group binding’s stated size, rounded up to the next multiple of this value.

    We don’t need an analogous field for storage buffer bindings, because @@ -30,7 +30,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.Attachment.html b/doc/wgpu_hal/struct.Attachment.html index ae03c3d756d0..6d663d7b1559 100644 --- a/doc/wgpu_hal/struct.Attachment.html +++ b/doc/wgpu_hal/struct.Attachment.html @@ -25,7 +25,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.AttachmentOps.html b/doc/wgpu_hal/struct.AttachmentOps.html index 18f8baab6bc1..486ff59ecb49 100644 --- a/doc/wgpu_hal/struct.AttachmentOps.html +++ b/doc/wgpu_hal/struct.AttachmentOps.html @@ -73,7 +73,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BindGroupDescriptor.html b/doc/wgpu_hal/struct.BindGroupDescriptor.html index a604fcdd7d1b..80e4d1201ca7 100644 --- a/doc/wgpu_hal/struct.BindGroupDescriptor.html +++ b/doc/wgpu_hal/struct.BindGroupDescriptor.html @@ -56,7 +56,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BindGroupEntry.html b/doc/wgpu_hal/struct.BindGroupEntry.html index d532be0e834a..3a7721e8919c 100644 --- a/doc/wgpu_hal/struct.BindGroupEntry.html +++ b/doc/wgpu_hal/struct.BindGroupEntry.html @@ -14,7 +14,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BindGroupLayoutDescriptor.html b/doc/wgpu_hal/struct.BindGroupLayoutDescriptor.html index 1a13d1cf79c7..57f3b13e16c3 100644 --- a/doc/wgpu_hal/struct.BindGroupLayoutDescriptor.html +++ b/doc/wgpu_hal/struct.BindGroupLayoutDescriptor.html @@ -1,13 +1,13 @@ BindGroupLayoutDescriptor in wgpu_hal - Rust
    wgpu_hal

    Struct BindGroupLayoutDescriptor

    source
    pub struct BindGroupLayoutDescriptor<'a> {
         pub label: Label<'a>,
         pub flags: BindGroupLayoutFlags,
    -    pub entries: &'a [BindGroupLayoutEntry],
    +    pub entries: &'a [BindGroupLayoutEntry],
     }
    Expand description

    BindGroupLayout descriptor.

    Valid usage:

    • entries are sorted by ascending wgt::BindGroupLayoutEntry::binding
    -

    Fields§

    §label: Label<'a>§flags: BindGroupLayoutFlags§entries: &'a [BindGroupLayoutEntry]

    Trait Implementations§

    source§

    impl<'a> Clone for BindGroupLayoutDescriptor<'a>

    source§

    fn clone(&self) -> BindGroupLayoutDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for BindGroupLayoutDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Fields§

    §label: Label<'a>§flags: BindGroupLayoutFlags§entries: &'a [BindGroupLayoutEntry]

    Trait Implementations§

    source§

    impl<'a> Clone for BindGroupLayoutDescriptor<'a>

    source§

    fn clone(&self) -> BindGroupLayoutDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for BindGroupLayoutDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -19,7 +19,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BindGroupLayoutFlags.html b/doc/wgpu_hal/struct.BindGroupLayoutFlags.html index 3617c94f5e63..1a2de233170e 100644 --- a/doc/wgpu_hal/struct.BindGroupLayoutFlags.html +++ b/doc/wgpu_hal/struct.BindGroupLayoutFlags.html @@ -75,7 +75,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BufferBarrier.html b/doc/wgpu_hal/struct.BufferBarrier.html index 15f066dcb136..5f9ac7cbdc46 100644 --- a/doc/wgpu_hal/struct.BufferBarrier.html +++ b/doc/wgpu_hal/struct.BufferBarrier.html @@ -19,7 +19,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BufferBinding.html b/doc/wgpu_hal/struct.BufferBinding.html index aff7ac70bd8a..ba6b7769bbf5 100644 --- a/doc/wgpu_hal/struct.BufferBinding.html +++ b/doc/wgpu_hal/struct.BufferBinding.html @@ -1,7 +1,7 @@ BufferBinding in wgpu_hal - Rust
    wgpu_hal

    Struct BufferBinding

    source
    pub struct BufferBinding<'a, B: DynBuffer + ?Sized> {
         pub buffer: &'a B,
    -    pub offset: BufferAddress,
    -    pub size: Option<BufferSize>,
    +    pub offset: BufferAddress,
    +    pub size: Option<BufferSize>,
     }
    Expand description

    A region of a buffer made visible to shaders via a BindGroup.

    §Accessible region

    wgpu_hal guarantees that shaders compiled with @@ -12,11 +12,11 @@

    §The accessible region starts at offset.

  • -

    For Storage bindings, the size of the accessible region is size, +

    For Storage bindings, the size of the accessible region is size, which must be a multiple of 4.

  • -

    For Uniform bindings, the size of the accessible region is size +

    For Uniform bindings, the size of the accessible region is size rounded up to the next multiple of Alignments::uniform_bounds_check_alignment.

  • @@ -30,13 +30,13 @@

    §

    Fields§

    §buffer: &'a B

    The buffer being bound.

    -
    §offset: BufferAddress

    The offset at which the bound region starts.

    +
    §offset: BufferAddress

    The offset at which the bound region starts.

    This must be less than the size of the buffer. Some back ends cannot tolerate zero-length regions; for example, see VUID-VkDescriptorBufferInfo-offset-00340 and VUID-VkDescriptorBufferInfo-range-00341, or the documentation for GLES’s glBindBufferRange.

    -
    §size: Option<BufferSize>

    The size of the region bound, in bytes.

    +
    §size: Option<BufferSize>

    The size of the region bound, in bytes.

    If None, the region extends from offset to the end of the buffer. Given the restrictions on offset, this means that the size is always greater than zero.

    @@ -58,7 +58,7 @@

    §

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BufferCopy.html b/doc/wgpu_hal/struct.BufferCopy.html index 60160c7f2eb3..78b88a096188 100644 --- a/doc/wgpu_hal/struct.BufferCopy.html +++ b/doc/wgpu_hal/struct.BufferCopy.html @@ -1,8 +1,8 @@ BufferCopy in wgpu_hal - Rust
    wgpu_hal

    Struct BufferCopy

    source
    pub struct BufferCopy {
    -    pub src_offset: BufferAddress,
    -    pub dst_offset: BufferAddress,
    -    pub size: BufferSize,
    -}

    Fields§

    §src_offset: BufferAddress§dst_offset: BufferAddress§size: BufferSize

    Trait Implementations§

    source§

    impl Clone for BufferCopy

    source§

    fn clone(&self) -> BufferCopy

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BufferCopy

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for BufferCopy

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + pub src_offset: BufferAddress, + pub dst_offset: BufferAddress, + pub size: BufferSize, +}

    Fields§

    §src_offset: BufferAddress§dst_offset: BufferAddress§size: BufferSize

    Trait Implementations§

    source§

    impl Clone for BufferCopy

    source§

    fn clone(&self) -> BufferCopy

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BufferCopy

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for BufferCopy

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -14,7 +14,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BufferDescriptor.html b/doc/wgpu_hal/struct.BufferDescriptor.html index fb0f57f01e0c..39902e3957b7 100644 --- a/doc/wgpu_hal/struct.BufferDescriptor.html +++ b/doc/wgpu_hal/struct.BufferDescriptor.html @@ -1,9 +1,9 @@ BufferDescriptor in wgpu_hal - Rust
    wgpu_hal

    Struct BufferDescriptor

    source
    pub struct BufferDescriptor<'a> {
         pub label: Label<'a>,
    -    pub size: BufferAddress,
    +    pub size: BufferAddress,
         pub usage: BufferUses,
         pub memory_flags: MemoryFlags,
    -}

    Fields§

    §label: Label<'a>§size: BufferAddress§usage: BufferUses§memory_flags: MemoryFlags

    Trait Implementations§

    source§

    impl<'a> Clone for BufferDescriptor<'a>

    source§

    fn clone(&self) -> BufferDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for BufferDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for BufferDescriptor<'a>

    §

    impl<'a> RefUnwindSafe for BufferDescriptor<'a>

    §

    impl<'a> Send for BufferDescriptor<'a>

    §

    impl<'a> Sync for BufferDescriptor<'a>

    §

    impl<'a> Unpin for BufferDescriptor<'a>

    §

    impl<'a> UnwindSafe for BufferDescriptor<'a>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Fields§

    §label: Label<'a>§size: BufferAddress§usage: BufferUses§memory_flags: MemoryFlags

    Trait Implementations§

    source§

    impl<'a> Clone for BufferDescriptor<'a>

    source§

    fn clone(&self) -> BufferDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for BufferDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for BufferDescriptor<'a>

    §

    impl<'a> RefUnwindSafe for BufferDescriptor<'a>

    §

    impl<'a> Send for BufferDescriptor<'a>

    §

    impl<'a> Sync for BufferDescriptor<'a>

    §

    impl<'a> Unpin for BufferDescriptor<'a>

    §

    impl<'a> UnwindSafe for BufferDescriptor<'a>

    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> CloneToUninit for T
    where @@ -15,7 +15,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BufferTextureCopy.html b/doc/wgpu_hal/struct.BufferTextureCopy.html index 835f16b18c80..01d9515160fa 100644 --- a/doc/wgpu_hal/struct.BufferTextureCopy.html +++ b/doc/wgpu_hal/struct.BufferTextureCopy.html @@ -1,8 +1,8 @@ BufferTextureCopy in wgpu_hal - Rust
    wgpu_hal

    Struct BufferTextureCopy

    source
    pub struct BufferTextureCopy {
    -    pub buffer_layout: TexelCopyBufferLayout,
    +    pub buffer_layout: TexelCopyBufferLayout,
         pub texture_base: TextureCopyBase,
         pub size: CopyExtent,
    -}

    Fields§

    §buffer_layout: TexelCopyBufferLayout§texture_base: TextureCopyBase§size: CopyExtent

    Implementations§

    Trait Implementations§

    source§

    impl Clone for BufferTextureCopy

    source§

    fn clone(&self) -> BufferTextureCopy

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BufferTextureCopy

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Fields§

    §buffer_layout: TexelCopyBufferLayout§texture_base: TextureCopyBase§size: CopyExtent

    Implementations§

    Trait Implementations§

    source§

    impl Clone for BufferTextureCopy

    source§

    fn clone(&self) -> BufferTextureCopy

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BufferTextureCopy

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -14,7 +14,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BufferUses.html b/doc/wgpu_hal/struct.BufferUses.html index 74844289ab89..d5d6e50d69e5 100644 --- a/doc/wgpu_hal/struct.BufferUses.html +++ b/doc/wgpu_hal/struct.BufferUses.html @@ -90,7 +90,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.BuildAccelerationStructureDescriptor.html b/doc/wgpu_hal/struct.BuildAccelerationStructureDescriptor.html index b83031811547..7645ea90205d 100644 --- a/doc/wgpu_hal/struct.BuildAccelerationStructureDescriptor.html +++ b/doc/wgpu_hal/struct.BuildAccelerationStructureDescriptor.html @@ -5,10 +5,10 @@ pub source_acceleration_structure: Option<&'a A>, pub destination_acceleration_structure: &'a A, pub scratch_buffer: &'a B, - pub scratch_buffer_offset: BufferAddress, + pub scratch_buffer_offset: BufferAddress, }
    Expand description

    Updates use source_acceleration_structure if present, else the update will be performed in place. For updates, only the data is allowed to change (not the meta data or sizes).

    -

    Fields§

    §entries: &'a AccelerationStructureEntries<'a, B>§mode: AccelerationStructureBuildMode§flags: AccelerationStructureBuildFlags§source_acceleration_structure: Option<&'a A>§destination_acceleration_structure: &'a A§scratch_buffer: &'a B§scratch_buffer_offset: BufferAddress

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBuffer + ?Sized, A: Clone + DynAccelerationStructure + ?Sized> Clone for BuildAccelerationStructureDescriptor<'a, B, A>

    source§

    fn clone(&self) -> BuildAccelerationStructureDescriptor<'a, B, A>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBuffer + ?Sized, A: Debug + DynAccelerationStructure + ?Sized> Debug for BuildAccelerationStructureDescriptor<'a, B, A>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B, A> Freeze for BuildAccelerationStructureDescriptor<'a, B, A>
    where +

    Fields§

    §entries: &'a AccelerationStructureEntries<'a, B>§mode: AccelerationStructureBuildMode§flags: AccelerationStructureBuildFlags§source_acceleration_structure: Option<&'a A>§destination_acceleration_structure: &'a A§scratch_buffer: &'a B§scratch_buffer_offset: BufferAddress

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBuffer + ?Sized, A: Clone + DynAccelerationStructure + ?Sized> Clone for BuildAccelerationStructureDescriptor<'a, B, A>

    source§

    fn clone(&self) -> BuildAccelerationStructureDescriptor<'a, B, A>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBuffer + ?Sized, A: Debug + DynAccelerationStructure + ?Sized> Debug for BuildAccelerationStructureDescriptor<'a, B, A>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B, A> Freeze for BuildAccelerationStructureDescriptor<'a, B, A>
    where B: ?Sized, A: ?Sized,

    §

    impl<'a, B, A> RefUnwindSafe for BuildAccelerationStructureDescriptor<'a, B, A>
    where A: RefUnwindSafe + ?Sized, @@ -32,7 +32,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.Capabilities.html b/doc/wgpu_hal/struct.Capabilities.html index 1db80f255ce2..0669b957ef37 100644 --- a/doc/wgpu_hal/struct.Capabilities.html +++ b/doc/wgpu_hal/struct.Capabilities.html @@ -1,8 +1,8 @@ Capabilities in wgpu_hal - Rust
    wgpu_hal

    Struct Capabilities

    source
    pub struct Capabilities {
    -    pub limits: Limits,
    +    pub limits: Limits,
         pub alignments: Alignments,
    -    pub downlevel: DownlevelCapabilities,
    -}

    Fields§

    §limits: Limits§alignments: Alignments§downlevel: DownlevelCapabilities

    Trait Implementations§

    source§

    impl Clone for Capabilities

    source§

    fn clone(&self) -> Capabilities

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Capabilities

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + pub downlevel: DownlevelCapabilities, +}

    Fields§

    §limits: Limits§alignments: Alignments§downlevel: DownlevelCapabilities

    Trait Implementations§

    source§

    impl Clone for Capabilities

    source§

    fn clone(&self) -> Capabilities

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Capabilities

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -14,7 +14,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.ColorAttachment.html b/doc/wgpu_hal/struct.ColorAttachment.html index 5e61568eab8b..fc9fc21a3f7e 100644 --- a/doc/wgpu_hal/struct.ColorAttachment.html +++ b/doc/wgpu_hal/struct.ColorAttachment.html @@ -2,8 +2,8 @@ pub target: Attachment<'a, T>, pub resolve_target: Option<Attachment<'a, T>>, pub ops: AttachmentOps, - pub clear_value: Color, -}

    Fields§

    §target: Attachment<'a, T>§resolve_target: Option<Attachment<'a, T>>§ops: AttachmentOps§clear_value: Color

    Implementations§

    source§

    impl ColorAttachment<'_, TextureView>

    source

    pub(super) unsafe fn make_vk_clear_color(&self) -> ClearColorValue

    Available on vulkan only.
    source§

    impl<'a> ColorAttachment<'a, dyn DynTextureView>

    Trait Implementations§

    source§

    impl<'a, T: Clone + DynTextureView + ?Sized> Clone for ColorAttachment<'a, T>

    source§

    fn clone(&self) -> ColorAttachment<'a, T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, T: Debug + DynTextureView + ?Sized> Debug for ColorAttachment<'a, T>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, T> Freeze for ColorAttachment<'a, T>
    where + pub clear_value: Color, +}

    Fields§

    §target: Attachment<'a, T>§resolve_target: Option<Attachment<'a, T>>§ops: AttachmentOps§clear_value: Color

    Implementations§

    source§

    impl ColorAttachment<'_, TextureView>

    source

    pub(super) unsafe fn make_vk_clear_color(&self) -> ClearColorValue

    Available on vulkan only.
    source§

    impl<'a> ColorAttachment<'a, dyn DynTextureView>

    Trait Implementations§

    source§

    impl<'a, T: Clone + DynTextureView + ?Sized> Clone for ColorAttachment<'a, T>

    source§

    fn clone(&self) -> ColorAttachment<'a, T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, T: Debug + DynTextureView + ?Sized> Debug for ColorAttachment<'a, T>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, T> Freeze for ColorAttachment<'a, T>
    where T: ?Sized,

    §

    impl<'a, T> RefUnwindSafe for ColorAttachment<'a, T>
    where T: RefUnwindSafe + ?Sized,

    §

    impl<'a, T> Send for ColorAttachment<'a, T>
    where T: ?Sized,

    §

    impl<'a, T> Sync for ColorAttachment<'a, T>
    where @@ -21,7 +21,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.CommandEncoderDescriptor.html b/doc/wgpu_hal/struct.CommandEncoderDescriptor.html index ef09db8564c9..b01285c553d0 100644 --- a/doc/wgpu_hal/struct.CommandEncoderDescriptor.html +++ b/doc/wgpu_hal/struct.CommandEncoderDescriptor.html @@ -19,7 +19,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.ComputePassDescriptor.html b/doc/wgpu_hal/struct.ComputePassDescriptor.html index 84423ff72ed5..9a08d488a420 100644 --- a/doc/wgpu_hal/struct.ComputePassDescriptor.html +++ b/doc/wgpu_hal/struct.ComputePassDescriptor.html @@ -19,7 +19,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.ComputePipelineDescriptor.html b/doc/wgpu_hal/struct.ComputePipelineDescriptor.html index d94cedc90c02..d97cc063b002 100644 --- a/doc/wgpu_hal/struct.ComputePipelineDescriptor.html +++ b/doc/wgpu_hal/struct.ComputePipelineDescriptor.html @@ -37,7 +37,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.CopyExtent.html b/doc/wgpu_hal/struct.CopyExtent.html index c719b1fd7f15..cb606337b088 100644 --- a/doc/wgpu_hal/struct.CopyExtent.html +++ b/doc/wgpu_hal/struct.CopyExtent.html @@ -2,7 +2,7 @@ pub width: u32, pub height: u32, pub depth: u32, -}

    Fields§

    §width: u32§height: u32§depth: u32

    Implementations§

    source§

    impl CopyExtent

    source

    pub fn map_extent_to_copy_size(extent: &Extent3d, dim: TextureDimension) -> Self

    source

    pub fn min(&self, other: &Self) -> Self

    source

    pub fn at_mip_level(&self, level: u32) -> Self

    Trait Implementations§

    source§

    impl Clone for CopyExtent

    source§

    fn clone(&self) -> CopyExtent

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CopyExtent

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for CopyExtent

    Auto Trait Implementations§

    §

    impl Freeze for CopyExtent

    §

    impl RefUnwindSafe for CopyExtent

    §

    impl Send for CopyExtent

    §

    impl Sync for CopyExtent

    §

    impl Unpin for CopyExtent

    §

    impl UnwindSafe for CopyExtent

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Fields§

    §width: u32§height: u32§depth: u32

    Implementations§

    source§

    impl CopyExtent

    source

    pub fn map_extent_to_copy_size(extent: &Extent3d, dim: TextureDimension) -> Self

    source

    pub fn min(&self, other: &Self) -> Self

    source

    pub fn at_mip_level(&self, level: u32) -> Self

    Trait Implementations§

    source§

    impl Clone for CopyExtent

    source§

    fn clone(&self) -> CopyExtent

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CopyExtent

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Copy for CopyExtent

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -14,7 +14,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.DebugSource.html b/doc/wgpu_hal/struct.DebugSource.html index ef8c8eb499eb..971c699b16a1 100644 --- a/doc/wgpu_hal/struct.DebugSource.html +++ b/doc/wgpu_hal/struct.DebugSource.html @@ -13,7 +13,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.DepthStencilAttachment.html b/doc/wgpu_hal/struct.DepthStencilAttachment.html index bdd9a91538f7..b4179e350e15 100644 --- a/doc/wgpu_hal/struct.DepthStencilAttachment.html +++ b/doc/wgpu_hal/struct.DepthStencilAttachment.html @@ -23,7 +23,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.DropGuard.html b/doc/wgpu_hal/struct.DropGuard.html index 6dfa2718ad4c..d3992956eae8 100644 --- a/doc/wgpu_hal/struct.DropGuard.html +++ b/doc/wgpu_hal/struct.DropGuard.html @@ -10,7 +10,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.DynAcquiredSurfaceTexture.html b/doc/wgpu_hal/struct.DynAcquiredSurfaceTexture.html index 4975ace711f2..69e328f15535 100644 --- a/doc/wgpu_hal/struct.DynAcquiredSurfaceTexture.html +++ b/doc/wgpu_hal/struct.DynAcquiredSurfaceTexture.html @@ -14,7 +14,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.DynExposedAdapter.html b/doc/wgpu_hal/struct.DynExposedAdapter.html index b3990f51c59a..50da36221f04 100644 --- a/doc/wgpu_hal/struct.DynExposedAdapter.html +++ b/doc/wgpu_hal/struct.DynExposedAdapter.html @@ -1,9 +1,9 @@ DynExposedAdapter in wgpu_hal - Rust
    wgpu_hal

    Struct DynExposedAdapter

    source
    pub struct DynExposedAdapter {
         pub adapter: Box<dyn DynAdapter>,
    -    pub info: AdapterInfo,
    -    pub features: Features,
    +    pub info: AdapterInfo,
    +    pub features: Features,
         pub capabilities: Capabilities,
    -}

    Fields§

    §adapter: Box<dyn DynAdapter>§info: AdapterInfo§features: Features§capabilities: Capabilities

    Implementations§

    source§

    impl DynExposedAdapter

    source

    pub fn backend(&self) -> Backend

    Returns the backend this adapter is using.

    +}

    Fields§

    §adapter: Box<dyn DynAdapter>§info: AdapterInfo§features: Features§capabilities: Capabilities

    Implementations§

    source§

    impl DynExposedAdapter

    source

    pub fn backend(&self) -> Backend

    Returns the backend this adapter is using.

    Trait Implementations§

    source§

    impl<A: Api> From<ExposedAdapter<A>> for DynExposedAdapter

    source§

    fn from(exposed_adapter: ExposedAdapter<A>) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    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 @@ -14,7 +14,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.DynOpenDevice.html b/doc/wgpu_hal/struct.DynOpenDevice.html index 1a9b669dd40f..07c0c9a052df 100644 --- a/doc/wgpu_hal/struct.DynOpenDevice.html +++ b/doc/wgpu_hal/struct.DynOpenDevice.html @@ -11,7 +11,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.ExposedAdapter.html b/doc/wgpu_hal/struct.ExposedAdapter.html index b1d90ae71819..560bd2a307dc 100644 --- a/doc/wgpu_hal/struct.ExposedAdapter.html +++ b/doc/wgpu_hal/struct.ExposedAdapter.html @@ -1,9 +1,9 @@ ExposedAdapter in wgpu_hal - Rust
    wgpu_hal

    Struct ExposedAdapter

    source
    pub struct ExposedAdapter<A: Api> {
         pub adapter: A::Adapter,
    -    pub info: AdapterInfo,
    -    pub features: Features,
    +    pub info: AdapterInfo,
    +    pub features: Features,
         pub capabilities: Capabilities,
    -}

    Fields§

    §adapter: A::Adapter§info: AdapterInfo§features: Features§capabilities: Capabilities

    Trait Implementations§

    source§

    impl<A: Debug + Api> Debug for ExposedAdapter<A>
    where +}

    Fields§

    §adapter: A::Adapter§info: AdapterInfo§features: Features§capabilities: Capabilities

    Trait Implementations§

    source§

    impl<A: Debug + Api> Debug for ExposedAdapter<A>
    where A::Adapter: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl<A: Api> From<ExposedAdapter<A>> for DynExposedAdapter

    source§

    fn from(exposed_adapter: ExposedAdapter<A>) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl<A> Freeze for ExposedAdapter<A>
    where <A as Api>::Adapter: Freeze,

    §

    impl<A> RefUnwindSafe for ExposedAdapter<A>
    where <A as Api>::Adapter: RefUnwindSafe,

    §

    impl<A> Send for ExposedAdapter<A>

    §

    impl<A> Sync for ExposedAdapter<A>

    §

    impl<A> Unpin for ExposedAdapter<A>
    where @@ -18,7 +18,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.FormatAspects.html b/doc/wgpu_hal/struct.FormatAspects.html index 5953cfe42dc3..df805b480d0e 100644 --- a/doc/wgpu_hal/struct.FormatAspects.html +++ b/doc/wgpu_hal/struct.FormatAspects.html @@ -33,8 +33,8 @@
    source

    pub const fn iter_names(&self) -> IterNames<FormatAspects>

    Yield a set of contained named flags values.

    This method is like iter, except only yields bits in contained named flags. Any unknown bits, or bits not corresponding to a contained flag will not be yielded.

    -
    source§

    impl FormatAspects

    source

    pub fn new(format: TextureFormat, aspect: TextureAspect) -> Self

    source

    pub fn is_one(&self) -> bool

    Returns true if only one flag is set

    -
    source

    pub fn map(&self) -> TextureAspect

    Trait Implementations§

    source§

    impl Binary for FormatAspects

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl BitAnd for FormatAspects

    source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    +
    source§

    impl FormatAspects

    source

    pub fn new(format: TextureFormat, aspect: TextureAspect) -> Self

    source

    pub fn is_one(&self) -> bool

    Returns true if only one flag is set

    +
    source

    pub fn map(&self) -> TextureAspect

    Trait Implementations§

    source§

    impl Binary for FormatAspects

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl BitAnd for FormatAspects

    source§

    fn bitand(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.

    source§

    type Output = FormatAspects

    The resulting type after applying the & operator.
    source§

    impl BitAndAssign for FormatAspects

    source§

    fn bitand_assign(&mut self, other: Self)

    The bitwise and (&) of the bits in two flags values.

    source§

    impl BitOr for FormatAspects

    source§

    fn bitor(self, other: FormatAspects) -> Self

    The bitwise or (|) of the bits in two flags values.

    source§

    type Output = FormatAspects

    The resulting type after applying the | operator.
    source§

    impl BitOrAssign for FormatAspects

    source§

    fn bitor_assign(&mut self, other: Self)

    The bitwise or (|) of the bits in two flags values.

    @@ -48,7 +48,7 @@ Self: Sized,
    The bitwise or (|) of the bits in two flags values.
    §

    fn remove(&mut self, other: Self)
    where Self: Sized,

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn toggle(&mut self, other: Self)
    where Self: Sized,

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn set(&mut self, other: Self, value: bool)
    where - Self: Sized,

    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    source§

    impl From<TextureFormat> for FormatAspects

    source§

    fn from(format: TextureFormat) -> Self

    Converts to this type from the input type.
    source§

    impl FromIterator<FormatAspects> for FormatAspects

    source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    + Self: Sized,
    Call [Flags::insert] when value is true or [Flags::remove] when value is false.
    §

    fn intersection(self, other: Self) -> Self

    The bitwise and (&) of the bits in two flags values.
    §

    fn union(self, other: Self) -> Self

    The bitwise or (|) of the bits in two flags values.
    §

    fn difference(self, other: Self) -> Self

    The intersection of a source flags value with the complement of a target flags value (&!). Read more
    §

    fn symmetric_difference(self, other: Self) -> Self

    The bitwise exclusive-or (^) of the bits in two flags values.
    §

    fn complement(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.
    source§

    impl From<TextureFormat> for FormatAspects

    source§

    fn from(format: TextureFormat) -> Self

    Converts to this type from the input type.
    source§

    impl FromIterator<FormatAspects> for FormatAspects

    source§

    fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self

    The bitwise or (|) of the bits in each flags value.

    source§

    impl Hash for FormatAspects

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl IntoIterator for FormatAspects

    source§

    type Item = FormatAspects

    The type of the elements being iterated over.
    source§

    type IntoIter = Iter<FormatAspects>

    Which kind of iterator are we turning this into?
    source§

    fn into_iter(self) -> Self::IntoIter

    Creates an iterator from a value. Read more
    source§

    impl LowerHex for FormatAspects

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl Not for FormatAspects

    source§

    fn not(self) -> Self

    The bitwise negation (!) of the bits in a flags value, truncating the result.

    @@ -75,7 +75,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.GetAccelerationStructureBuildSizesDescriptor.html b/doc/wgpu_hal/struct.GetAccelerationStructureBuildSizesDescriptor.html index 9055a519ad58..0f1018c62fb1 100644 --- a/doc/wgpu_hal/struct.GetAccelerationStructureBuildSizesDescriptor.html +++ b/doc/wgpu_hal/struct.GetAccelerationStructureBuildSizesDescriptor.html @@ -26,7 +26,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.InstanceDescriptor.html b/doc/wgpu_hal/struct.InstanceDescriptor.html index a81fe8541c04..d4b7eb7618db 100644 --- a/doc/wgpu_hal/struct.InstanceDescriptor.html +++ b/doc/wgpu_hal/struct.InstanceDescriptor.html @@ -1,8 +1,8 @@ InstanceDescriptor in wgpu_hal - Rust
    wgpu_hal

    Struct InstanceDescriptor

    source
    pub struct InstanceDescriptor<'a> {
         pub name: &'a str,
    -    pub flags: InstanceFlags,
    -    pub backend_options: BackendOptions,
    -}

    Fields§

    §name: &'a str§flags: InstanceFlags§backend_options: BackendOptions

    Trait Implementations§

    source§

    impl<'a> Clone for InstanceDescriptor<'a>

    source§

    fn clone(&self) -> InstanceDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for InstanceDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for InstanceDescriptor<'a>

    §

    impl<'a> RefUnwindSafe for InstanceDescriptor<'a>

    §

    impl<'a> Send for InstanceDescriptor<'a>

    §

    impl<'a> Sync for InstanceDescriptor<'a>

    §

    impl<'a> Unpin for InstanceDescriptor<'a>

    §

    impl<'a> UnwindSafe for InstanceDescriptor<'a>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + pub flags: InstanceFlags, + pub backend_options: BackendOptions, +}

    Fields§

    §name: &'a str§flags: InstanceFlags§backend_options: BackendOptions

    Trait Implementations§

    source§

    impl<'a> Clone for InstanceDescriptor<'a>

    source§

    fn clone(&self) -> InstanceDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for InstanceDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for InstanceDescriptor<'a>

    §

    impl<'a> RefUnwindSafe for InstanceDescriptor<'a>

    §

    impl<'a> Send for InstanceDescriptor<'a>

    §

    impl<'a> Sync for InstanceDescriptor<'a>

    §

    impl<'a> Unpin for InstanceDescriptor<'a>

    §

    impl<'a> UnwindSafe for InstanceDescriptor<'a>

    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> CloneToUninit for T
    where @@ -14,7 +14,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.InstanceError.html b/doc/wgpu_hal/struct.InstanceError.html index 9d9d43cedb67..03f5a7c22db4 100644 --- a/doc/wgpu_hal/struct.InstanceError.html +++ b/doc/wgpu_hal/struct.InstanceError.html @@ -24,7 +24,7 @@ T: Clone,
    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.MemoryFlags.html b/doc/wgpu_hal/struct.MemoryFlags.html index 5bef403442d7..4468a3e621cc 100644 --- a/doc/wgpu_hal/struct.MemoryFlags.html +++ b/doc/wgpu_hal/struct.MemoryFlags.html @@ -73,7 +73,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.NagaShader.html b/doc/wgpu_hal/struct.NagaShader.html index df3d2e6403ec..43b491e23e05 100644 --- a/doc/wgpu_hal/struct.NagaShader.html +++ b/doc/wgpu_hal/struct.NagaShader.html @@ -1,10 +1,10 @@ NagaShader in wgpu_hal - Rust
    wgpu_hal

    Struct NagaShader

    source
    pub struct NagaShader {
    -    pub module: Cow<'static, Module>,
    -    pub info: ModuleInfo,
    +    pub module: Cow<'static, Module>,
    +    pub info: ModuleInfo,
         pub debug_source: Option<DebugSource>,
     }
    Expand description

    Naga shader module.

    -

    Fields§

    §module: Cow<'static, Module>

    Shader module IR.

    -
    §info: ModuleInfo

    Analysis information of the module.

    +

    Fields§

    §module: Cow<'static, Module>

    Shader module IR.

    +
    §info: ModuleInfo

    Analysis information of the module.

    §debug_source: Option<DebugSource>

    Source codes for debug

    Trait Implementations§

    source§

    impl Debug for NagaShader

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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 @@ -16,7 +16,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.OpenDevice.html b/doc/wgpu_hal/struct.OpenDevice.html index 4d1284ed0430..73c4f0680c9f 100644 --- a/doc/wgpu_hal/struct.OpenDevice.html +++ b/doc/wgpu_hal/struct.OpenDevice.html @@ -21,7 +21,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.PassTimestampWrites.html b/doc/wgpu_hal/struct.PassTimestampWrites.html index 0a047b14fb34..fc8c20bee016 100644 --- a/doc/wgpu_hal/struct.PassTimestampWrites.html +++ b/doc/wgpu_hal/struct.PassTimestampWrites.html @@ -20,7 +20,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.PipelineCacheDescriptor.html b/doc/wgpu_hal/struct.PipelineCacheDescriptor.html index e461e1c2ed9b..45bcdafa1809 100644 --- a/doc/wgpu_hal/struct.PipelineCacheDescriptor.html +++ b/doc/wgpu_hal/struct.PipelineCacheDescriptor.html @@ -11,7 +11,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.PipelineLayoutDescriptor.html b/doc/wgpu_hal/struct.PipelineLayoutDescriptor.html index 6ea0fc0df1f6..8e99d2af5c6e 100644 --- a/doc/wgpu_hal/struct.PipelineLayoutDescriptor.html +++ b/doc/wgpu_hal/struct.PipelineLayoutDescriptor.html @@ -2,8 +2,8 @@ pub label: Label<'a>, pub flags: PipelineLayoutFlags, pub bind_group_layouts: &'a [&'a B], - pub push_constant_ranges: &'a [PushConstantRange], -}

    Fields§

    §label: Label<'a>§flags: PipelineLayoutFlags§bind_group_layouts: &'a [&'a B]§push_constant_ranges: &'a [PushConstantRange]

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBindGroupLayout + ?Sized> Clone for PipelineLayoutDescriptor<'a, B>

    source§

    fn clone(&self) -> PipelineLayoutDescriptor<'a, B>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBindGroupLayout + ?Sized> Debug for PipelineLayoutDescriptor<'a, B>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B> Freeze for PipelineLayoutDescriptor<'a, B>
    where + pub push_constant_ranges: &'a [PushConstantRange], +}

    Fields§

    §label: Label<'a>§flags: PipelineLayoutFlags§bind_group_layouts: &'a [&'a B]§push_constant_ranges: &'a [PushConstantRange]

    Trait Implementations§

    source§

    impl<'a, B: Clone + DynBindGroupLayout + ?Sized> Clone for PipelineLayoutDescriptor<'a, B>

    source§

    fn clone(&self) -> PipelineLayoutDescriptor<'a, B>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, B: Debug + DynBindGroupLayout + ?Sized> Debug for PipelineLayoutDescriptor<'a, B>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, B> Freeze for PipelineLayoutDescriptor<'a, B>
    where B: ?Sized,

    §

    impl<'a, B> RefUnwindSafe for PipelineLayoutDescriptor<'a, B>
    where B: RefUnwindSafe + ?Sized,

    §

    impl<'a, B> Send for PipelineLayoutDescriptor<'a, B>
    where B: ?Sized,

    §

    impl<'a, B> Sync for PipelineLayoutDescriptor<'a, B>
    where @@ -21,7 +21,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.PipelineLayoutFlags.html b/doc/wgpu_hal/struct.PipelineLayoutFlags.html index 0391ba26f7b1..00821452e358 100644 --- a/doc/wgpu_hal/struct.PipelineLayoutFlags.html +++ b/doc/wgpu_hal/struct.PipelineLayoutFlags.html @@ -80,7 +80,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.ProgrammableStage.html b/doc/wgpu_hal/struct.ProgrammableStage.html index 759bda2fda93..a539d2d9b0f4 100644 --- a/doc/wgpu_hal/struct.ProgrammableStage.html +++ b/doc/wgpu_hal/struct.ProgrammableStage.html @@ -1,13 +1,13 @@ ProgrammableStage in wgpu_hal - Rust
    wgpu_hal

    Struct ProgrammableStage

    source
    pub struct ProgrammableStage<'a, M: DynShaderModule + ?Sized> {
         pub module: &'a M,
         pub entry_point: &'a str,
    -    pub constants: &'a PipelineConstants,
    +    pub constants: &'a PipelineConstants,
         pub zero_initialize_workgroup_memory: bool,
     }
    Expand description

    Describes a programmable pipeline stage.

    Fields§

    §module: &'a M

    The compiled shader module for this stage.

    §entry_point: &'a str

    The name of the entry point in the compiled shader. There must be a function with this name in the shader.

    -
    §constants: &'a PipelineConstants

    Pipeline constants

    +
    §constants: &'a PipelineConstants

    Pipeline constants

    §zero_initialize_workgroup_memory: bool

    Whether workgroup scoped memory will be initialized with zero values for this stage.

    This is required by the WebGPU spec, but may have overhead which can be avoided for cross-platform applications

    @@ -29,7 +29,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.Rect.html b/doc/wgpu_hal/struct.Rect.html index 57b71d2cefa9..f45eaad3d96b 100644 --- a/doc/wgpu_hal/struct.Rect.html +++ b/doc/wgpu_hal/struct.Rect.html @@ -21,7 +21,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.RenderPassDescriptor.html b/doc/wgpu_hal/struct.RenderPassDescriptor.html index b628906f1ce8..15289f79a2ee 100644 --- a/doc/wgpu_hal/struct.RenderPassDescriptor.html +++ b/doc/wgpu_hal/struct.RenderPassDescriptor.html @@ -1,13 +1,13 @@ RenderPassDescriptor in wgpu_hal - Rust
    wgpu_hal

    Struct RenderPassDescriptor

    source
    pub struct RenderPassDescriptor<'a, Q: DynQuerySet + ?Sized, T: DynTextureView + ?Sized> {
         pub label: Label<'a>,
    -    pub extent: Extent3d,
    +    pub extent: Extent3d,
         pub sample_count: u32,
         pub color_attachments: &'a [Option<ColorAttachment<'a, T>>],
         pub depth_stencil_attachment: Option<DepthStencilAttachment<'a, T>>,
         pub multiview: Option<NonZeroU32>,
         pub timestamp_writes: Option<PassTimestampWrites<'a, Q>>,
         pub occlusion_query_set: Option<&'a Q>,
    -}

    Fields§

    §label: Label<'a>§extent: Extent3d§sample_count: u32§color_attachments: &'a [Option<ColorAttachment<'a, T>>]§depth_stencil_attachment: Option<DepthStencilAttachment<'a, T>>§multiview: Option<NonZeroU32>§timestamp_writes: Option<PassTimestampWrites<'a, Q>>§occlusion_query_set: Option<&'a Q>

    Trait Implementations§

    source§

    impl<'a, Q: Clone + DynQuerySet + ?Sized, T: Clone + DynTextureView + ?Sized> Clone for RenderPassDescriptor<'a, Q, T>

    source§

    fn clone(&self) -> RenderPassDescriptor<'a, Q, T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, Q: Debug + DynQuerySet + ?Sized, T: Debug + DynTextureView + ?Sized> Debug for RenderPassDescriptor<'a, Q, T>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, Q, T> Freeze for RenderPassDescriptor<'a, Q, T>
    where +}

    Fields§

    §label: Label<'a>§extent: Extent3d§sample_count: u32§color_attachments: &'a [Option<ColorAttachment<'a, T>>]§depth_stencil_attachment: Option<DepthStencilAttachment<'a, T>>§multiview: Option<NonZeroU32>§timestamp_writes: Option<PassTimestampWrites<'a, Q>>§occlusion_query_set: Option<&'a Q>

    Trait Implementations§

    source§

    impl<'a, Q: Clone + DynQuerySet + ?Sized, T: Clone + DynTextureView + ?Sized> Clone for RenderPassDescriptor<'a, Q, T>

    source§

    fn clone(&self) -> RenderPassDescriptor<'a, Q, T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, Q: Debug + DynQuerySet + ?Sized, T: Debug + DynTextureView + ?Sized> Debug for RenderPassDescriptor<'a, Q, T>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, Q, T> Freeze for RenderPassDescriptor<'a, Q, T>
    where Q: ?Sized, T: ?Sized,

    §

    impl<'a, Q, T> RefUnwindSafe for RenderPassDescriptor<'a, Q, T>
    where Q: RefUnwindSafe + ?Sized, @@ -31,7 +31,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.RenderPipelineDescriptor.html b/doc/wgpu_hal/struct.RenderPipelineDescriptor.html index 47adeec9c730..d295d6798a27 100644 --- a/doc/wgpu_hal/struct.RenderPipelineDescriptor.html +++ b/doc/wgpu_hal/struct.RenderPipelineDescriptor.html @@ -3,22 +3,22 @@ pub layout: &'a Pl, pub vertex_buffers: &'a [VertexBufferLayout<'a>], pub vertex_stage: ProgrammableStage<'a, M>, - pub primitive: PrimitiveState, - pub depth_stencil: Option<DepthStencilState>, - pub multisample: MultisampleState, + pub primitive: PrimitiveState, + pub depth_stencil: Option<DepthStencilState>, + pub multisample: MultisampleState, pub fragment_stage: Option<ProgrammableStage<'a, M>>, - pub color_targets: &'a [Option<ColorTargetState>], + pub color_targets: &'a [Option<ColorTargetState>], pub multiview: Option<NonZeroU32>, pub cache: Option<&'a Pc>, }
    Expand description

    Describes a render (graphics) pipeline.

    Fields§

    §label: Label<'a>§layout: &'a Pl

    The layout of bind groups for this pipeline.

    §vertex_buffers: &'a [VertexBufferLayout<'a>]

    The format of any vertex buffers used with this pipeline.

    §vertex_stage: ProgrammableStage<'a, M>

    The vertex stage for this pipeline.

    -
    §primitive: PrimitiveState

    The properties of the pipeline at the primitive assembly and rasterization level.

    -
    §depth_stencil: Option<DepthStencilState>

    The effect of draw calls on the depth and stencil aspects of the output target, if any.

    -
    §multisample: MultisampleState

    The multi-sampling properties of the pipeline.

    +
    §primitive: PrimitiveState

    The properties of the pipeline at the primitive assembly and rasterization level.

    +
    §depth_stencil: Option<DepthStencilState>

    The effect of draw calls on the depth and stencil aspects of the output target, if any.

    +
    §multisample: MultisampleState

    The multi-sampling properties of the pipeline.

    §fragment_stage: Option<ProgrammableStage<'a, M>>

    The fragment stage for this pipeline.

    -
    §color_targets: &'a [Option<ColorTargetState>]

    The effect of draw calls on the color aspect of the output target.

    +
    §color_targets: &'a [Option<ColorTargetState>]

    The effect of draw calls on the color aspect of the output target.

    §multiview: Option<NonZeroU32>

    If the pipeline will be used with a multiview render pass, this indicates how many array layers the attachments will have.

    §cache: Option<&'a Pc>

    The cache which will be used and filled when compiling this pipeline

    @@ -52,7 +52,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.SamplerDescriptor.html b/doc/wgpu_hal/struct.SamplerDescriptor.html index 02789fc1a270..e24cd6539cb5 100644 --- a/doc/wgpu_hal/struct.SamplerDescriptor.html +++ b/doc/wgpu_hal/struct.SamplerDescriptor.html @@ -1,14 +1,14 @@ SamplerDescriptor in wgpu_hal - Rust
    wgpu_hal

    Struct SamplerDescriptor

    source
    pub struct SamplerDescriptor<'a> {
         pub label: Label<'a>,
    -    pub address_modes: [AddressMode; 3],
    -    pub mag_filter: FilterMode,
    -    pub min_filter: FilterMode,
    -    pub mipmap_filter: FilterMode,
    +    pub address_modes: [AddressMode; 3],
    +    pub mag_filter: FilterMode,
    +    pub min_filter: FilterMode,
    +    pub mipmap_filter: FilterMode,
         pub lod_clamp: Range<f32>,
    -    pub compare: Option<CompareFunction>,
    +    pub compare: Option<CompareFunction>,
         pub anisotropy_clamp: u16,
    -    pub border_color: Option<SamplerBorderColor>,
    -}

    Fields§

    §label: Label<'a>§address_modes: [AddressMode; 3]§mag_filter: FilterMode§min_filter: FilterMode§mipmap_filter: FilterMode§lod_clamp: Range<f32>§compare: Option<CompareFunction>§anisotropy_clamp: u16§border_color: Option<SamplerBorderColor>

    Trait Implementations§

    source§

    impl<'a> Clone for SamplerDescriptor<'a>

    source§

    fn clone(&self) -> SamplerDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for SamplerDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for SamplerDescriptor<'a>

    §

    impl<'a> RefUnwindSafe for SamplerDescriptor<'a>

    §

    impl<'a> Send for SamplerDescriptor<'a>

    §

    impl<'a> Sync for SamplerDescriptor<'a>

    §

    impl<'a> Unpin for SamplerDescriptor<'a>

    §

    impl<'a> UnwindSafe for SamplerDescriptor<'a>

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + pub border_color: Option<SamplerBorderColor>, +}

    Fields§

    §label: Label<'a>§address_modes: [AddressMode; 3]§mag_filter: FilterMode§min_filter: FilterMode§mipmap_filter: FilterMode§lod_clamp: Range<f32>§compare: Option<CompareFunction>§anisotropy_clamp: u16§border_color: Option<SamplerBorderColor>

    Trait Implementations§

    source§

    impl<'a> Clone for SamplerDescriptor<'a>

    source§

    fn clone(&self) -> SamplerDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for SamplerDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for SamplerDescriptor<'a>

    §

    impl<'a> RefUnwindSafe for SamplerDescriptor<'a>

    §

    impl<'a> Send for SamplerDescriptor<'a>

    §

    impl<'a> Sync for SamplerDescriptor<'a>

    §

    impl<'a> Unpin for SamplerDescriptor<'a>

    §

    impl<'a> UnwindSafe for SamplerDescriptor<'a>

    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> CloneToUninit for T
    where @@ -20,7 +20,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.ShaderModuleDescriptor.html b/doc/wgpu_hal/struct.ShaderModuleDescriptor.html index 01c7ecf0d1e6..dd1ce5f4a8ea 100644 --- a/doc/wgpu_hal/struct.ShaderModuleDescriptor.html +++ b/doc/wgpu_hal/struct.ShaderModuleDescriptor.html @@ -1,8 +1,8 @@ ShaderModuleDescriptor in wgpu_hal - Rust
    wgpu_hal

    Struct ShaderModuleDescriptor

    source
    pub struct ShaderModuleDescriptor<'a> {
         pub label: Label<'a>,
    -    pub runtime_checks: ShaderRuntimeChecks,
    -}

    Fields§

    §label: Label<'a>§runtime_checks: ShaderRuntimeChecks

    §Safety

    -

    See the documentation for each flag in ShaderRuntimeChecks.

    + pub runtime_checks: ShaderRuntimeChecks, +}

    Fields§

    §label: Label<'a>§runtime_checks: ShaderRuntimeChecks

    §Safety

    +

    See the documentation for each flag in ShaderRuntimeChecks.

    Auto Trait Implementations§

    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 @@ -13,7 +13,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.StateTransition.html b/doc/wgpu_hal/struct.StateTransition.html index 2a74deeddaa7..ef2ea95b3e57 100644 --- a/doc/wgpu_hal/struct.StateTransition.html +++ b/doc/wgpu_hal/struct.StateTransition.html @@ -20,7 +20,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.SurfaceCapabilities.html b/doc/wgpu_hal/struct.SurfaceCapabilities.html index dcd6d486f2df..50eb31d9dc3c 100644 --- a/doc/wgpu_hal/struct.SurfaceCapabilities.html +++ b/doc/wgpu_hal/struct.SurfaceCapabilities.html @@ -1,13 +1,13 @@ SurfaceCapabilities in wgpu_hal - Rust
    wgpu_hal

    Struct SurfaceCapabilities

    source
    pub struct SurfaceCapabilities {
    -    pub formats: Vec<TextureFormat>,
    +    pub formats: Vec<TextureFormat>,
         pub maximum_frame_latency: RangeInclusive<u32>,
    -    pub current_extent: Option<Extent3d>,
    +    pub current_extent: Option<Extent3d>,
         pub usage: TextureUses,
    -    pub present_modes: Vec<PresentMode>,
    -    pub composite_alpha_modes: Vec<CompositeAlphaMode>,
    +    pub present_modes: Vec<PresentMode>,
    +    pub composite_alpha_modes: Vec<CompositeAlphaMode>,
     }
    Expand description

    Describes information about what a Surface’s presentation capabilities are. Fetch this with Adapter::surface_capabilities.

    -

    Fields§

    §formats: Vec<TextureFormat>

    List of supported texture formats.

    +

    Fields§

    §formats: Vec<TextureFormat>

    List of supported texture formats.

    Must be at least one.

    §maximum_frame_latency: RangeInclusive<u32>

    Range for the number of queued frames.

    This adjusts either the swapchain frame count to value + 1 - or sets SetMaximumFrameLatency to the value given, @@ -16,12 +16,12 @@

  • maximum_frame_latency.start must be at least 1.
  • maximum_frame_latency.end must be larger or equal to maximum_frame_latency.start.
  • -
    §current_extent: Option<Extent3d>

    Current extent of the surface, if known.

    +
    §current_extent: Option<Extent3d>

    Current extent of the surface, if known.

    §usage: TextureUses

    Supported texture usage flags.

    Must have at least TextureUses::COLOR_TARGET

    -
    §present_modes: Vec<PresentMode>

    List of supported V-sync modes.

    +
    §present_modes: Vec<PresentMode>

    List of supported V-sync modes.

    Must be at least one.

    -
    §composite_alpha_modes: Vec<CompositeAlphaMode>

    List of supported alpha composition modes.

    +
    §composite_alpha_modes: Vec<CompositeAlphaMode>

    List of supported alpha composition modes.

    Must be at least one.

    Trait Implementations§

    source§

    impl Clone for SurfaceCapabilities

    source§

    fn clone(&self) -> SurfaceCapabilities

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SurfaceCapabilities

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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 @@ -35,7 +35,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.SurfaceConfiguration.html b/doc/wgpu_hal/struct.SurfaceConfiguration.html index c9409630ea3a..dbb0d37826bf 100644 --- a/doc/wgpu_hal/struct.SurfaceConfiguration.html +++ b/doc/wgpu_hal/struct.SurfaceConfiguration.html @@ -1,20 +1,20 @@ SurfaceConfiguration in wgpu_hal - Rust
    wgpu_hal

    Struct SurfaceConfiguration

    source
    pub struct SurfaceConfiguration {
         pub maximum_frame_latency: u32,
    -    pub present_mode: PresentMode,
    -    pub composite_alpha_mode: CompositeAlphaMode,
    -    pub format: TextureFormat,
    -    pub extent: Extent3d,
    +    pub present_mode: PresentMode,
    +    pub composite_alpha_mode: CompositeAlphaMode,
    +    pub format: TextureFormat,
    +    pub extent: Extent3d,
         pub usage: TextureUses,
    -    pub view_formats: Vec<TextureFormat>,
    +    pub view_formats: Vec<TextureFormat>,
     }

    Fields§

    §maximum_frame_latency: u32

    Maximum number of queued frames. Must be in SurfaceCapabilities::maximum_frame_latency range.

    -
    §present_mode: PresentMode

    Vertical synchronization mode.

    -
    §composite_alpha_mode: CompositeAlphaMode

    Alpha composition mode.

    -
    §format: TextureFormat

    Format of the surface textures.

    -
    §extent: Extent3d

    Requested texture extent. Must be in +

    §present_mode: PresentMode

    Vertical synchronization mode.

    +
    §composite_alpha_mode: CompositeAlphaMode

    Alpha composition mode.

    +
    §format: TextureFormat

    Format of the surface textures.

    +
    §extent: Extent3d

    Requested texture extent. Must be in SurfaceCapabilities::extents range.

    §usage: TextureUses

    Allowed usage of surface textures,

    -
    §view_formats: Vec<TextureFormat>

    Allows views of swapchain texture to have a different format +

    §view_formats: Vec<TextureFormat>

    Allows views of swapchain texture to have a different format than the texture does.

    Trait Implementations§

    source§

    impl Clone for SurfaceConfiguration

    source§

    fn clone(&self) -> SurfaceConfiguration

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SurfaceConfiguration

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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 @@ -28,7 +28,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.TextureBarrier.html b/doc/wgpu_hal/struct.TextureBarrier.html index 6c573154370f..c47eacf321a0 100644 --- a/doc/wgpu_hal/struct.TextureBarrier.html +++ b/doc/wgpu_hal/struct.TextureBarrier.html @@ -1,8 +1,8 @@ TextureBarrier in wgpu_hal - Rust
    wgpu_hal

    Struct TextureBarrier

    source
    pub struct TextureBarrier<'a, T: DynTexture + ?Sized> {
         pub texture: &'a T,
    -    pub range: ImageSubresourceRange,
    +    pub range: ImageSubresourceRange,
         pub usage: StateTransition<TextureUses>,
    -}

    Fields§

    §texture: &'a T§range: ImageSubresourceRange§usage: StateTransition<TextureUses>

    Trait Implementations§

    source§

    impl<'a, T: Clone + DynTexture + ?Sized> Clone for TextureBarrier<'a, T>

    source§

    fn clone(&self) -> TextureBarrier<'a, T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, T: Debug + DynTexture + ?Sized> Debug for TextureBarrier<'a, T>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, T> Freeze for TextureBarrier<'a, T>
    where +}

    Fields§

    §texture: &'a T§range: ImageSubresourceRange§usage: StateTransition<TextureUses>

    Trait Implementations§

    source§

    impl<'a, T: Clone + DynTexture + ?Sized> Clone for TextureBarrier<'a, T>

    source§

    fn clone(&self) -> TextureBarrier<'a, T>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a, T: Debug + DynTexture + ?Sized> Debug for TextureBarrier<'a, T>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a, T> Freeze for TextureBarrier<'a, T>
    where T: ?Sized,

    §

    impl<'a, T> RefUnwindSafe for TextureBarrier<'a, T>
    where T: RefUnwindSafe + ?Sized,

    §

    impl<'a, T> Send for TextureBarrier<'a, T>
    where T: ?Sized,

    §

    impl<'a, T> Sync for TextureBarrier<'a, T>
    where @@ -20,7 +20,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.TextureBinding.html b/doc/wgpu_hal/struct.TextureBinding.html index 44841a65a484..ff920543a70a 100644 --- a/doc/wgpu_hal/struct.TextureBinding.html +++ b/doc/wgpu_hal/struct.TextureBinding.html @@ -19,7 +19,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.TextureCopy.html b/doc/wgpu_hal/struct.TextureCopy.html index 991301ca42dc..dfd39d3604c2 100644 --- a/doc/wgpu_hal/struct.TextureCopy.html +++ b/doc/wgpu_hal/struct.TextureCopy.html @@ -18,7 +18,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.TextureCopyBase.html b/doc/wgpu_hal/struct.TextureCopyBase.html index 8245ed45108f..3a56bdcb1a1d 100644 --- a/doc/wgpu_hal/struct.TextureCopyBase.html +++ b/doc/wgpu_hal/struct.TextureCopyBase.html @@ -1,9 +1,9 @@ TextureCopyBase in wgpu_hal - Rust
    wgpu_hal

    Struct TextureCopyBase

    source
    pub struct TextureCopyBase {
         pub mip_level: u32,
         pub array_layer: u32,
    -    pub origin: Origin3d,
    +    pub origin: Origin3d,
         pub aspect: FormatAspects,
    -}

    Fields§

    §mip_level: u32§array_layer: u32§origin: Origin3d

    Origin within a texture. +}

    Fields§

    §mip_level: u32§array_layer: u32§origin: Origin3d

    Origin within a texture. Note: for 1D and 2D textures, Z must be 0.

    §aspect: FormatAspects

    Implementations§

    Trait Implementations§

    source§

    impl Clone for TextureCopyBase

    source§

    fn clone(&self) -> TextureCopyBase

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for TextureCopyBase

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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 @@ -17,7 +17,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.TextureDescriptor.html b/doc/wgpu_hal/struct.TextureDescriptor.html index 1bc070b25d2f..6719b34882c0 100644 --- a/doc/wgpu_hal/struct.TextureDescriptor.html +++ b/doc/wgpu_hal/struct.TextureDescriptor.html @@ -1,14 +1,14 @@ TextureDescriptor in wgpu_hal - Rust
    wgpu_hal

    Struct TextureDescriptor

    source
    pub struct TextureDescriptor<'a> {
         pub label: Label<'a>,
    -    pub size: Extent3d,
    +    pub size: Extent3d,
         pub mip_level_count: u32,
         pub sample_count: u32,
    -    pub dimension: TextureDimension,
    -    pub format: TextureFormat,
    +    pub dimension: TextureDimension,
    +    pub format: TextureFormat,
         pub usage: TextureUses,
         pub memory_flags: MemoryFlags,
    -    pub view_formats: Vec<TextureFormat>,
    -}

    Fields§

    §label: Label<'a>§size: Extent3d§mip_level_count: u32§sample_count: u32§dimension: TextureDimension§format: TextureFormat§usage: TextureUses§memory_flags: MemoryFlags§view_formats: Vec<TextureFormat>

    Allows views of this texture to have a different format + pub view_formats: Vec<TextureFormat>, +}

    Fields§

    §label: Label<'a>§size: Extent3d§mip_level_count: u32§sample_count: u32§dimension: TextureDimension§format: TextureFormat§usage: TextureUses§memory_flags: MemoryFlags§view_formats: Vec<TextureFormat>

    Allows views of this texture to have a different format than the texture does.

    Implementations§

    Trait Implementations§

    source§

    impl<'a> Clone for TextureDescriptor<'a>

    source§

    fn clone(&self) -> TextureDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for TextureDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for TextureDescriptor<'a>

    §

    impl<'a> RefUnwindSafe for TextureDescriptor<'a>

    §

    impl<'a> Send for TextureDescriptor<'a>

    §

    impl<'a> Sync for TextureDescriptor<'a>

    §

    impl<'a> Unpin for TextureDescriptor<'a>

    §

    impl<'a> UnwindSafe for TextureDescriptor<'a>

    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 @@ -22,7 +22,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.TextureFormatCapabilities.html b/doc/wgpu_hal/struct.TextureFormatCapabilities.html index 15b8c6ca1893..d986807622ec 100644 --- a/doc/wgpu_hal/struct.TextureFormatCapabilities.html +++ b/doc/wgpu_hal/struct.TextureFormatCapabilities.html @@ -91,7 +91,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.TextureUses.html b/doc/wgpu_hal/struct.TextureUses.html index 51ad7866c10f..5fa47817cbcf 100644 --- a/doc/wgpu_hal/struct.TextureUses.html +++ b/doc/wgpu_hal/struct.TextureUses.html @@ -94,7 +94,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.TextureViewDescriptor.html b/doc/wgpu_hal/struct.TextureViewDescriptor.html index cb55b3bf83e3..641b7b103426 100644 --- a/doc/wgpu_hal/struct.TextureViewDescriptor.html +++ b/doc/wgpu_hal/struct.TextureViewDescriptor.html @@ -1,16 +1,16 @@ TextureViewDescriptor in wgpu_hal - Rust
    wgpu_hal

    Struct TextureViewDescriptor

    source
    pub struct TextureViewDescriptor<'a> {
         pub label: Label<'a>,
    -    pub format: TextureFormat,
    -    pub dimension: TextureViewDimension,
    +    pub format: TextureFormat,
    +    pub dimension: TextureViewDimension,
         pub usage: TextureUses,
    -    pub range: ImageSubresourceRange,
    +    pub range: ImageSubresourceRange,
     }
    Expand description

    TextureView descriptor.

    Valid usage: . - format has to be the same as TextureDescriptor::format . - dimension has to be compatible with TextureDescriptor::dimension . - usage has to be a subset of TextureDescriptor::usage . - range has to be a subset of parent texture

    -

    Fields§

    §label: Label<'a>§format: TextureFormat§dimension: TextureViewDimension§usage: TextureUses§range: ImageSubresourceRange

    Trait Implementations§

    source§

    impl<'a> Clone for TextureViewDescriptor<'a>

    source§

    fn clone(&self) -> TextureViewDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for TextureViewDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Fields§

    §label: Label<'a>§format: TextureFormat§dimension: TextureViewDimension§usage: TextureUses§range: ImageSubresourceRange

    Trait Implementations§

    source§

    impl<'a> Clone for TextureViewDescriptor<'a>

    source§

    fn clone(&self) -> TextureViewDescriptor<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for TextureViewDescriptor<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -22,7 +22,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.TlasInstance.html b/doc/wgpu_hal/struct.TlasInstance.html index c201b84a161d..002f56e9e443 100644 --- a/doc/wgpu_hal/struct.TlasInstance.html +++ b/doc/wgpu_hal/struct.TlasInstance.html @@ -15,7 +15,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.ValidationCanary.html b/doc/wgpu_hal/struct.ValidationCanary.html index f77a67ee4f43..b7fb20b19b7f 100644 --- a/doc/wgpu_hal/struct.ValidationCanary.html +++ b/doc/wgpu_hal/struct.ValidationCanary.html @@ -13,7 +13,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/struct.VertexBufferLayout.html b/doc/wgpu_hal/struct.VertexBufferLayout.html index 9fa676fba182..2bea275d4eaa 100644 --- a/doc/wgpu_hal/struct.VertexBufferLayout.html +++ b/doc/wgpu_hal/struct.VertexBufferLayout.html @@ -1,11 +1,11 @@ VertexBufferLayout in wgpu_hal - Rust
    wgpu_hal

    Struct VertexBufferLayout

    source
    pub struct VertexBufferLayout<'a> {
    -    pub array_stride: BufferAddress,
    -    pub step_mode: VertexStepMode,
    -    pub attributes: &'a [VertexAttribute],
    +    pub array_stride: BufferAddress,
    +    pub step_mode: VertexStepMode,
    +    pub attributes: &'a [VertexAttribute],
     }
    Expand description

    Describes how the vertex buffer is interpreted.

    -

    Fields§

    §array_stride: BufferAddress

    The stride, in bytes, between elements of this buffer.

    -
    §step_mode: VertexStepMode

    How often this vertex buffer is “stepped” forward.

    -
    §attributes: &'a [VertexAttribute]

    The list of attributes which comprise a single vertex.

    +

    Fields§

    §array_stride: BufferAddress

    The stride, in bytes, between elements of this buffer.

    +
    §step_mode: VertexStepMode

    How often this vertex buffer is “stepped” forward.

    +
    §attributes: &'a [VertexAttribute]

    The list of attributes which comprise a single vertex.

    Trait Implementations§

    source§

    impl<'a> Clone for VertexBufferLayout<'a>

    source§

    fn clone(&self) -> VertexBufferLayout<'a>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'a> Debug for VertexBufferLayout<'a>

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl<'a> Freeze for VertexBufferLayout<'a>

    §

    impl<'a> RefUnwindSafe for VertexBufferLayout<'a>

    §

    impl<'a> Send for VertexBufferLayout<'a>

    §

    impl<'a> Sync for VertexBufferLayout<'a>

    §

    impl<'a> Unpin for VertexBufferLayout<'a>

    §

    impl<'a> UnwindSafe for VertexBufferLayout<'a>

    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 @@ -18,7 +18,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/trait.Adapter.html b/doc/wgpu_hal/trait.Adapter.html index f1efd68c3a5a..89d32aefe2c7 100644 --- a/doc/wgpu_hal/trait.Adapter.html +++ b/doc/wgpu_hal/trait.Adapter.html @@ -1,35 +1,35 @@ -Adapter in wgpu_hal - Rust
    wgpu_hal

    Trait Adapter

    source
    pub trait Adapter: WasmNotSendSync {
    +Adapter in wgpu_hal - Rust
    wgpu_hal

    Trait Adapter

    source
    pub trait Adapter: WasmNotSendSync {
         type A: Api;
     
         // Required methods
         unsafe fn open(
             &self,
    -        features: Features,
    -        limits: &Limits,
    -        memory_hints: &MemoryHints,
    +        features: Features,
    +        limits: &Limits,
    +        memory_hints: &MemoryHints,
         ) -> Result<OpenDevice<Self::A>, DeviceError>;
         unsafe fn texture_format_capabilities(
             &self,
    -        format: TextureFormat,
    +        format: TextureFormat,
         ) -> TextureFormatCapabilities;
         unsafe fn surface_capabilities(
             &self,
             surface: &<Self::A as Api>::Surface,
         ) -> Option<SurfaceCapabilities>;
    -    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp;
    +    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp;
     }

    Required Associated Types§

    source

    type A: Api

    Required Methods§

    source

    unsafe fn open( &self, - features: Features, - limits: &Limits, - memory_hints: &MemoryHints, + features: Features, + limits: &Limits, + memory_hints: &MemoryHints, ) -> Result<OpenDevice<Self::A>, DeviceError>

    source

    unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities

    Return the set of supported capabilities for a texture format.

    source

    unsafe fn surface_capabilities( &self, surface: &<Self::A as Api>::Surface, ) -> Option<SurfaceCapabilities>

    Returns the capabilities of working with a specified surface.

    None means presentation is not supported for it.

    -
    source

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Creates a PresentationTimestamp using the adapter’s WSI.

    +
    source

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Creates a PresentationTimestamp using the adapter’s WSI.

    Implementors§

    source§

    impl Adapter for Context

    source§

    type A = Api

    source§

    impl Adapter for wgpu_hal::gles::Adapter

    Available on gles only.
    source§

    type A = Api

    source§

    impl Adapter for wgpu_hal::vulkan::Adapter

    Available on vulkan only.
    source§

    type A = Api

    \ No newline at end of file diff --git a/doc/wgpu_hal/trait.CommandEncoder.html b/doc/wgpu_hal/trait.CommandEncoder.html index 60f6c26c28b0..ac8a620f53c5 100644 --- a/doc/wgpu_hal/trait.CommandEncoder.html +++ b/doc/wgpu_hal/trait.CommandEncoder.html @@ -1,4 +1,4 @@ -CommandEncoder in wgpu_hal - Rust
    wgpu_hal

    Trait CommandEncoder

    source
    pub trait CommandEncoder: WasmNotSendSync + Debug {
    +CommandEncoder in wgpu_hal - Rust
    wgpu_hal

    Trait CommandEncoder

    source
    pub trait CommandEncoder: WasmNotSendSync + Debug {
         type A: Api;
     
     
    Show 43 methods // Required methods @@ -56,12 +56,12 @@ layout: &<Self::A as Api>::PipelineLayout, index: u32, group: &<Self::A as Api>::BindGroup, - dynamic_offsets: &[DynamicOffset], + dynamic_offsets: &[DynamicOffset], ); unsafe fn set_push_constants( &mut self, layout: &<Self::A as Api>::PipelineLayout, - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], ); @@ -89,8 +89,8 @@ set: &<Self::A as Api>::QuerySet, range: Range<u32>, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, - stride: BufferSize, + offset: BufferAddress, + stride: BufferSize, ); unsafe fn begin_render_pass( &mut self, @@ -104,7 +104,7 @@ unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, <Self::A as Api>::Buffer>, - format: IndexFormat, + format: IndexFormat, ); unsafe fn set_vertex_buffer<'a>( &mut self, @@ -133,29 +133,29 @@ unsafe fn draw_indirect( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, ); unsafe fn draw_indexed_indirect( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, ); unsafe fn draw_indirect_count( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &<Self::A as Api>::Buffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, ); unsafe fn draw_indexed_indirect_count( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &<Self::A as Api>::Buffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, ); unsafe fn begin_compute_pass( @@ -171,7 +171,7 @@ unsafe fn dispatch_indirect( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, ); unsafe fn build_acceleration_structures<'a, T>( &mut self, @@ -322,7 +322,7 @@
    §Safety
    layout: &<Self::A as Api>::PipelineLayout, index: u32, group: &<Self::A as Api>::BindGroup, - dynamic_offsets: &[DynamicOffset], + dynamic_offsets: &[DynamicOffset], )

    Sets the bind group at index to group.

    If this is not the first call to set_bind_group within the current render or compute pass:

    @@ -353,11 +353,11 @@
    §Safety
  • The length of dynamic_offsets must match the number of buffer -bindings with dynamic offsets in the relevant bind group +bindings with dynamic offsets in the relevant bind group layout.

  • -

    If those buffer bindings are ordered by increasing binding number +

    If those buffer bindings are ordered by increasing binding number and paired with elements from dynamic_offsets, then each offset must be a valid offset for the binding’s corresponding buffer in group.

  • @@ -365,7 +365,7 @@
    §Safety
    source

    unsafe fn set_push_constants( &mut self, layout: &<Self::A as Api>::PipelineLayout, - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], )

    Sets a range in push constant data.

    @@ -396,8 +396,8 @@
    §Safety
    set: &<Self::A as Api>::QuerySet, range: Range<u32>, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, - stride: BufferSize, + offset: BufferAddress, + stride: BufferSize, )
    source

    unsafe fn begin_render_pass( &mut self, desc: &RenderPassDescriptor<'_, <Self::A as Api>::QuerySet, <Self::A as Api>::TextureView>, @@ -434,7 +434,7 @@

    §Safety
    )
    source

    unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, <Self::A as Api>::Buffer>, - format: IndexFormat, + format: IndexFormat, )

    source

    unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, @@ -455,26 +455,26 @@

    §Safety
    )
    source

    unsafe fn draw_indirect( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source

    unsafe fn draw_indexed_indirect( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source

    unsafe fn draw_indirect_count( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &<Self::A as Api>::Buffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source

    unsafe fn draw_indexed_indirect_count( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &<Self::A as Api>::Buffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source

    unsafe fn begin_compute_pass( &mut self, @@ -510,7 +510,7 @@

    §Safety
    )
    source

    unsafe fn dispatch(&mut self, count: [u32; 3])

    source

    unsafe fn dispatch_indirect( &mut self, buffer: &<Self::A as Api>::Buffer, - offset: BufferAddress, + offset: BufferAddress, )

    source

    unsafe fn build_acceleration_structures<'a, T>( &mut self, descriptor_count: u32, diff --git a/doc/wgpu_hal/trait.Device.html b/doc/wgpu_hal/trait.Device.html index bfc658ef986c..60282a1c3dee 100644 --- a/doc/wgpu_hal/trait.Device.html +++ b/doc/wgpu_hal/trait.Device.html @@ -1,4 +1,4 @@ -Device in wgpu_hal - Rust
    wgpu_hal

    Trait Device

    source
    pub trait Device: WasmNotSendSync {
    +Device in wgpu_hal - Rust
    wgpu_hal

    Trait Device

    source
    pub trait Device: WasmNotSendSync {
         type A: Api;
     
     
    Show 46 methods // Required methods @@ -103,7 +103,7 @@ ); unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Label<'_>>, + desc: &QuerySetDescriptor<Label<'_>>, ) -> Result<<Self::A as Api>::QuerySet, DeviceError>; unsafe fn destroy_query_set(&self, set: <Self::A as Api>::QuerySet); unsafe fn create_fence( @@ -133,13 +133,13 @@ unsafe fn get_acceleration_structure_device_address( &self, acceleration_structure: &<Self::A as Api>::AccelerationStructure, - ) -> BufferAddress; + ) -> BufferAddress; unsafe fn destroy_acceleration_structure( &self, acceleration_structure: <Self::A as Api>::AccelerationStructure, ); fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>; - fn get_internal_counters(&self) -> HalCounters; + fn get_internal_counters(&self) -> HalCounters; // Provided methods fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]> { ... } @@ -147,7 +147,7 @@ &self, cache: &<Self::A as Api>::PipelineCache, ) -> Option<Vec<u8>> { ... } - fn generate_allocator_report(&self) -> Option<AllocatorReport> { ... } + fn generate_allocator_report(&self) -> Option<AllocatorReport> { ... }
    }
    Expand description

    A connection to a GPU and a pool of resources to use with it.

    A wgpu-hal Device represents an open connection to a specific graphics processor, controlled via the backend Device::A. A Device is mostly @@ -370,7 +370,7 @@

    §Safety
    desc: &PipelineCacheDescriptor<'_>, ) -> Result<<Self::A as Api>::PipelineCache, PipelineCacheError>

    source

    unsafe fn destroy_pipeline_cache(&self, cache: <Self::A as Api>::PipelineCache)

    source

    unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Label<'_>>, + desc: &QuerySetDescriptor<Label<'_>>, ) -> Result<<Self::A as Api>::QuerySet, DeviceError>

    source

    unsafe fn destroy_query_set(&self, set: <Self::A as Api>::QuerySet)

    source

    unsafe fn create_fence(&self) -> Result<<Self::A as Api>::Fence, DeviceError>

    source

    unsafe fn destroy_fence(&self, fence: <Self::A as Api>::Fence)

    source

    unsafe fn get_fence_value( &self, fence: &<Self::A as Api>::Fence, @@ -400,10 +400,10 @@

    §Safety
    ) -> AccelerationStructureBuildSizes
    source

    unsafe fn get_acceleration_structure_device_address( &self, acceleration_structure: &<Self::A as Api>::AccelerationStructure, -) -> BufferAddress

    source

    unsafe fn destroy_acceleration_structure( +) -> BufferAddress

    source

    unsafe fn destroy_acceleration_structure( &self, acceleration_structure: <Self::A as Api>::AccelerationStructure, -)

    source

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source

    fn get_internal_counters(&self) -> HalCounters

    Provided Methods§

    Provided Methods§

    source

    fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]>

    source

    unsafe fn pipeline_cache_get_data( &self, cache: &<Self::A as Api>::PipelineCache, -) -> Option<Vec<u8>>

    source

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl Device for Context

    source§

    type A = Api

    source§

    impl Device for wgpu_hal::gles::Device

    Available on gles only.
    source§

    type A = Api

    source§

    impl Device for wgpu_hal::vulkan::Device

    Available on vulkan only.
    source§

    type A = Api

    \ No newline at end of file +) -> Option<Vec<u8>>
    source

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl Device for Context

    source§

    type A = Api

    source§

    impl Device for wgpu_hal::gles::Device

    Available on gles only.
    source§

    type A = Api

    source§

    impl Device for wgpu_hal::vulkan::Device

    Available on vulkan only.
    source§

    type A = Api

    \ No newline at end of file diff --git a/doc/wgpu_hal/trait.DynAdapter.html b/doc/wgpu_hal/trait.DynAdapter.html index ef5356715670..f3cabeadbbb8 100644 --- a/doc/wgpu_hal/trait.DynAdapter.html +++ b/doc/wgpu_hal/trait.DynAdapter.html @@ -2,28 +2,28 @@ // Required methods unsafe fn open( &self, - features: Features, - limits: &Limits, - memory_hints: &MemoryHints, + features: Features, + limits: &Limits, + memory_hints: &MemoryHints, ) -> Result<DynOpenDevice, DeviceError>; unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities; unsafe fn surface_capabilities( &self, surface: &dyn DynSurface, ) -> Option<SurfaceCapabilities>; - unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp; + unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp; }

    Required Methods§

    source

    unsafe fn open( &self, - features: Features, - limits: &Limits, - memory_hints: &MemoryHints, + features: Features, + limits: &Limits, + memory_hints: &MemoryHints, ) -> Result<DynOpenDevice, DeviceError>

    source

    unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities

    source

    unsafe fn surface_capabilities( &self, surface: &dyn DynSurface, -) -> Option<SurfaceCapabilities>

    source

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Implementors§

    \ No newline at end of file +) -> Option<SurfaceCapabilities>
    source

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Implementors§

    \ No newline at end of file diff --git a/doc/wgpu_hal/trait.DynCommandEncoder.html b/doc/wgpu_hal/trait.DynCommandEncoder.html index 1d10c5287d9a..bb1772a6f522 100644 --- a/doc/wgpu_hal/trait.DynCommandEncoder.html +++ b/doc/wgpu_hal/trait.DynCommandEncoder.html @@ -56,12 +56,12 @@ layout: &dyn DynPipelineLayout, index: u32, group: Option<&dyn DynBindGroup>, - dynamic_offsets: &[DynamicOffset], + dynamic_offsets: &[DynamicOffset], ); unsafe fn set_push_constants( &mut self, layout: &dyn DynPipelineLayout, - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], ); @@ -77,8 +77,8 @@ set: &dyn DynQuerySet, range: Range<u32>, buffer: &dyn DynBuffer, - offset: BufferAddress, - stride: BufferSize, + offset: BufferAddress, + stride: BufferSize, ); unsafe fn begin_render_pass( &mut self, @@ -89,7 +89,7 @@ unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, dyn DynBuffer>, - format: IndexFormat, + format: IndexFormat, ); unsafe fn set_vertex_buffer<'a>( &mut self, @@ -118,29 +118,29 @@ unsafe fn draw_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, ); unsafe fn draw_indexed_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, ); unsafe fn draw_indirect_count( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &dyn DynBuffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, ); unsafe fn draw_indexed_indirect_count( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &dyn DynBuffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, ); unsafe fn begin_compute_pass( @@ -153,7 +153,7 @@ unsafe fn dispatch_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, ); unsafe fn build_acceleration_structures<'a>( &mut self, @@ -198,11 +198,11 @@ layout: &dyn DynPipelineLayout, index: u32, group: Option<&dyn DynBindGroup>, - dynamic_offsets: &[DynamicOffset], + dynamic_offsets: &[DynamicOffset], )
    source

    unsafe fn set_push_constants( &mut self, layout: &dyn DynPipelineLayout, - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], )

    source

    unsafe fn insert_debug_marker(&mut self, label: &str)

    source

    unsafe fn begin_debug_marker(&mut self, group_label: &str)

    source

    unsafe fn end_debug_marker(&mut self)

    source

    unsafe fn begin_query(&mut self, set: &dyn DynQuerySet, index: u32)

    source

    unsafe fn end_query(&mut self, set: &dyn DynQuerySet, index: u32)

    source

    unsafe fn write_timestamp(&mut self, set: &dyn DynQuerySet, index: u32)

    source

    unsafe fn reset_queries(&mut self, set: &dyn DynQuerySet, range: Range<u32>)

    source

    unsafe fn copy_query_results( @@ -210,15 +210,15 @@ set: &dyn DynQuerySet, range: Range<u32>, buffer: &dyn DynBuffer, - offset: BufferAddress, - stride: BufferSize, + offset: BufferAddress, + stride: BufferSize, )

    source

    unsafe fn begin_render_pass( &mut self, desc: &RenderPassDescriptor<'_, dyn DynQuerySet, dyn DynTextureView>, )

    source

    unsafe fn end_render_pass(&mut self)

    source

    unsafe fn set_render_pipeline(&mut self, pipeline: &dyn DynRenderPipeline)

    source

    unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, dyn DynBuffer>, - format: IndexFormat, + format: IndexFormat, )

    source

    unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, @@ -239,26 +239,26 @@ )

    source

    unsafe fn draw_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source

    unsafe fn draw_indexed_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source

    unsafe fn draw_indirect_count( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &dyn DynBuffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source

    unsafe fn draw_indexed_indirect_count( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &dyn DynBuffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source

    unsafe fn begin_compute_pass( &mut self, @@ -266,7 +266,7 @@ )

    source

    unsafe fn end_compute_pass(&mut self)

    source

    unsafe fn set_compute_pipeline(&mut self, pipeline: &dyn DynComputePipeline)

    source

    unsafe fn dispatch(&mut self, count: [u32; 3])

    source

    unsafe fn dispatch_indirect( &mut self, buffer: &dyn DynBuffer, - offset: BufferAddress, + offset: BufferAddress, )

    source

    unsafe fn build_acceleration_structures<'a>( &mut self, descriptors: &'a [BuildAccelerationStructureDescriptor<'a, dyn DynBuffer, dyn DynAccelerationStructure>], diff --git a/doc/wgpu_hal/trait.DynDevice.html b/doc/wgpu_hal/trait.DynDevice.html index c0863da6e865..cb906c5e620b 100644 --- a/doc/wgpu_hal/trait.DynDevice.html +++ b/doc/wgpu_hal/trait.DynDevice.html @@ -93,7 +93,7 @@ unsafe fn destroy_pipeline_cache(&self, cache: Box<dyn DynPipelineCache>); unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Label<'_>>, + desc: &QuerySetDescriptor<Label<'_>>, ) -> Result<Box<dyn DynQuerySet>, DeviceError>; unsafe fn destroy_query_set(&self, set: Box<dyn DynQuerySet>); unsafe fn create_fence(&self) -> Result<Box<dyn DynFence>, DeviceError>; @@ -125,14 +125,14 @@ unsafe fn get_acceleration_structure_device_address( &self, acceleration_structure: &dyn DynAccelerationStructure, - ) -> BufferAddress; + ) -> BufferAddress; unsafe fn destroy_acceleration_structure( &self, acceleration_structure: Box<dyn DynAccelerationStructure>, ); fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>; - fn get_internal_counters(&self) -> HalCounters; - fn generate_allocator_report(&self) -> Option<AllocatorReport>; + fn get_internal_counters(&self) -> HalCounters; + fn generate_allocator_report(&self) -> Option<AllocatorReport>; // Provided method fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]> { ... } @@ -194,7 +194,7 @@ desc: &PipelineCacheDescriptor<'_>, ) -> Result<Box<dyn DynPipelineCache>, PipelineCacheError>

    source

    unsafe fn destroy_pipeline_cache(&self, cache: Box<dyn DynPipelineCache>)

    source

    unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Label<'_>>, + desc: &QuerySetDescriptor<Label<'_>>, ) -> Result<Box<dyn DynQuerySet>, DeviceError>

    source

    unsafe fn destroy_query_set(&self, set: Box<dyn DynQuerySet>)

    source

    unsafe fn create_fence(&self) -> Result<Box<dyn DynFence>, DeviceError>

    source

    unsafe fn destroy_fence(&self, fence: Box<dyn DynFence>)

    source

    unsafe fn get_fence_value( &self, fence: &dyn DynFence, @@ -215,7 +215,7 @@ ) -> AccelerationStructureBuildSizes

    source

    unsafe fn get_acceleration_structure_device_address( &self, acceleration_structure: &dyn DynAccelerationStructure, -) -> BufferAddress

    source

    unsafe fn destroy_acceleration_structure( +) -> BufferAddress

    source

    unsafe fn destroy_acceleration_structure( &self, acceleration_structure: Box<dyn DynAccelerationStructure>, -)

    source

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source

    fn get_internal_counters(&self) -> HalCounters

    source

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    Provided Methods§

    Implementors§

    \ No newline at end of file +)
    source

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source

    fn get_internal_counters(&self) -> HalCounters

    source

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    Provided Methods§

    Implementors§

    \ No newline at end of file diff --git a/doc/wgpu_hal/trait.DynResource.html b/doc/wgpu_hal/trait.DynResource.html index e54144ae8643..77231926d154 100644 --- a/doc/wgpu_hal/trait.DynResource.html +++ b/doc/wgpu_hal/trait.DynResource.html @@ -1,6 +1,6 @@ DynResource in wgpu_hal - Rust
    wgpu_hal

    Trait DynResource

    source
    pub trait DynResource:
         Any
    -    + WasmNotSendSync
    +    + WasmNotSendSync
         + 'static {
         // Required methods
         fn as_any(&self) -> &dyn Any;
    diff --git a/doc/wgpu_hal/trait.Instance.html b/doc/wgpu_hal/trait.Instance.html
    index 0c1f7923c802..2614b0a6d41a 100644
    --- a/doc/wgpu_hal/trait.Instance.html
    +++ b/doc/wgpu_hal/trait.Instance.html
    @@ -1,4 +1,4 @@
    -Instance in wgpu_hal - Rust
    wgpu_hal

    Trait Instance

    source
    pub trait Instance: Sized + WasmNotSendSync {
    +Instance in wgpu_hal - Rust
    wgpu_hal

    Trait Instance

    source
    pub trait Instance: Sized + WasmNotSendSync {
         type A: Api;
     
         // Required methods
    diff --git a/doc/wgpu_hal/trait.Queue.html b/doc/wgpu_hal/trait.Queue.html
    index 5b71e7bd95cd..9c2b7fbf1abd 100644
    --- a/doc/wgpu_hal/trait.Queue.html
    +++ b/doc/wgpu_hal/trait.Queue.html
    @@ -1,4 +1,4 @@
    -Queue in wgpu_hal - Rust
    wgpu_hal

    Trait Queue

    source
    pub trait Queue: WasmNotSendSync {
    +Queue in wgpu_hal - Rust
    wgpu_hal

    Trait Queue

    source
    pub trait Queue: WasmNotSendSync {
         type A: Api;
     
         // Required methods
    diff --git a/doc/wgpu_hal/trait.Surface.html b/doc/wgpu_hal/trait.Surface.html
    index 07040c12989a..3ae5eff398e8 100644
    --- a/doc/wgpu_hal/trait.Surface.html
    +++ b/doc/wgpu_hal/trait.Surface.html
    @@ -1,4 +1,4 @@
    -Surface in wgpu_hal - Rust
    wgpu_hal

    Trait Surface

    source
    pub trait Surface: WasmNotSendSync {
    +Surface in wgpu_hal - Rust
    wgpu_hal

    Trait Surface

    source
    pub trait Surface: WasmNotSendSync {
         type A: Api;
     
         // Required methods
    diff --git a/doc/wgpu_hal/type.MemoryRange.html b/doc/wgpu_hal/type.MemoryRange.html
    index 99d64ed16058..9423314f5135 100644
    --- a/doc/wgpu_hal/type.MemoryRange.html
    +++ b/doc/wgpu_hal/type.MemoryRange.html
    @@ -1,4 +1,4 @@
    -MemoryRange in wgpu_hal - Rust
    wgpu_hal

    Type Alias MemoryRange

    source
    pub type MemoryRange = Range<BufferAddress>;

    Aliased Type§

    struct MemoryRange {
    +MemoryRange in wgpu_hal - Rust
    wgpu_hal

    Type Alias MemoryRange

    source
    pub type MemoryRange = Range<BufferAddress>;

    Aliased Type§

    struct MemoryRange {
         pub start: u64,
         pub end: u64,
     }

    Fields§

    §start: u64

    The lower bound of the range (inclusive).

    diff --git a/doc/wgpu_hal/vulkan/adapter/fn.indexing_features.html b/doc/wgpu_hal/vulkan/adapter/fn.indexing_features.html index 434a462b3abe..c4bbcca738dd 100644 --- a/doc/wgpu_hal/vulkan/adapter/fn.indexing_features.html +++ b/doc/wgpu_hal/vulkan/adapter/fn.indexing_features.html @@ -1 +1 @@ -indexing_features in wgpu_hal::vulkan::adapter - Rust
    wgpu_hal::vulkan::adapter

    Function indexing_features

    source
    fn indexing_features() -> Features
    Available on vulkan only.
    \ No newline at end of file +indexing_features in wgpu_hal::vulkan::adapter - Rust
    wgpu_hal::vulkan::adapter

    Function indexing_features

    source
    fn indexing_features() -> Features
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/adapter/struct.PhysicalDeviceFeatures.html b/doc/wgpu_hal/vulkan/adapter/struct.PhysicalDeviceFeatures.html index 6797ee8e271e..ad86373fbfe0 100644 --- a/doc/wgpu_hal/vulkan/adapter/struct.PhysicalDeviceFeatures.html +++ b/doc/wgpu_hal/vulkan/adapter/struct.PhysicalDeviceFeatures.html @@ -50,13 +50,13 @@
    §acceleration_structure: Option<PhysicalDeviceAccelerationStructureFeaturesKHR<'static>>

    Features provided by VK_KHR_acceleration_structure.

    §buffer_device_address: Option<PhysicalDeviceBufferDeviceAddressFeaturesKHR<'static>>

    Features provided by VK_KHR_buffer_device_address, promoted to Vulkan 1.2.

    We only use this feature for -Features::EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE, which requires +Features::EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE, which requires VK_KHR_acceleration_structure, which depends on VK_KHR_buffer_device_address, so Instance::expose_adapter only bothers to check if VK_KHR_acceleration_structure is available, leaving this None.

    However, we do populate this when creating a device if -Features::EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE is requested.

    +Features::EXPERIMENTAL_RAY_TRACING_ACCELERATION_STRUCTURE is requested.

    §ray_query: Option<PhysicalDeviceRayQueryFeaturesKHR<'static>>

    Features provided by VK_KHR_ray_query,

    Vulkan requires that the feature be present if the VK_KHR_ray_query extension is present, so Instance::expose_adapter doesn’t bother retrieving @@ -75,13 +75,13 @@

    source

    fn from_extensions_and_requested_features( device_api_version: u32, enabled_extensions: &[&'static CStr], - requested_features: Features, - downlevel_flags: DownlevelFlags, + requested_features: Features, + downlevel_flags: DownlevelFlags, private_caps: &PrivateCapabilities, ) -> Self

    Create a PhysicalDeviceFeatures that can be used to create a logical device.

    Return a PhysicalDeviceFeatures value capturing all the Vulkan -features needed for the given Features, DownlevelFlags, and +features needed for the given Features, DownlevelFlags, and PrivateCapabilities. You can use the returned value’s add_to_device_create method to configure a [vk::DeviceCreateInfo] to build a logical device providing those @@ -105,7 +105,7 @@ instance: &Instance, phd: PhysicalDevice, caps: &PhysicalDeviceProperties, -) -> (Features, DownlevelFlags)

    Compute the wgpu Features and DownlevelFlags supported by a physical device.

    +) -> (Features, DownlevelFlags)

    Compute the wgpu Features and DownlevelFlags supported by a physical device.

    Given self, together with the instance and physical device it was built from, and a caps also built from those, determine which wgpu features and downlevel flags the device can support.

    @@ -119,7 +119,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/adapter/struct.PhysicalDeviceProperties.html b/doc/wgpu_hal/vulkan/adapter/struct.PhysicalDeviceProperties.html index 4da3a26cc196..53bafde9b8e2 100644 --- a/doc/wgpu_hal/vulkan/adapter/struct.PhysicalDeviceProperties.html +++ b/doc/wgpu_hal/vulkan/adapter/struct.PhysicalDeviceProperties.html @@ -51,9 +51,9 @@

    It is associated with a VkPhysicalDevice and its children.

    Implementations§

    source§

    impl PhysicalDeviceProperties

    source

    pub fn properties(&self) -> PhysicalDeviceProperties

    source

    pub fn supports_extension(&self, extension: &CStr) -> bool

    source

    fn get_required_extensions( &self, - requested_features: Features, + requested_features: Features, ) -> Vec<&'static CStr>

    Map requested_features to the list of Vulkan extension strings required to create the logical device.

    -
    source

    fn to_wgpu_limits(&self) -> Limits

    source

    fn to_hal_alignments(&self, using_robustness2: bool) -> Alignments

    Return a wgpu_hal::Alignments structure describing this adapter.

    +
    source

    fn to_wgpu_limits(&self) -> Limits

    source

    fn to_hal_alignments(&self, using_robustness2: bool) -> Alignments

    Return a wgpu_hal::Alignments structure describing this adapter.

    The using_robustness2 argument says how this adapter will implement wgpu_hal’s guarantee that shaders can only read the accessible region of bindgroup’s buffer bindings:

    @@ -78,7 +78,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.derive_image_layout.html b/doc/wgpu_hal/vulkan/conv/fn.derive_image_layout.html index 5665e6693e9f..c7ae35a082a9 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.derive_image_layout.html +++ b/doc/wgpu_hal/vulkan/conv/fn.derive_image_layout.html @@ -1,4 +1,4 @@ derive_image_layout in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function derive_image_layout

    source
    pub fn derive_image_layout(
         usage: TextureUses,
    -    format: TextureFormat,
    +    format: TextureFormat,
     ) -> ImageLayout
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_acceleration_structure_usage_to_barrier.html b/doc/wgpu_hal/vulkan/conv/fn.map_acceleration_structure_usage_to_barrier.html index acfa7d980edd..abfad74dad3e 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_acceleration_structure_usage_to_barrier.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_acceleration_structure_usage_to_barrier.html @@ -1,4 +1,4 @@ map_acceleration_structure_usage_to_barrier in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_acceleration_structure_usage_to_barrier

    source
    pub fn map_acceleration_structure_usage_to_barrier(
         usage: AccelerationStructureUses,
    -    features: Features,
    +    features: Features,
     ) -> (PipelineStageFlags, AccessFlags)
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_address_mode.html b/doc/wgpu_hal/vulkan/conv/fn.map_address_mode.html index 5c571a947aec..698a66ed8262 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_address_mode.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_address_mode.html @@ -1 +1 @@ -map_address_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_address_mode

    source
    pub fn map_address_mode(mode: AddressMode) -> SamplerAddressMode
    Available on vulkan only.
    \ No newline at end of file +map_address_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_address_mode

    source
    pub fn map_address_mode(mode: AddressMode) -> SamplerAddressMode
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_binding_type.html b/doc/wgpu_hal/vulkan/conv/fn.map_binding_type.html index 56a9101fdf62..5243fcd910ca 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_binding_type.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_binding_type.html @@ -1 +1 @@ -map_binding_type in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_binding_type

    source
    pub fn map_binding_type(ty: BindingType) -> DescriptorType
    Available on vulkan only.
    \ No newline at end of file +map_binding_type in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_binding_type

    source
    pub fn map_binding_type(ty: BindingType) -> DescriptorType
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_blend_component.html b/doc/wgpu_hal/vulkan/conv/fn.map_blend_component.html index 83ef3d938a66..19a09de7a11e 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_blend_component.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_blend_component.html @@ -1,3 +1,3 @@ map_blend_component in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_blend_component

    source
    pub fn map_blend_component(
    -    component: &BlendComponent,
    +    component: &BlendComponent,
     ) -> (BlendOp, BlendFactor, BlendFactor)
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_blend_factor.html b/doc/wgpu_hal/vulkan/conv/fn.map_blend_factor.html index 3c7cfe671c7f..a332c989f716 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_blend_factor.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_blend_factor.html @@ -1 +1 @@ -map_blend_factor in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_blend_factor

    source
    fn map_blend_factor(factor: BlendFactor) -> BlendFactor
    Available on vulkan only.
    \ No newline at end of file +map_blend_factor in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_blend_factor

    source
    fn map_blend_factor(factor: BlendFactor) -> BlendFactor
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_blend_op.html b/doc/wgpu_hal/vulkan/conv/fn.map_blend_op.html index 0c7b8d65c95f..7f526a401369 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_blend_op.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_blend_op.html @@ -1 +1 @@ -map_blend_op in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_blend_op

    source
    fn map_blend_op(operation: BlendOperation) -> BlendOp
    Available on vulkan only.
    \ No newline at end of file +map_blend_op in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_blend_op

    source
    fn map_blend_op(operation: BlendOperation) -> BlendOp
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_border_color.html b/doc/wgpu_hal/vulkan/conv/fn.map_border_color.html index 73ac7f2f3613..9923d0c8ef1e 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_border_color.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_border_color.html @@ -1 +1 @@ -map_border_color in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_border_color

    source
    pub fn map_border_color(border_color: SamplerBorderColor) -> BorderColor
    Available on vulkan only.
    \ No newline at end of file +map_border_color in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_border_color

    source
    pub fn map_border_color(border_color: SamplerBorderColor) -> BorderColor
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_comparison.html b/doc/wgpu_hal/vulkan/conv/fn.map_comparison.html index d89961405130..19f58db6362d 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_comparison.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_comparison.html @@ -1 +1 @@ -map_comparison in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_comparison

    source
    pub fn map_comparison(fun: CompareFunction) -> CompareOp
    Available on vulkan only.
    \ No newline at end of file +map_comparison in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_comparison

    source
    pub fn map_comparison(fun: CompareFunction) -> CompareOp
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_composite_alpha_mode.html b/doc/wgpu_hal/vulkan/conv/fn.map_composite_alpha_mode.html index c53bb21e2195..662b8dd500bb 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_composite_alpha_mode.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_composite_alpha_mode.html @@ -1,3 +1,3 @@ map_composite_alpha_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_composite_alpha_mode

    source
    pub fn map_composite_alpha_mode(
    -    mode: CompositeAlphaMode,
    +    mode: CompositeAlphaMode,
     ) -> CompositeAlphaFlagsKHR
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_cull_face.html b/doc/wgpu_hal/vulkan/conv/fn.map_cull_face.html index 973cf80838ec..e2e5f7721514 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_cull_face.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_cull_face.html @@ -1 +1 @@ -map_cull_face in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_cull_face

    source
    pub fn map_cull_face(face: Face) -> CullModeFlags
    Available on vulkan only.
    \ No newline at end of file +map_cull_face in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_cull_face

    source
    pub fn map_cull_face(face: Face) -> CullModeFlags
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_filter_mode.html b/doc/wgpu_hal/vulkan/conv/fn.map_filter_mode.html index b05c206d88f6..1dd25926642e 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_filter_mode.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_filter_mode.html @@ -1 +1 @@ -map_filter_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_filter_mode

    source
    pub fn map_filter_mode(mode: FilterMode) -> Filter
    Available on vulkan only.
    \ No newline at end of file +map_filter_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_filter_mode

    source
    pub fn map_filter_mode(mode: FilterMode) -> Filter
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_front_face.html b/doc/wgpu_hal/vulkan/conv/fn.map_front_face.html index b1f552e692f9..9deb7672d391 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_front_face.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_front_face.html @@ -1 +1 @@ -map_front_face in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_front_face

    source
    pub fn map_front_face(front_face: FrontFace) -> FrontFace
    Available on vulkan only.
    \ No newline at end of file +map_front_face in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_front_face

    source
    pub fn map_front_face(front_face: FrontFace) -> FrontFace
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_index_format.html b/doc/wgpu_hal/vulkan/conv/fn.map_index_format.html index 8ed0d7738e57..1caebcec4451 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_index_format.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_index_format.html @@ -1 +1 @@ -map_index_format in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_index_format

    source
    pub fn map_index_format(index_format: IndexFormat) -> IndexType
    Available on vulkan only.
    \ No newline at end of file +map_index_format in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_index_format

    source
    pub fn map_index_format(index_format: IndexFormat) -> IndexType
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_mip_filter_mode.html b/doc/wgpu_hal/vulkan/conv/fn.map_mip_filter_mode.html index 28e96833435b..c190661f1cc2 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_mip_filter_mode.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_mip_filter_mode.html @@ -1 +1 @@ -map_mip_filter_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_mip_filter_mode

    source
    pub fn map_mip_filter_mode(mode: FilterMode) -> SamplerMipmapMode
    Available on vulkan only.
    \ No newline at end of file +map_mip_filter_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_mip_filter_mode

    source
    pub fn map_mip_filter_mode(mode: FilterMode) -> SamplerMipmapMode
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_pipeline_statistics.html b/doc/wgpu_hal/vulkan/conv/fn.map_pipeline_statistics.html index 90b167759722..0b10f7b2736c 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_pipeline_statistics.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_pipeline_statistics.html @@ -1,3 +1,3 @@ map_pipeline_statistics in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_pipeline_statistics

    source
    pub fn map_pipeline_statistics(
    -    types: PipelineStatisticsTypes,
    +    types: PipelineStatisticsTypes,
     ) -> QueryPipelineStatisticFlags
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_polygon_mode.html b/doc/wgpu_hal/vulkan/conv/fn.map_polygon_mode.html index 807e0c51a795..709ec61c51a9 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_polygon_mode.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_polygon_mode.html @@ -1 +1 @@ -map_polygon_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_polygon_mode

    source
    pub fn map_polygon_mode(mode: PolygonMode) -> PolygonMode
    Available on vulkan only.
    \ No newline at end of file +map_polygon_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_polygon_mode

    source
    pub fn map_polygon_mode(mode: PolygonMode) -> PolygonMode
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_present_mode.html b/doc/wgpu_hal/vulkan/conv/fn.map_present_mode.html index 1c4f99fe650d..21448b8db2e8 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_present_mode.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_present_mode.html @@ -1 +1 @@ -map_present_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_present_mode

    source
    pub fn map_present_mode(mode: PresentMode) -> PresentModeKHR
    Available on vulkan only.
    \ No newline at end of file +map_present_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_present_mode

    source
    pub fn map_present_mode(mode: PresentMode) -> PresentModeKHR
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_shader_stage.html b/doc/wgpu_hal/vulkan/conv/fn.map_shader_stage.html index 3139c4464dfb..00b468fe26a0 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_shader_stage.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_shader_stage.html @@ -1 +1 @@ -map_shader_stage in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_shader_stage

    source
    pub fn map_shader_stage(stage: ShaderStages) -> ShaderStageFlags
    Available on vulkan only.
    \ No newline at end of file +map_shader_stage in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_shader_stage

    source
    pub fn map_shader_stage(stage: ShaderStages) -> ShaderStageFlags
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_stencil_face.html b/doc/wgpu_hal/vulkan/conv/fn.map_stencil_face.html index 7bc325d199b7..6c684b615da8 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_stencil_face.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_stencil_face.html @@ -1,5 +1,5 @@ map_stencil_face in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_stencil_face

    source
    pub fn map_stencil_face(
    -    face: &StencilFaceState,
    +    face: &StencilFaceState,
         compare_mask: u32,
         write_mask: u32,
     ) -> StencilOpState
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_stencil_op.html b/doc/wgpu_hal/vulkan/conv/fn.map_stencil_op.html index 9815a4a8164c..7711e9c1ec8f 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_stencil_op.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_stencil_op.html @@ -1 +1 @@ -map_stencil_op in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_stencil_op

    source
    pub fn map_stencil_op(op: StencilOperation) -> StencilOp
    Available on vulkan only.
    \ No newline at end of file +map_stencil_op in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_stencil_op

    source
    pub fn map_stencil_op(op: StencilOperation) -> StencilOp
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_subresource_range.html b/doc/wgpu_hal/vulkan/conv/fn.map_subresource_range.html index 86a336138656..1bb27ea20c26 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_subresource_range.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_subresource_range.html @@ -1,4 +1,4 @@ map_subresource_range in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_subresource_range

    source
    pub fn map_subresource_range(
    -    range: &ImageSubresourceRange,
    -    format: TextureFormat,
    +    range: &ImageSubresourceRange,
    +    format: TextureFormat,
     ) -> ImageSubresourceRange
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_subresource_range_combined_aspect.html b/doc/wgpu_hal/vulkan/conv/fn.map_subresource_range_combined_aspect.html index 1d2f0244b223..d7ef1d923451 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_subresource_range_combined_aspect.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_subresource_range_combined_aspect.html @@ -1,5 +1,5 @@ map_subresource_range_combined_aspect in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_subresource_range_combined_aspect

    source
    pub(super) fn map_subresource_range_combined_aspect(
    -    range: &ImageSubresourceRange,
    -    format: TextureFormat,
    +    range: &ImageSubresourceRange,
    +    format: TextureFormat,
         private_caps: &PrivateCapabilities,
     ) -> ImageSubresourceRange
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_texture_dimension.html b/doc/wgpu_hal/vulkan/conv/fn.map_texture_dimension.html index bad7f047b9f9..50be0aeac649 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_texture_dimension.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_texture_dimension.html @@ -1 +1 @@ -map_texture_dimension in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_texture_dimension

    source
    pub fn map_texture_dimension(dim: TextureDimension) -> ImageType
    Available on vulkan only.
    \ No newline at end of file +map_texture_dimension in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_texture_dimension

    source
    pub fn map_texture_dimension(dim: TextureDimension) -> ImageType
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_topology.html b/doc/wgpu_hal/vulkan/conv/fn.map_topology.html index 8b02f5d62ef6..5ec874bfc6b9 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_topology.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_topology.html @@ -1 +1 @@ -map_topology in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_topology

    source
    pub fn map_topology(topology: PrimitiveTopology) -> PrimitiveTopology
    Available on vulkan only.
    \ No newline at end of file +map_topology in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_topology

    source
    pub fn map_topology(topology: PrimitiveTopology) -> PrimitiveTopology
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_vertex_format.html b/doc/wgpu_hal/vulkan/conv/fn.map_vertex_format.html index 66661b9fbf44..ab2f67a3676c 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_vertex_format.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_vertex_format.html @@ -1 +1 @@ -map_vertex_format in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_vertex_format

    source
    pub fn map_vertex_format(vertex_format: VertexFormat) -> Format
    Available on vulkan only.
    \ No newline at end of file +map_vertex_format in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_vertex_format

    source
    pub fn map_vertex_format(vertex_format: VertexFormat) -> Format
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_view_dimension.html b/doc/wgpu_hal/vulkan/conv/fn.map_view_dimension.html index 6b71ab085646..2c2b2e4774bd 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_view_dimension.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_view_dimension.html @@ -1 +1 @@ -map_view_dimension in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_view_dimension

    source
    pub fn map_view_dimension(dim: TextureViewDimension) -> ImageViewType
    Available on vulkan only.
    \ No newline at end of file +map_view_dimension in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_view_dimension

    source
    pub fn map_view_dimension(dim: TextureViewDimension) -> ImageViewType
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_vk_composite_alpha.html b/doc/wgpu_hal/vulkan/conv/fn.map_vk_composite_alpha.html index 93a883cdf391..d937d5630f00 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_vk_composite_alpha.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_vk_composite_alpha.html @@ -1,3 +1,3 @@ map_vk_composite_alpha in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_vk_composite_alpha

    source
    pub fn map_vk_composite_alpha(
         flags: CompositeAlphaFlagsKHR,
    -) -> Vec<CompositeAlphaMode>
    Available on vulkan only.
    \ No newline at end of file +) -> Vec<CompositeAlphaMode>
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_vk_present_mode.html b/doc/wgpu_hal/vulkan/conv/fn.map_vk_present_mode.html index 347a6b287132..6e6541d47be1 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_vk_present_mode.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_vk_present_mode.html @@ -1 +1 @@ -map_vk_present_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_vk_present_mode

    source
    pub fn map_vk_present_mode(mode: PresentModeKHR) -> Option<PresentMode>
    Available on vulkan only.
    \ No newline at end of file +map_vk_present_mode in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_vk_present_mode

    source
    pub fn map_vk_present_mode(mode: PresentModeKHR) -> Option<PresentMode>
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/conv/fn.map_vk_surface_formats.html b/doc/wgpu_hal/vulkan/conv/fn.map_vk_surface_formats.html index adeb0c7aa41a..a6adf3d2fa06 100644 --- a/doc/wgpu_hal/vulkan/conv/fn.map_vk_surface_formats.html +++ b/doc/wgpu_hal/vulkan/conv/fn.map_vk_surface_formats.html @@ -1 +1 @@ -map_vk_surface_formats in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_vk_surface_formats

    source
    pub fn map_vk_surface_formats(sf: SurfaceFormatKHR) -> Option<TextureFormat>
    Available on vulkan only.
    \ No newline at end of file +map_vk_surface_formats in wgpu_hal::vulkan::conv - Rust
    wgpu_hal::vulkan::conv

    Function map_vk_surface_formats

    source
    pub fn map_vk_surface_formats(sf: SurfaceFormatKHR) -> Option<TextureFormat>
    Available on vulkan only.
    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/device/struct.CompiledStage.html b/doc/wgpu_hal/vulkan/device/struct.CompiledStage.html index 373b4ab4596b..d72748f46604 100644 --- a/doc/wgpu_hal/vulkan/device/struct.CompiledStage.html +++ b/doc/wgpu_hal/vulkan/device/struct.CompiledStage.html @@ -12,7 +12,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/device/struct.ImageWithoutMemory.html b/doc/wgpu_hal/vulkan/device/struct.ImageWithoutMemory.html index 7f87fcf26d87..d43d3d7a4a49 100644 --- a/doc/wgpu_hal/vulkan/device/struct.ImageWithoutMemory.html +++ b/doc/wgpu_hal/vulkan/device/struct.ImageWithoutMemory.html @@ -2,9 +2,9 @@ raw: Image, requirements: MemoryRequirements, copy_size: CopyExtent, - view_formats: Vec<TextureFormat>, + view_formats: Vec<TextureFormat>, raw_flags: ImageCreateFlags, -}
    Available on vulkan only.

    Fields§

    §raw: Image§requirements: MemoryRequirements§copy_size: CopyExtent§view_formats: Vec<TextureFormat>§raw_flags: ImageCreateFlags

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}
    Available on vulkan only.

    Fields§

    §raw: Image§requirements: MemoryRequirements§copy_size: CopyExtent§view_formats: Vec<TextureFormat>§raw_flags: ImageCreateFlags

    Auto Trait Implementations§

    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.

    @@ -14,7 +14,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/enum.ExtensionFn.html b/doc/wgpu_hal/vulkan/enum.ExtensionFn.html index 170e1fe67a50..565fe7479306 100644 --- a/doc/wgpu_hal/vulkan/enum.ExtensionFn.html +++ b/doc/wgpu_hal/vulkan/enum.ExtensionFn.html @@ -19,7 +19,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/enum.Fence.html b/doc/wgpu_hal/vulkan/enum.Fence.html index 444f41e61a8d..5e2877d08677 100644 --- a/doc/wgpu_hal/vulkan/enum.Fence.html +++ b/doc/wgpu_hal/vulkan/enum.Fence.html @@ -56,7 +56,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/enum.ShaderModule.html b/doc/wgpu_hal/vulkan/enum.ShaderModule.html index 60475caf03b8..dca64dd33001 100644 --- a/doc/wgpu_hal/vulkan/enum.ShaderModule.html +++ b/doc/wgpu_hal/vulkan/enum.ShaderModule.html @@ -2,9 +2,9 @@ Raw(ShaderModule), Intermediate { naga_shader: NagaShader, - runtime_checks: ShaderRuntimeChecks, + runtime_checks: ShaderRuntimeChecks, }, -}
    Available on vulkan only.

    Variants§

    §

    Raw(ShaderModule)

    §

    Intermediate

    Fields

    §naga_shader: NagaShader
    §runtime_checks: ShaderRuntimeChecks

    Trait Implementations§

    source§

    impl Debug for ShaderModule

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for ShaderModule

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynShaderModule for ShaderModule

    Auto Trait Implementations§

    §

    impl Freeze for ShaderModule

    §

    impl RefUnwindSafe for ShaderModule

    §

    impl Send for ShaderModule

    §

    impl Sync for ShaderModule

    §

    impl Unpin for ShaderModule

    §

    impl UnwindSafe for ShaderModule

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}
    Available on vulkan only.

    Variants§

    §

    Raw(ShaderModule)

    §

    Intermediate

    Fields

    §naga_shader: NagaShader
    §runtime_checks: ShaderRuntimeChecks

    Trait Implementations§

    source§

    impl Debug for ShaderModule

    source§

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

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for ShaderModule

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynShaderModule for ShaderModule

    Auto Trait Implementations§

    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.

    @@ -14,7 +14,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/sampler/struct.CacheEntry.html b/doc/wgpu_hal/vulkan/sampler/struct.CacheEntry.html index 76a4ca6b1b15..1da34647ffd0 100644 --- a/doc/wgpu_hal/vulkan/sampler/struct.CacheEntry.html +++ b/doc/wgpu_hal/vulkan/sampler/struct.CacheEntry.html @@ -12,7 +12,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/sampler/struct.HashableSamplerCreateInfo.html b/doc/wgpu_hal/vulkan/sampler/struct.HashableSamplerCreateInfo.html index 821e309c2b57..810476e1fb2b 100644 --- a/doc/wgpu_hal/vulkan/sampler/struct.HashableSamplerCreateInfo.html +++ b/doc/wgpu_hal/vulkan/sampler/struct.HashableSamplerCreateInfo.html @@ -20,7 +20,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/sampler/struct.SamplerCache.html b/doc/wgpu_hal/vulkan/sampler/struct.SamplerCache.html index 1392bd4daffc..cd3f6be0be5f 100644 --- a/doc/wgpu_hal/vulkan/sampler/struct.SamplerCache.html +++ b/doc/wgpu_hal/vulkan/sampler/struct.SamplerCache.html @@ -33,7 +33,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.AccelerationStructure.html b/doc/wgpu_hal/vulkan/struct.AccelerationStructure.html index fbe44a2b47f2..bcbdcc831bef 100644 --- a/doc/wgpu_hal/vulkan/struct.AccelerationStructure.html +++ b/doc/wgpu_hal/vulkan/struct.AccelerationStructure.html @@ -12,7 +12,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Adapter.html b/doc/wgpu_hal/vulkan/struct.Adapter.html index 65cad7223d1b..d74b5deab0ac 100644 --- a/doc/wgpu_hal/vulkan/struct.Adapter.html +++ b/doc/wgpu_hal/vulkan/struct.Adapter.html @@ -3,16 +3,16 @@ instance: Arc<InstanceShared>, known_memory_flags: MemoryPropertyFlags, phd_capabilities: PhysicalDeviceProperties, - downlevel_flags: DownlevelFlags, + downlevel_flags: DownlevelFlags, private_caps: PrivateCapabilities, workarounds: Workarounds, -}
    Available on vulkan only.

    Fields§

    §raw: PhysicalDevice§instance: Arc<InstanceShared>§known_memory_flags: MemoryPropertyFlags§phd_capabilities: PhysicalDeviceProperties§downlevel_flags: DownlevelFlags§private_caps: PrivateCapabilities§workarounds: Workarounds

    Implementations§

    source§

    impl Adapter

    source

    pub fn raw_physical_device(&self) -> PhysicalDevice

    source

    pub fn physical_device_capabilities(&self) -> &PhysicalDeviceProperties

    source

    pub fn shared_instance(&self) -> &InstanceShared

    source

    pub fn required_device_extensions( +}
    Available on vulkan only.

    Fields§

    §raw: PhysicalDevice§instance: Arc<InstanceShared>§known_memory_flags: MemoryPropertyFlags§phd_capabilities: PhysicalDeviceProperties§downlevel_flags: DownlevelFlags§private_caps: PrivateCapabilities§workarounds: Workarounds

    Implementations§

    source§

    impl Adapter

    source

    pub fn raw_physical_device(&self) -> PhysicalDevice

    source

    pub fn physical_device_capabilities(&self) -> &PhysicalDeviceProperties

    source

    pub fn shared_instance(&self) -> &InstanceShared

    source

    pub fn required_device_extensions( &self, - features: Features, + features: Features, ) -> Vec<&'static CStr>

    source

    pub fn physical_device_features( &self, enabled_extensions: &[&'static CStr], - features: Features, + features: Features, ) -> PhysicalDeviceFeatures

    Create a PhysicalDeviceFeatures for opening a logical device with features from this adapter.

    The given enabled_extensions set must include all the extensions @@ -28,8 +28,8 @@ raw_device: Device, drop_callback: Option<DropCallback>, enabled_extensions: &[&'static CStr], - features: Features, - memory_hints: &MemoryHints, + features: Features, + memory_hints: &MemoryHints, family_index: u32, queue_index: u32, ) -> Result<OpenDevice<Api>, DeviceError>

    §Safety
    @@ -42,38 +42,38 @@

    Trait Implementations§

    source§

    impl Adapter for Adapter

    source§

    type A = Api

    source§

    unsafe fn open( &self, - features: Features, - _limits: &Limits, - memory_hints: &MemoryHints, + features: Features, + _limits: &Limits, + memory_hints: &MemoryHints, ) -> Result<OpenDevice<Api>, DeviceError>

    source§

    unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities

    Return the set of supported capabilities for a texture format.
    source§

    unsafe fn surface_capabilities( &self, surface: &Surface, -) -> Option<SurfaceCapabilities>

    Returns the capabilities of working with a specified surface. Read more
    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Creates a PresentationTimestamp using the adapter’s WSI.
    source§

    impl DynResource for Adapter

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    Auto Trait Implementations§

    §

    impl Freeze for Adapter

    §

    impl !RefUnwindSafe for Adapter

    §

    impl Send for Adapter

    §

    impl Sync for Adapter

    §

    impl Unpin for Adapter

    §

    impl !UnwindSafe for Adapter

    Blanket Implementations§

    source§

    impl<T> Any for T

    Returns the capabilities of working with a specified surface. Read more
    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    Creates a PresentationTimestamp using the adapter’s WSI.
    source§

    impl DynResource for Adapter

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    Auto Trait Implementations§

    §

    impl Freeze for Adapter

    §

    impl !RefUnwindSafe for Adapter

    §

    impl Send for Adapter

    §

    impl Sync for Adapter

    §

    impl Unpin for Adapter

    §

    impl !UnwindSafe for Adapter

    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<A> DynAdapter for A
    where A: Adapter + DynResource,

    source§

    unsafe fn open( &self, - features: Features, - limits: &Limits, - memory_hints: &MemoryHints, + features: Features, + limits: &Limits, + memory_hints: &MemoryHints, ) -> Result<DynOpenDevice, DeviceError>

    source§

    unsafe fn texture_format_capabilities( &self, - format: TextureFormat, + format: TextureFormat, ) -> TextureFormatCapabilities

    source§

    unsafe fn surface_capabilities( &self, surface: &(dyn DynSurface + 'static), -) -> Option<SurfaceCapabilities>

    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +) -> Option<SurfaceCapabilities>
    source§

    unsafe fn get_presentation_timestamp(&self) -> PresentationTimestamp

    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Api.html b/doc/wgpu_hal/vulkan/struct.Api.html index bc0031b01ee5..4e40beb001f1 100644 --- a/doc/wgpu_hal/vulkan/struct.Api.html +++ b/doc/wgpu_hal/vulkan/struct.Api.html @@ -10,7 +10,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.AttachmentKey.html b/doc/wgpu_hal/vulkan/struct.AttachmentKey.html index 1f29f1080e0c..379585a7711a 100644 --- a/doc/wgpu_hal/vulkan/struct.AttachmentKey.html +++ b/doc/wgpu_hal/vulkan/struct.AttachmentKey.html @@ -22,7 +22,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

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

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.BindGroup.html b/doc/wgpu_hal/vulkan/struct.BindGroup.html index 79c55f7d1098..ed906f03cd38 100644 --- a/doc/wgpu_hal/vulkan/struct.BindGroup.html +++ b/doc/wgpu_hal/vulkan/struct.BindGroup.html @@ -10,7 +10,7 @@ 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>

    §

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

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.BindGroupLayout.html b/doc/wgpu_hal/vulkan/struct.BindGroupLayout.html index 63849cfee883..18c41143392a 100644 --- a/doc/wgpu_hal/vulkan/struct.BindGroupLayout.html +++ b/doc/wgpu_hal/vulkan/struct.BindGroupLayout.html @@ -14,7 +14,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Buffer.html b/doc/wgpu_hal/vulkan/struct.Buffer.html index cc0cd30cbeaa..c458c3ac482a 100644 --- a/doc/wgpu_hal/vulkan/struct.Buffer.html +++ b/doc/wgpu_hal/vulkan/struct.Buffer.html @@ -11,7 +11,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.ColorAttachmentKey.html b/doc/wgpu_hal/vulkan/struct.ColorAttachmentKey.html index f499258ddaa4..1b65cc42ce68 100644 --- a/doc/wgpu_hal/vulkan/struct.ColorAttachmentKey.html +++ b/doc/wgpu_hal/vulkan/struct.ColorAttachmentKey.html @@ -20,7 +20,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.CommandBuffer.html b/doc/wgpu_hal/vulkan/struct.CommandBuffer.html index 1c9e953b254a..506f797ec52f 100644 --- a/doc/wgpu_hal/vulkan/struct.CommandBuffer.html +++ b/doc/wgpu_hal/vulkan/struct.CommandBuffer.html @@ -10,7 +10,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.CommandEncoder.html b/doc/wgpu_hal/vulkan/struct.CommandEncoder.html index 5ee9a66a7994..183d0eaf3fd7 100644 --- a/doc/wgpu_hal/vulkan/struct.CommandEncoder.html +++ b/doc/wgpu_hal/vulkan/struct.CommandEncoder.html @@ -8,7 +8,7 @@ discarded: Vec<CommandBuffer>, rpass_debug_marker_active: bool, end_of_pass_timer_query: Option<(QueryPool, u32)>, - counters: Arc<HalCounters>, + counters: Arc<HalCounters>, }
    Available on vulkan only.

    Fields§

    §raw: CommandPool§device: Arc<DeviceShared>§active: CommandBuffer

    The current command buffer, if self is in the “recording” state.

    If non-null, the buffer is in the Vulkan “recording” state.

    @@ -22,7 +22,7 @@ and needs to be disabled on renderpass close.

    §end_of_pass_timer_query: Option<(QueryPool, u32)>

    If set, the end of the next render/compute pass will write a timestamp at the given pool & location.

    -
    §counters: Arc<HalCounters>

    Implementations§

    source§

    impl CommandEncoder

    source§

    impl CommandEncoder

    source

    pub unsafe fn raw_handle(&self) -> CommandBuffer

    §Safety
    +
    §counters: Arc<HalCounters>

    Implementations§

    source§

    impl CommandEncoder

    source§

    impl CommandEncoder

    source

    pub unsafe fn raw_handle(&self) -> CommandBuffer

    §Safety
    • The command buffer handle must not be manually destroyed
    @@ -68,8 +68,8 @@ set: &QuerySet, range: Range<u32>, buffer: &Buffer, - offset: BufferAddress, - stride: BufferSize, + offset: BufferAddress, + stride: BufferSize, )
    source§

    unsafe fn build_acceleration_structures<'a, T>( &mut self, descriptor_count: u32, @@ -91,17 +91,17 @@ layout: &PipelineLayout, index: u32, group: &BindGroup, - dynamic_offsets: &[DynamicOffset], + dynamic_offsets: &[DynamicOffset], )

    Sets the bind group at index to group. Read more
    source§

    unsafe fn set_push_constants( &mut self, layout: &PipelineLayout, - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], )

    Sets a range in push constant data. Read more
    source§

    unsafe fn insert_debug_marker(&mut self, label: &str)

    source§

    unsafe fn begin_debug_marker(&mut self, group_label: &str)

    source§

    unsafe fn end_debug_marker(&mut self)

    source§

    unsafe fn set_render_pipeline(&mut self, pipeline: &RenderPipeline)

    source§

    unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, Buffer>, - format: IndexFormat, + format: IndexFormat, )

    source§

    unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, @@ -122,31 +122,31 @@ )

    source§

    unsafe fn draw_indirect( &mut self, buffer: &Buffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source§

    unsafe fn draw_indexed_indirect( &mut self, buffer: &Buffer, - offset: BufferAddress, + offset: BufferAddress, draw_count: u32, )

    source§

    unsafe fn draw_indirect_count( &mut self, buffer: &Buffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &Buffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source§

    unsafe fn draw_indexed_indirect_count( &mut self, buffer: &Buffer, - offset: BufferAddress, + offset: BufferAddress, count_buffer: &Buffer, - count_offset: BufferAddress, + count_offset: BufferAddress, max_count: u32, )

    source§

    unsafe fn begin_compute_pass( &mut self, desc: &ComputePassDescriptor<'_, QuerySet>, -)

    Begin a new compute pass, clearing all active bindings. Read more
    source§

    unsafe fn end_compute_pass(&mut self)

    End the current compute pass. Read more
    source§

    unsafe fn set_compute_pipeline(&mut self, pipeline: &ComputePipeline)

    source§

    unsafe fn dispatch(&mut self, count: [u32; 3])

    source§

    unsafe fn dispatch_indirect(&mut self, buffer: &Buffer, offset: BufferAddress)

    source§

    impl Debug for CommandEncoder

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Drop for CommandEncoder

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    source§

    impl DynResource for CommandEncoder

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    Begin a new compute pass, clearing all active bindings. Read more
    source§

    unsafe fn end_compute_pass(&mut self)

    End the current compute pass. Read more
    source§

    unsafe fn set_compute_pipeline(&mut self, pipeline: &ComputePipeline)

    source§

    unsafe fn dispatch(&mut self, count: [u32; 3])

    source§

    unsafe fn dispatch_indirect(&mut self, buffer: &Buffer, offset: BufferAddress)

    source§

    impl Debug for CommandEncoder

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Drop for CommandEncoder

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    source§

    impl DynResource for CommandEncoder

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    Auto Trait Implementations§

    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<C> DynCommandEncoder for C
    where @@ -196,7 +196,7 @@ )

    source§

    unsafe fn set_push_constants( &mut self, layout: &(dyn DynPipelineLayout + 'static), - stages: ShaderStages, + stages: ShaderStages, offset_bytes: u32, data: &[u32], )

    source§

    unsafe fn insert_debug_marker(&mut self, label: &str)

    source§

    unsafe fn begin_debug_marker(&mut self, group_label: &str)

    source§

    unsafe fn end_debug_marker(&mut self)

    source§

    unsafe fn begin_query(&mut self, set: &(dyn DynQuerySet + 'static), index: u32)

    source§

    unsafe fn end_query(&mut self, set: &(dyn DynQuerySet + 'static), index: u32)

    source§

    unsafe fn write_timestamp( @@ -270,7 +270,7 @@ )

    source§

    unsafe fn set_index_buffer<'a>( &mut self, binding: BufferBinding<'a, dyn DynBuffer>, - format: IndexFormat, + format: IndexFormat, )

    source§

    unsafe fn set_vertex_buffer<'a>( &mut self, index: u32, @@ -288,7 +288,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.ComputePipeline.html b/doc/wgpu_hal/vulkan/struct.ComputePipeline.html index ab89a4f5a7ca..605169e83b3b 100644 --- a/doc/wgpu_hal/vulkan/struct.ComputePipeline.html +++ b/doc/wgpu_hal/vulkan/struct.ComputePipeline.html @@ -10,7 +10,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.DebugUtils.html b/doc/wgpu_hal/vulkan/struct.DebugUtils.html index cfc23cb7727d..7c872416e49b 100644 --- a/doc/wgpu_hal/vulkan/struct.DebugUtils.html +++ b/doc/wgpu_hal/vulkan/struct.DebugUtils.html @@ -16,7 +16,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.DebugUtilsCreateInfo.html b/doc/wgpu_hal/vulkan/struct.DebugUtilsCreateInfo.html index 2999ba40b582..b020199aff84 100644 --- a/doc/wgpu_hal/vulkan/struct.DebugUtilsCreateInfo.html +++ b/doc/wgpu_hal/vulkan/struct.DebugUtilsCreateInfo.html @@ -12,7 +12,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.DebugUtilsMessengerUserData.html b/doc/wgpu_hal/vulkan/struct.DebugUtilsMessengerUserData.html index b32e5fb9b115..e5a0be23d5df 100644 --- a/doc/wgpu_hal/vulkan/struct.DebugUtilsMessengerUserData.html +++ b/doc/wgpu_hal/vulkan/struct.DebugUtilsMessengerUserData.html @@ -17,7 +17,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.DepthStencilAttachmentKey.html b/doc/wgpu_hal/vulkan/struct.DepthStencilAttachmentKey.html index bdb50efa41e4..3053bb87a4fa 100644 --- a/doc/wgpu_hal/vulkan/struct.DepthStencilAttachmentKey.html +++ b/doc/wgpu_hal/vulkan/struct.DepthStencilAttachmentKey.html @@ -20,7 +20,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Device.html b/doc/wgpu_hal/vulkan/struct.Device.html index 2302555d7169..8ad0716412d2 100644 --- a/doc/wgpu_hal/vulkan/struct.Device.html +++ b/doc/wgpu_hal/vulkan/struct.Device.html @@ -3,10 +3,10 @@ mem_allocator: Mutex<GpuAllocator<DeviceMemory>>, desc_allocator: Mutex<DescriptorAllocator<DescriptorPool, DescriptorSet>>, valid_ash_memory_types: u32, - naga_options: Options<'static>, + naga_options: Options<'static>, render_doc: RenderDoc, - counters: Arc<HalCounters>, -}
    Available on vulkan only.

    Fields§

    §shared: Arc<DeviceShared>§mem_allocator: Mutex<GpuAllocator<DeviceMemory>>§desc_allocator: Mutex<DescriptorAllocator<DescriptorPool, DescriptorSet>>§valid_ash_memory_types: u32§naga_options: Options<'static>§render_doc: RenderDoc
    Available on crate feature renderdoc only.
    §counters: Arc<HalCounters>

    Implementations§

    source§

    impl Device

    source

    pub(super) unsafe fn create_swapchain( + counters: Arc<HalCounters>, +}
    Available on vulkan only.

    Fields§

    §shared: Arc<DeviceShared>§mem_allocator: Mutex<GpuAllocator<DeviceMemory>>§desc_allocator: Mutex<DescriptorAllocator<DescriptorPool, DescriptorSet>>§valid_ash_memory_types: u32§naga_options: Options<'static>§render_doc: RenderDoc
    Available on crate feature renderdoc only.
    §counters: Arc<HalCounters>

    Implementations§

    source§

    impl Device

    source

    pub(super) unsafe fn create_swapchain( &self, surface: &Surface, config: &SurfaceConfiguration, @@ -37,8 +37,8 @@ ) -> Result<ShaderModule, DeviceError>

    source

    fn compile_stage( &self, stage: &ProgrammableStage<'_, ShaderModule>, - naga_stage: ShaderStage, - binding_map: &BindingMap, + naga_stage: ShaderStage, + binding_map: &BindingMap, ) -> Result<CompiledStage, PipelineError>

    source

    pub fn queue_family_index(&self) -> u32

    Returns the queue family index of the device’s internal queue.

    This is useful for constructing memory barriers needed for queue family ownership transfer when external memory is involved (from/to VK_QUEUE_FAMILY_EXTERNAL_KHR and VK_QUEUE_FAMILY_FOREIGN_EXT @@ -89,7 +89,7 @@ desc: &PipelineCacheDescriptor<'_>, ) -> Result<PipelineCache, PipelineCacheError>

    source§

    fn pipeline_cache_validation_key(&self) -> Option<[u8; 16]>

    source§

    unsafe fn destroy_pipeline_cache(&self, cache: PipelineCache)

    source§

    unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Label<'_>>, + desc: &QuerySetDescriptor<Label<'_>>, ) -> Result<QuerySet, DeviceError>

    source§

    unsafe fn destroy_query_set(&self, set: QuerySet)

    source§

    unsafe fn create_fence(&self) -> Result<Fence, DeviceError>

    source§

    unsafe fn destroy_fence(&self, fence: Fence)

    source§

    unsafe fn get_fence_value( &self, fence: &Fence, @@ -107,13 +107,13 @@ ) -> AccelerationStructureBuildSizes

    source§

    unsafe fn get_acceleration_structure_device_address( &self, acceleration_structure: &AccelerationStructure, -) -> BufferAddress

    source§

    unsafe fn create_acceleration_structure( +) -> BufferAddress

    source§

    unsafe fn create_acceleration_structure( &self, desc: &AccelerationStructureDescriptor<'_>, ) -> Result<AccelerationStructure, DeviceError>

    source§

    unsafe fn destroy_acceleration_structure( &self, acceleration_structure: AccelerationStructure, -)

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source§

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    source§

    impl Drop for Device

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    source§

    impl DynResource for Device

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    Auto Trait Implementations§

    §

    impl !Freeze for Device

    §

    impl !RefUnwindSafe for Device

    §

    impl Send for Device

    §

    impl Sync for Device

    §

    impl Unpin for Device

    §

    impl !UnwindSafe for Device

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +)

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source§

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    source§

    impl Drop for Device

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    source§

    impl DynResource for Device

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    Auto Trait Implementations§

    §

    impl !Freeze for Device

    §

    impl !RefUnwindSafe for Device

    §

    impl Send for Device

    §

    impl Sync for Device

    §

    impl Unpin for Device

    §

    impl !UnwindSafe for Device

    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<D> DynDevice for D
    where @@ -178,7 +178,7 @@ pipeline_cache: Box<dyn DynPipelineCache>, )

    source§

    unsafe fn create_query_set( &self, - desc: &QuerySetDescriptor<Option<&str>>, + desc: &QuerySetDescriptor<Option<&str>>, ) -> Result<Box<dyn DynQuerySet>, DeviceError>

    source§

    unsafe fn destroy_query_set(&self, query_set: Box<dyn DynQuerySet>)

    source§

    unsafe fn create_fence(&self) -> Result<Box<dyn DynFence>, DeviceError>

    source§

    unsafe fn destroy_fence(&self, fence: Box<dyn DynFence>)

    source§

    unsafe fn get_fence_value( &self, fence: &(dyn DynFence + 'static), @@ -202,14 +202,14 @@ ) -> u64

    source§

    unsafe fn destroy_acceleration_structure( &self, acceleration_structure: Box<dyn DynAccelerationStructure>, -)

    source§

    fn tlas_instance_to_bytes(&self, instance: TlasInstance) -> Vec<u8>

    source§

    fn get_internal_counters(&self) -> HalCounters

    source§

    fn generate_allocator_report(&self) -> Option<AllocatorReport>

    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.DeviceExtensionFunctions.html b/doc/wgpu_hal/vulkan/struct.DeviceExtensionFunctions.html index df9c9ee8cf11..b1c2a80e7336 100644 --- a/doc/wgpu_hal/vulkan/struct.DeviceExtensionFunctions.html +++ b/doc/wgpu_hal/vulkan/struct.DeviceExtensionFunctions.html @@ -13,7 +13,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.DeviceShared.html b/doc/wgpu_hal/vulkan/struct.DeviceShared.html index 1a291d15b9ab..1779ac8ab49c 100644 --- a/doc/wgpu_hal/vulkan/struct.DeviceShared.html +++ b/doc/wgpu_hal/vulkan/struct.DeviceShared.html @@ -13,12 +13,12 @@ timestamp_period: f32, private_caps: PrivateCapabilities, workarounds: Workarounds, - features: Features, + features: Features, render_passes: Mutex<HashMap<RenderPassKey, RenderPass, BuildHasherDefault<FxHasher>>>, framebuffers: Mutex<HashMap<FramebufferKey, Framebuffer, BuildHasherDefault<FxHasher>>>, sampler_cache: Mutex<SamplerCache>, - memory_allocations_counter: InternalCounter, -}
    Available on vulkan only.

    Fields§

    §raw: Device§family_index: u32§queue_index: u32§raw_queue: Queue§drop_guard: Option<DropGuard>§instance: Arc<InstanceShared>§physical_device: PhysicalDevice§enabled_extensions: Vec<&'static CStr>§extension_fns: DeviceExtensionFunctions§vendor_id: u32§pipeline_cache_validation_key: [u8; 16]§timestamp_period: f32§private_caps: PrivateCapabilities§workarounds: Workarounds§features: Features§render_passes: Mutex<HashMap<RenderPassKey, RenderPass, BuildHasherDefault<FxHasher>>>§framebuffers: Mutex<HashMap<FramebufferKey, Framebuffer, BuildHasherDefault<FxHasher>>>§sampler_cache: Mutex<SamplerCache>§memory_allocations_counter: InternalCounter

    Implementations§

    source§

    impl DeviceShared

    source

    pub(super) unsafe fn set_object_name(&self, object: impl Handle, name: &str)

    Set the name of object to name.

    + memory_allocations_counter: InternalCounter, +
    }
    Available on vulkan only.

    Fields§

    §raw: Device§family_index: u32§queue_index: u32§raw_queue: Queue§drop_guard: Option<DropGuard>§instance: Arc<InstanceShared>§physical_device: PhysicalDevice§enabled_extensions: Vec<&'static CStr>§extension_fns: DeviceExtensionFunctions§vendor_id: u32§pipeline_cache_validation_key: [u8; 16]§timestamp_period: f32§private_caps: PrivateCapabilities§workarounds: Workarounds§features: Features§render_passes: Mutex<HashMap<RenderPassKey, RenderPass, BuildHasherDefault<FxHasher>>>§framebuffers: Mutex<HashMap<FramebufferKey, Framebuffer, BuildHasherDefault<FxHasher>>>§sampler_cache: Mutex<SamplerCache>§memory_allocations_counter: InternalCounter

    Implementations§

    source§

    impl DeviceShared

    source

    pub(super) unsafe fn set_object_name(&self, object: impl Handle, name: &str)

    Set the name of object to name.

    If name contains an interior null byte, then the name set will be truncated to that byte.

    §Safety

    It must be valid to set object’s debug name

    @@ -82,7 +82,7 @@
    §Safety
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.FramebufferAttachment.html b/doc/wgpu_hal/vulkan/struct.FramebufferAttachment.html index 3030cb430800..e1e3b92c2418 100644 --- a/doc/wgpu_hal/vulkan/struct.FramebufferAttachment.html +++ b/doc/wgpu_hal/vulkan/struct.FramebufferAttachment.html @@ -2,10 +2,10 @@ raw: ImageView, raw_image_flags: ImageCreateFlags, view_usage: TextureUses, - view_format: TextureFormat, + view_format: TextureFormat, raw_view_formats: Vec<Format>, }
    Available on vulkan only.

    Fields§

    §raw: ImageView

    Can be NULL if the framebuffer is image-less

    -
    §raw_image_flags: ImageCreateFlags§view_usage: TextureUses§view_format: TextureFormat§raw_view_formats: Vec<Format>

    Trait Implementations§

    source§

    impl Clone for FramebufferAttachment

    source§

    fn clone(&self) -> FramebufferAttachment

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for FramebufferAttachment

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for FramebufferAttachment

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +
    §raw_image_flags: ImageCreateFlags§view_usage: TextureUses§view_format: TextureFormat§raw_view_formats: Vec<Format>

    Trait Implementations§

    source§

    impl Clone for FramebufferAttachment

    source§

    fn clone(&self) -> FramebufferAttachment

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for FramebufferAttachment

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for FramebufferAttachment

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for FramebufferAttachment

    source§

    fn eq(&self, other: &FramebufferAttachment) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    source§

    impl Eq for FramebufferAttachment

    source§

    impl StructuralPartialEq for FramebufferAttachment

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where @@ -24,7 +24,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.FramebufferKey.html b/doc/wgpu_hal/vulkan/struct.FramebufferKey.html index 2461593f100e..7e61c18b5cf6 100644 --- a/doc/wgpu_hal/vulkan/struct.FramebufferKey.html +++ b/doc/wgpu_hal/vulkan/struct.FramebufferKey.html @@ -1,8 +1,8 @@ FramebufferKey in wgpu_hal::vulkan - Rust
    wgpu_hal::vulkan

    Struct FramebufferKey

    source
    struct FramebufferKey {
         attachments: ArrayVec<FramebufferAttachment, { MAX_TOTAL_ATTACHMENTS }>,
    -    extent: Extent3d,
    +    extent: Extent3d,
         sample_count: u32,
    -}
    Available on vulkan only.

    Fields§

    §attachments: ArrayVec<FramebufferAttachment, { MAX_TOTAL_ATTACHMENTS }>§extent: Extent3d§sample_count: u32

    Trait Implementations§

    source§

    impl Clone for FramebufferKey

    source§

    fn clone(&self) -> FramebufferKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Hash for FramebufferKey

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where +}
    Available on vulkan only.

    Fields§

    §attachments: ArrayVec<FramebufferAttachment, { MAX_TOTAL_ATTACHMENTS }>§extent: Extent3d§sample_count: u32

    Trait Implementations§

    source§

    impl Clone for FramebufferKey

    source§

    fn clone(&self) -> FramebufferKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Hash for FramebufferKey

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for FramebufferKey

    source§

    fn eq(&self, other: &FramebufferKey) -> bool

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    source§

    impl Eq for FramebufferKey

    source§

    impl StructuralPartialEq for FramebufferKey

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where @@ -21,7 +21,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Instance.html b/doc/wgpu_hal/vulkan/struct.Instance.html index 68cc18a7dca2..34d26163d50a 100644 --- a/doc/wgpu_hal/vulkan/struct.Instance.html +++ b/doc/wgpu_hal/vulkan/struct.Instance.html @@ -6,7 +6,7 @@ ) -> Result<Vec<ExtensionProperties>, InstanceError>
    source

    pub fn desired_extensions( entry: &Entry, _instance_api_version: u32, - flags: InstanceFlags, + flags: InstanceFlags, ) -> Result<Vec<&'static CStr>, InstanceError>

    Return the instance extension names wgpu would like to enable.

    Return a vector of the names of instance extensions actually available on entry that wgpu would like to enable.

    @@ -24,7 +24,7 @@ android_sdk_version: u32, debug_utils_create_info: Option<DebugUtilsCreateInfo>, extensions: Vec<&'static CStr>, - flags: InstanceFlags, + flags: InstanceFlags, has_nv_optimus: bool, drop_callback: Option<DropCallback>, ) -> Result<Self, InstanceError>
    §Safety
    @@ -83,7 +83,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.InstanceShared.html b/doc/wgpu_hal/vulkan/struct.InstanceShared.html index 7fa4e8b3d5ac..4b60e18ca9b0 100644 --- a/doc/wgpu_hal/vulkan/struct.InstanceShared.html +++ b/doc/wgpu_hal/vulkan/struct.InstanceShared.html @@ -2,14 +2,14 @@ raw: Instance, extensions: Vec<&'static CStr>, drop_guard: Option<DropGuard>, - flags: InstanceFlags, + flags: InstanceFlags, debug_utils: Option<DebugUtils>, get_physical_device_properties: Option<Instance>, entry: Entry, has_nv_optimus: bool, android_sdk_version: u32, instance_api_version: u32, -}
    Available on vulkan only.

    Fields§

    §raw: Instance§extensions: Vec<&'static CStr>§drop_guard: Option<DropGuard>§flags: InstanceFlags§debug_utils: Option<DebugUtils>§get_physical_device_properties: Option<Instance>§entry: Entry§has_nv_optimus: bool§android_sdk_version: u32§instance_api_version: u32

    The instance API version.

    +}
    Available on vulkan only.

    Fields§

    §raw: Instance§extensions: Vec<&'static CStr>§drop_guard: Option<DropGuard>§flags: InstanceFlags§debug_utils: Option<DebugUtils>§get_physical_device_properties: Option<Instance>§entry: Entry§has_nv_optimus: bool§android_sdk_version: u32§instance_api_version: u32

    The instance API version.

    Which is the version of Vulkan supported for instance-level functionality.

    It is associated with a VkInstance and its children, except for a VkPhysicalDevice and its children.

    @@ -26,7 +26,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.PipelineCache.html b/doc/wgpu_hal/vulkan/struct.PipelineCache.html index 013b86b4d975..8c52c96ce214 100644 --- a/doc/wgpu_hal/vulkan/struct.PipelineCache.html +++ b/doc/wgpu_hal/vulkan/struct.PipelineCache.html @@ -10,7 +10,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.PipelineLayout.html b/doc/wgpu_hal/vulkan/struct.PipelineLayout.html index f28ee4098ed3..7d4f37579780 100644 --- a/doc/wgpu_hal/vulkan/struct.PipelineLayout.html +++ b/doc/wgpu_hal/vulkan/struct.PipelineLayout.html @@ -1,7 +1,7 @@ PipelineLayout in wgpu_hal::vulkan - Rust
    wgpu_hal::vulkan

    Struct PipelineLayout

    source
    pub struct PipelineLayout {
         raw: PipelineLayout,
    -    binding_arrays: BindingMap,
    -}
    Available on vulkan only.

    Fields§

    §raw: PipelineLayout§binding_arrays: BindingMap

    Trait Implementations§

    source§

    impl Debug for PipelineLayout

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for PipelineLayout

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynPipelineLayout for PipelineLayout

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + binding_arrays: BindingMap, +}
    Available on vulkan only.

    Fields§

    §raw: PipelineLayout§binding_arrays: BindingMap

    Trait Implementations§

    source§

    impl Debug for PipelineLayout

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl DynResource for PipelineLayout

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl DynPipelineLayout for PipelineLayout

    Auto Trait Implementations§

    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.

    @@ -11,7 +11,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.PrivateCapabilities.html b/doc/wgpu_hal/vulkan/struct.PrivateCapabilities.html index 27b1231b773f..e36174487999 100644 --- a/doc/wgpu_hal/vulkan/struct.PrivateCapabilities.html +++ b/doc/wgpu_hal/vulkan/struct.PrivateCapabilities.html @@ -7,7 +7,7 @@ texture_d24_s8: bool, texture_s8: bool, can_present: bool, - non_coherent_map_mask: BufferAddress, + non_coherent_map_mask: BufferAddress, robust_buffer_access: bool, robust_image_access: bool, robust_buffer_access2: bool, @@ -20,7 +20,7 @@

    Fields§

    §flip_y_requires_shift: bool

    Y-flipping is implemented with either VK_AMD_negative_viewport_height or VK_KHR_maintenance1/1.1+. The AMD extension for negative viewport height does not require a Y shift.

    This flag is true if the device has VK_KHR_maintenance1/1.1+ and false otherwise (i.e. in the case of VK_AMD_negative_viewport_height).

    §imageless_framebuffers: bool§image_view_usage: bool§timeline_semaphores: bool§texture_d24: bool§texture_d24_s8: bool§texture_s8: bool§can_present: bool

    Ability to present contents to any screen. Only needed to work around broken platform configurations.

    -
    §non_coherent_map_mask: BufferAddress§robust_buffer_access: bool

    True if this adapter advertises the robustBufferAccess feature.

    +
    §non_coherent_map_mask: BufferAddress§robust_buffer_access: bool

    True if this adapter advertises the robustBufferAccess feature.

    Note that Vulkan’s robustBufferAccess is not sufficient to implement wgpu_hal’s guarantee that shaders will not access buffer contents via a given bindgroup binding outside that binding’s accessible @@ -34,7 +34,7 @@ shader accesses to buffer contents. If this feature is not available, this backend must have Naga inject bounds checks in the generated SPIR-V.

    -
    §robust_image_access2: bool§zero_initialize_workgroup_memory: bool§image_format_list: bool§maximum_samplers: u32

    Implementations§

    source§

    impl PrivateCapabilities

    source

    pub fn map_texture_format(&self, format: TextureFormat) -> Format

    Trait Implementations§

    source§

    impl Clone for PrivateCapabilities

    source§

    fn clone(&self) -> PrivateCapabilities

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PrivateCapabilities

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for PrivateCapabilities

    §

    impl RefUnwindSafe for PrivateCapabilities

    §

    impl Send for PrivateCapabilities

    §

    impl Sync for PrivateCapabilities

    §

    impl Unpin for PrivateCapabilities

    §

    impl UnwindSafe for PrivateCapabilities

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +
    §robust_image_access2: bool§zero_initialize_workgroup_memory: bool§image_format_list: bool§maximum_samplers: u32

    Implementations§

    Trait Implementations§

    source§

    impl Clone for PrivateCapabilities

    source§

    fn clone(&self) -> PrivateCapabilities

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PrivateCapabilities

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    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> CloneToUninit for T
    where @@ -46,7 +46,7 @@

    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.QuerySet.html b/doc/wgpu_hal/vulkan/struct.QuerySet.html index a5ebd9ec2f94..9bcafd89b3f0 100644 --- a/doc/wgpu_hal/vulkan/struct.QuerySet.html +++ b/doc/wgpu_hal/vulkan/struct.QuerySet.html @@ -10,7 +10,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Queue.html b/doc/wgpu_hal/vulkan/struct.Queue.html index 4cd8adc6c234..6cda22e0fbb5 100644 --- a/doc/wgpu_hal/vulkan/struct.Queue.html +++ b/doc/wgpu_hal/vulkan/struct.Queue.html @@ -38,7 +38,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.RawTlasInstance.html b/doc/wgpu_hal/vulkan/struct.RawTlasInstance.html index 9a15975d9255..6e3bb9aedb3f 100644 --- a/doc/wgpu_hal/vulkan/struct.RawTlasInstance.html +++ b/doc/wgpu_hal/vulkan/struct.RawTlasInstance.html @@ -15,7 +15,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.RayTracingDeviceExtensionFunctions.html b/doc/wgpu_hal/vulkan/struct.RayTracingDeviceExtensionFunctions.html index 1a6f39e8f7ac..866d1063482b 100644 --- a/doc/wgpu_hal/vulkan/struct.RayTracingDeviceExtensionFunctions.html +++ b/doc/wgpu_hal/vulkan/struct.RayTracingDeviceExtensionFunctions.html @@ -11,7 +11,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.RelaySemaphores.html b/doc/wgpu_hal/vulkan/struct.RelaySemaphores.html index cd41a7094f84..bc4034bdfdf3 100644 --- a/doc/wgpu_hal/vulkan/struct.RelaySemaphores.html +++ b/doc/wgpu_hal/vulkan/struct.RelaySemaphores.html @@ -34,7 +34,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.RenderPassKey.html b/doc/wgpu_hal/vulkan/struct.RenderPassKey.html index 6ad5b33a3abe..a6e1bcb861f4 100644 --- a/doc/wgpu_hal/vulkan/struct.RenderPassKey.html +++ b/doc/wgpu_hal/vulkan/struct.RenderPassKey.html @@ -22,7 +22,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.RenderPipeline.html b/doc/wgpu_hal/vulkan/struct.RenderPipeline.html index 660581845b8a..dc56991da41c 100644 --- a/doc/wgpu_hal/vulkan/struct.RenderPipeline.html +++ b/doc/wgpu_hal/vulkan/struct.RenderPipeline.html @@ -10,7 +10,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Sampler.html b/doc/wgpu_hal/vulkan/struct.Sampler.html index 8c7e7a8e7905..6b33e7023ab8 100644 --- a/doc/wgpu_hal/vulkan/struct.Sampler.html +++ b/doc/wgpu_hal/vulkan/struct.Sampler.html @@ -11,7 +11,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Surface.html b/doc/wgpu_hal/vulkan/struct.Surface.html index 82585319e84e..5ee5c6e625fb 100644 --- a/doc/wgpu_hal/vulkan/struct.Surface.html +++ b/doc/wgpu_hal/vulkan/struct.Surface.html @@ -14,7 +14,7 @@
    §Panics

    Trait Implementations§

    source§

    impl Drop for Surface

    source§

    fn drop(&mut self)

    Executes the destructor for this type. Read more
    source§

    impl DynResource for Surface

    source§

    fn as_any(&self) -> &dyn Any

    source§

    fn as_any_mut(&mut self) -> &mut dyn Any

    source§

    impl Surface for Surface

    source§

    type A = Api

    source§

    unsafe fn configure( &self, @@ -43,7 +43,7 @@

    §Panics
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.SurfaceTexture.html b/doc/wgpu_hal/vulkan/struct.SurfaceTexture.html index c0ea0bc1f614..43fc9e62e96e 100644 --- a/doc/wgpu_hal/vulkan/struct.SurfaceTexture.html +++ b/doc/wgpu_hal/vulkan/struct.SurfaceTexture.html @@ -12,7 +12,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Swapchain.html b/doc/wgpu_hal/vulkan/struct.Swapchain.html index c158c720f1fc..98418f062b8b 100644 --- a/doc/wgpu_hal/vulkan/struct.Swapchain.html +++ b/doc/wgpu_hal/vulkan/struct.Swapchain.html @@ -5,11 +5,11 @@ device: Arc<DeviceShared>, images: Vec<Image>, config: SurfaceConfiguration, - view_formats: Vec<TextureFormat>, + view_formats: Vec<TextureFormat>, surface_semaphores: Vec<Arc<Mutex<SwapchainImageSemaphores>>>, next_semaphore_index: usize, next_present_time: Option<PresentTimeGOOGLE>, -}
    Available on vulkan only.

    Fields§

    §raw: SwapchainKHR§raw_flags: SwapchainCreateFlagsKHR§functor: Device§device: Arc<DeviceShared>§images: Vec<Image>§config: SurfaceConfiguration§view_formats: Vec<TextureFormat>§surface_semaphores: Vec<Arc<Mutex<SwapchainImageSemaphores>>>

    One wait semaphore per swapchain image. This will be associated with the +}

    Available on vulkan only.

    Fields§

    §raw: SwapchainKHR§raw_flags: SwapchainCreateFlagsKHR§functor: Device§device: Arc<DeviceShared>§images: Vec<Image>§config: SurfaceConfiguration§view_formats: Vec<TextureFormat>§surface_semaphores: Vec<Arc<Mutex<SwapchainImageSemaphores>>>

    One wait semaphore per swapchain image. This will be associated with the surface texture, and later collected during submission.

    We need this to be Arc<Mutex<>> because we need to be able to pass this data into the surface texture, so submit/present can use it.

    @@ -18,7 +18,7 @@ to the acquire_next_image function which is what tells us which image to use.

    §next_present_time: Option<PresentTimeGOOGLE>

    The present timing information which will be set in the next call to present().

    §Safety

    -

    This must only be set if [wgt::Features::VULKAN_GOOGLE_DISPLAY_TIMING] is enabled, and +

    This must only be set if wgt::Features::VULKAN_GOOGLE_DISPLAY_TIMING is enabled, and so the VK_GOOGLE_display_timing extension is present.

    Implementations§

    source§

    impl Swapchain

    source

    unsafe fn release_resources(self, device: &Device) -> Self

    §Safety
      @@ -34,7 +34,7 @@

      §Safety

      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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.SwapchainImageSemaphores.html b/doc/wgpu_hal/vulkan/struct.SwapchainImageSemaphores.html index 518d9d6c3691..3f5dc57e189a 100644 --- a/doc/wgpu_hal/vulkan/struct.SwapchainImageSemaphores.html +++ b/doc/wgpu_hal/vulkan/struct.SwapchainImageSemaphores.html @@ -88,7 +88,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Temp.html b/doc/wgpu_hal/vulkan/struct.Temp.html index a4998ff314d7..c163796cb775 100644 --- a/doc/wgpu_hal/vulkan/struct.Temp.html +++ b/doc/wgpu_hal/vulkan/struct.Temp.html @@ -13,7 +13,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Texture.html b/doc/wgpu_hal/vulkan/struct.Texture.html index 083901909348..cf9061daa6e5 100644 --- a/doc/wgpu_hal/vulkan/struct.Texture.html +++ b/doc/wgpu_hal/vulkan/struct.Texture.html @@ -4,11 +4,11 @@ external_memory: Option<DeviceMemory>, block: Option<MemoryBlock<DeviceMemory>>, usage: TextureUses, - format: TextureFormat, + format: TextureFormat, raw_flags: ImageCreateFlags, copy_size: CopyExtent, - view_formats: Vec<TextureFormat>, -}
    Available on vulkan only.

    Fields§

    §raw: Image§drop_guard: Option<DropGuard>§external_memory: Option<DeviceMemory>§block: Option<MemoryBlock<DeviceMemory>>§usage: TextureUses§format: TextureFormat§raw_flags: ImageCreateFlags§copy_size: CopyExtent§view_formats: Vec<TextureFormat>

    Implementations§

    source§

    impl Texture

    source

    fn map_buffer_copies<T>( + view_formats: Vec<TextureFormat>, +}
    Available on vulkan only.

    Fields§

    §raw: Image§drop_guard: Option<DropGuard>§external_memory: Option<DeviceMemory>§block: Option<MemoryBlock<DeviceMemory>>§usage: TextureUses§format: TextureFormat§raw_flags: ImageCreateFlags§copy_size: CopyExtent§view_formats: Vec<TextureFormat>

    Implementations§

    source§

    impl Texture

    source

    fn map_buffer_copies<T>( &self, regions: T, ) -> impl Iterator<Item = BufferImageCopy>
    where @@ -26,7 +26,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.TextureView.html b/doc/wgpu_hal/vulkan/struct.TextureView.html index 6db551ad8c6a..2b70ea065282 100644 --- a/doc/wgpu_hal/vulkan/struct.TextureView.html +++ b/doc/wgpu_hal/vulkan/struct.TextureView.html @@ -16,7 +16,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.ValidationLayerProperties.html b/doc/wgpu_hal/vulkan/struct.ValidationLayerProperties.html index b55483b231b0..f6e8139bbd69 100644 --- a/doc/wgpu_hal/vulkan/struct.ValidationLayerProperties.html +++ b/doc/wgpu_hal/vulkan/struct.ValidationLayerProperties.html @@ -15,7 +15,7 @@ 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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_hal/vulkan/struct.Workarounds.html b/doc/wgpu_hal/vulkan/struct.Workarounds.html index f6d90e85b454..343bd1b4466f 100644 --- a/doc/wgpu_hal/vulkan/struct.Workarounds.html +++ b/doc/wgpu_hal/vulkan/struct.Workarounds.html @@ -94,7 +94,7 @@
    source§

    impl<T> ToOwned for T
    where T: Clone,

    source§

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    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>

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync 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
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/config/struct.GpuTestConfiguration.html b/doc/wgpu_test/config/struct.GpuTestConfiguration.html index a9cecad430fc..4a0a51870064 100644 --- a/doc/wgpu_test/config/struct.GpuTestConfiguration.html +++ b/doc/wgpu_test/config/struct.GpuTestConfiguration.html @@ -27,7 +27,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/enum.FailureBehavior.html b/doc/wgpu_test/enum.FailureBehavior.html index bbea8e2a604e..55c19401b2ac 100644 --- a/doc/wgpu_test/enum.FailureBehavior.html +++ b/doc/wgpu_test/enum.FailureBehavior.html @@ -20,7 +20,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/expectations/enum.ExpectationMatchResult.html b/doc/wgpu_test/expectations/enum.ExpectationMatchResult.html index 8bca82369d1b..89dac121333f 100644 --- a/doc/wgpu_test/expectations/enum.ExpectationMatchResult.html +++ b/doc/wgpu_test/expectations/enum.ExpectationMatchResult.html @@ -16,7 +16,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/expectations/enum.FailureBehavior.html b/doc/wgpu_test/expectations/enum.FailureBehavior.html index 89827cf18946..537f0eb9a6f2 100644 --- a/doc/wgpu_test/expectations/enum.FailureBehavior.html +++ b/doc/wgpu_test/expectations/enum.FailureBehavior.html @@ -20,7 +20,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/expectations/enum.FailureResultKind.html b/doc/wgpu_test/expectations/enum.FailureResultKind.html index 87d618a5d8a3..1a30a89c888b 100644 --- a/doc/wgpu_test/expectations/enum.FailureResultKind.html +++ b/doc/wgpu_test/expectations/enum.FailureResultKind.html @@ -17,7 +17,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/expectations/struct.FailureApplicationReasons.html b/doc/wgpu_test/expectations/struct.FailureApplicationReasons.html index 225b8a71cdfb..93e2d3e23f17 100644 --- a/doc/wgpu_test/expectations/struct.FailureApplicationReasons.html +++ b/doc/wgpu_test/expectations/struct.FailureApplicationReasons.html @@ -76,7 +76,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/expectations/struct.FailureCase.html b/doc/wgpu_test/expectations/struct.FailureCase.html index 10f83f980333..ba837fcf6d61 100644 --- a/doc/wgpu_test/expectations/struct.FailureCase.html +++ b/doc/wgpu_test/expectations/struct.FailureCase.html @@ -1,5 +1,5 @@ FailureCase in wgpu_test::expectations - Rust
    wgpu_test::expectations

    Struct FailureCase

    source
    pub struct FailureCase {
    -    pub backends: Option<Backends>,
    +    pub backends: Option<Backends>,
         pub vendor: Option<u32>,
         pub adapter: Option<&'static str>,
         pub driver: Option<&'static str>,
    @@ -24,24 +24,24 @@
     

    This applies to all cards with "RTX' in their name on either Direct3D backend, no matter the vendor ID or driver name.

    The strings given here need only appear as a substring in the -corresponding AdapterInfo fields. The comparison is +corresponding AdapterInfo fields. The comparison is case-insensitive.

    The default value of FailureCase applies to any test case. That is, there are no criteria to constrain the match.

    -

    Fields§

    §backends: Option<Backends>

    Backends expected to fail, or None for any backend.

    +

    Fields§

    §backends: Option<Backends>

    Backends expected to fail, or None for any backend.

    If this is None, or if the test is using one of the backends in backends, then this FailureCase applies.

    §vendor: Option<u32>

    Vendor expected to fail, or None for any vendor.

    -

    If Some, this must match AdapterInfo::device, which is +

    If Some, this must match AdapterInfo::device, which is usually the PCI device id. Otherwise, this FailureCase applies regardless of vendor.

    §adapter: Option<&'static str>

    Name of adapter expected to fail, or None for any adapter name.

    If this is Some(s) and s is a substring of -AdapterInfo::name, then this FailureCase applies. If +AdapterInfo::name, then this FailureCase applies. If this is None, the adapter name isn’t considered.

    §driver: Option<&'static str>

    Name of driver expected to fail, or None for any driver name.

    If this is Some(s) and s is a substring of -AdapterInfo::driver, then this FailureCase applies. If +AdapterInfo::driver, then this FailureCase applies. If this is None, the driver name isn’t considered.

    §reasons: Vec<FailureReason>

    Reason why the test is expected to fail.

    If this does not match, the failure will not match this case.

    @@ -50,15 +50,15 @@

    Implementations§

    source§

    impl FailureCase

    source

    pub fn new() -> Self

    Create a new failure case.

    source

    pub fn always() -> Self

    This case applies to all tests.

    source

    pub fn never() -> Self

    This case applies to no tests.

    -
    source

    pub fn backend(backends: Backends) -> Self

    Tests running on any of the given backends.

    +
    source

    pub fn backend(backends: Backends) -> Self

    Tests running on any of the given backends.

    source

    pub fn adapter(adapter: &'static str) -> Self

    Tests running on adapter.

    For this case to apply, the adapter string must appear as a substring -of the adapter’s AdapterInfo::name. The comparison is +of the adapter’s AdapterInfo::name. The comparison is case-insensitive.

    -
    source

    pub fn backend_adapter(backends: Backends, adapter: &'static str) -> Self

    Tests running on backend and adapter.

    +
    source

    pub fn backend_adapter(backends: Backends, adapter: &'static str) -> Self

    Tests running on backend and adapter.

    For this case to apply, the test must be using an adapter for one of the given backend bits, and adapter string must appear as a substring of -the adapter’s AdapterInfo::name. The string comparison is +the adapter’s AdapterInfo::name. The string comparison is case-insensitive.

    source

    pub fn webgl2() -> Self

    Tests running under WebGL.

    source

    pub fn molten_vk() -> Self

    Tests running on the MoltenVK Vulkan driver on macOS.

    @@ -73,7 +73,7 @@

    Use this very sparyingly, and match as tightly as you can, including giving a specific failure message.

    source

    pub(crate) fn applies_to_adapter( &self, - info: &AdapterInfo, + info: &AdapterInfo, ) -> Option<FailureApplicationReasons>

    Test whether self applies to info.

    If it does, return a FailureReasons whose set bits indicate why. If it doesn’t, return None.

    @@ -95,7 +95,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/expectations/struct.FailureReason.html b/doc/wgpu_test/expectations/struct.FailureReason.html index be64b474fa7d..13763ed8c2c4 100644 --- a/doc/wgpu_test/expectations/struct.FailureReason.html +++ b/doc/wgpu_test/expectations/struct.FailureReason.html @@ -30,7 +30,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/expectations/struct.FailureResult.html b/doc/wgpu_test/expectations/struct.FailureResult.html index 7bd35bd59355..9a14f7c366b2 100644 --- a/doc/wgpu_test/expectations/struct.FailureResult.html +++ b/doc/wgpu_test/expectations/struct.FailureResult.html @@ -16,7 +16,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/fn.initialize_device.html b/doc/wgpu_test/fn.initialize_device.html index 55cb44c243ad..ae457a7e4817 100644 --- a/doc/wgpu_test/fn.initialize_device.html +++ b/doc/wgpu_test/fn.initialize_device.html @@ -1,6 +1,6 @@ initialize_device in wgpu_test - Rust
    wgpu_test

    Function initialize_device

    source
    pub async fn initialize_device(
         adapter: &Adapter,
    -    features: Features,
    -    limits: Limits,
    +    features: Features,
    +    limits: Limits,
     ) -> (Device, Queue)
    Expand description

    Initialize a wgpu device from a given adapter.

    \ No newline at end of file diff --git a/doc/wgpu_test/fn.initialize_instance.html b/doc/wgpu_test/fn.initialize_instance.html index ce71268d254d..b40e7fb6e7c7 100644 --- a/doc/wgpu_test/fn.initialize_instance.html +++ b/doc/wgpu_test/fn.initialize_instance.html @@ -1,2 +1,2 @@ -initialize_instance in wgpu_test - Rust
    wgpu_test

    Function initialize_instance

    source
    pub fn initialize_instance(backends: Backends, force_fxc: bool) -> Instance
    Expand description

    Initialize a wgpu instance with the options from the environment.

    +initialize_instance in wgpu_test - Rust
    wgpu_test

    Function initialize_instance

    source
    pub fn initialize_instance(backends: Backends, force_fxc: bool) -> Instance
    Expand description

    Initialize a wgpu instance with the options from the environment.

    \ No newline at end of file diff --git a/doc/wgpu_test/image/enum.ComparisonType.html b/doc/wgpu_test/image/enum.ComparisonType.html index 1a492a5f3cb7..ac9601cb0fb8 100644 --- a/doc/wgpu_test/image/enum.ComparisonType.html +++ b/doc/wgpu_test/image/enum.ComparisonType.html @@ -30,7 +30,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/image/fn.compare_image_output.html b/doc/wgpu_test/image/fn.compare_image_output.html index 4ed2f844b0c8..7dcd51bcb20a 100644 --- a/doc/wgpu_test/image/fn.compare_image_output.html +++ b/doc/wgpu_test/image/fn.compare_image_output.html @@ -1,6 +1,6 @@ compare_image_output in wgpu_test::image - Rust
    wgpu_test::image

    Function compare_image_output

    source
    pub async fn compare_image_output(
         path: impl AsRef<Path> + AsRef<OsStr>,
    -    adapter_info: &AdapterInfo,
    +    adapter_info: &AdapterInfo,
         width: u32,
         height: u32,
         test_with_alpha: &[u8],
    diff --git a/doc/wgpu_test/image/fn.copy_texture_to_buffer_with_aspect.html b/doc/wgpu_test/image/fn.copy_texture_to_buffer_with_aspect.html
    index a39ff4a65814..daa954ba2850 100644
    --- a/doc/wgpu_test/image/fn.copy_texture_to_buffer_with_aspect.html
    +++ b/doc/wgpu_test/image/fn.copy_texture_to_buffer_with_aspect.html
    @@ -3,5 +3,5 @@
         texture: &Texture,
         buffer: &Buffer,
         buffer_stencil: &Option<Buffer>,
    -    aspect: TextureAspect,
    +    aspect: TextureAspect,
     )
    \ No newline at end of file diff --git a/doc/wgpu_test/image/fn.copy_via_compute.html b/doc/wgpu_test/image/fn.copy_via_compute.html index 2210a19c0d04..116623995313 100644 --- a/doc/wgpu_test/image/fn.copy_via_compute.html +++ b/doc/wgpu_test/image/fn.copy_via_compute.html @@ -3,5 +3,5 @@ encoder: &mut CommandEncoder, texture: &Texture, buffer: &Buffer, - aspect: TextureAspect, + aspect: TextureAspect, )
    \ No newline at end of file diff --git a/doc/wgpu_test/image/struct.ReadbackBuffers.html b/doc/wgpu_test/image/struct.ReadbackBuffers.html index e3c47fdd4d08..7411a0b81bfe 100644 --- a/doc/wgpu_test/image/struct.ReadbackBuffers.html +++ b/doc/wgpu_test/image/struct.ReadbackBuffers.html @@ -1,11 +1,11 @@ ReadbackBuffers in wgpu_test::image - Rust
    wgpu_test::image

    Struct ReadbackBuffers

    source
    pub struct ReadbackBuffers {
    -    texture_format: TextureFormat,
    +    texture_format: TextureFormat,
         texture_width: u32,
         texture_height: u32,
         texture_depth_or_array_layers: u32,
         buffer: Buffer,
         buffer_stencil: Option<Buffer>,
    -}

    Fields§

    §texture_format: TextureFormat

    texture format

    +}

    Fields§

    §texture_format: TextureFormat

    texture format

    §texture_width: u32

    texture width

    §texture_height: u32

    texture height

    §texture_depth_or_array_layers: u32

    texture depth or array layer count

    @@ -20,12 +20,12 @@ &self, ctx: &TestingContext, buffer: &Buffer, - aspect: Option<TextureAspect>, -) -> Vec<u8>
    source

    fn buffer_aspect(&self) -> Option<TextureAspect>

    source

    async fn is_zero( + aspect: Option<TextureAspect>, +) -> Vec<u8>

    source

    fn buffer_aspect(&self) -> Option<TextureAspect>

    source

    async fn is_zero( &self, ctx: &TestingContext, buffer: &Buffer, - aspect: Option<TextureAspect>, + aspect: Option<TextureAspect>, ) -> bool

    source

    pub async fn are_zero(&self, ctx: &TestingContext) -> bool

    source

    pub async fn assert_buffer_contents( &self, ctx: &TestingContext, @@ -42,7 +42,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/init/fn.initialize_device.html b/doc/wgpu_test/init/fn.initialize_device.html index 8aaa061e1ffc..6a2b1f609125 100644 --- a/doc/wgpu_test/init/fn.initialize_device.html +++ b/doc/wgpu_test/init/fn.initialize_device.html @@ -1,6 +1,6 @@ initialize_device in wgpu_test::init - Rust
    wgpu_test::init

    Function initialize_device

    source
    pub async fn initialize_device(
         adapter: &Adapter,
    -    features: Features,
    -    limits: Limits,
    +    features: Features,
    +    limits: Limits,
     ) -> (Device, Queue)
    Expand description

    Initialize a wgpu device from a given adapter.

    \ No newline at end of file diff --git a/doc/wgpu_test/init/fn.initialize_instance.html b/doc/wgpu_test/init/fn.initialize_instance.html index c00bc387de04..e025081719a4 100644 --- a/doc/wgpu_test/init/fn.initialize_instance.html +++ b/doc/wgpu_test/init/fn.initialize_instance.html @@ -1,2 +1,2 @@ -initialize_instance in wgpu_test::init - Rust
    wgpu_test::init

    Function initialize_instance

    source
    pub fn initialize_instance(backends: Backends, force_fxc: bool) -> Instance
    Expand description

    Initialize a wgpu instance with the options from the environment.

    +initialize_instance in wgpu_test::init - Rust
    wgpu_test::init

    Function initialize_instance

    source
    pub fn initialize_instance(backends: Backends, force_fxc: bool) -> Instance
    Expand description

    Initialize a wgpu instance with the options from the environment.

    \ No newline at end of file diff --git a/doc/wgpu_test/init/struct.SurfaceGuard.html b/doc/wgpu_test/init/struct.SurfaceGuard.html index 5933ebc73020..717859d49e17 100644 --- a/doc/wgpu_test/init/struct.SurfaceGuard.html +++ b/doc/wgpu_test/init/struct.SurfaceGuard.html @@ -10,7 +10,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/isolation/struct.OneTestPerProcessGuard.html b/doc/wgpu_test/isolation/struct.OneTestPerProcessGuard.html index 4dbb3e4d883d..5c36eab77435 100644 --- a/doc/wgpu_test/isolation/struct.OneTestPerProcessGuard.html +++ b/doc/wgpu_test/isolation/struct.OneTestPerProcessGuard.html @@ -12,7 +12,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/native/struct.NativeTest.html b/doc/wgpu_test/native/struct.NativeTest.html index d68b335512f8..a723bd359ff8 100644 --- a/doc/wgpu_test/native/struct.NativeTest.html +++ b/doc/wgpu_test/native/struct.NativeTest.html @@ -17,5 +17,5 @@
    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> RunTestSend for T
    where - T: Send,

    §

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSend for T
    where T: Send,

    \ No newline at end of file diff --git a/doc/wgpu_test/params/constant.LOWEST_DOWNLEVEL_PROPERTIES.html b/doc/wgpu_test/params/constant.LOWEST_DOWNLEVEL_PROPERTIES.html index b95a10ea4c6f..c4bd208e1bb1 100644 --- a/doc/wgpu_test/params/constant.LOWEST_DOWNLEVEL_PROPERTIES.html +++ b/doc/wgpu_test/params/constant.LOWEST_DOWNLEVEL_PROPERTIES.html @@ -1 +1 @@ -LOWEST_DOWNLEVEL_PROPERTIES in wgpu_test::params - Rust
    wgpu_test::params

    Constant LOWEST_DOWNLEVEL_PROPERTIES

    source
    const LOWEST_DOWNLEVEL_PROPERTIES: DownlevelCapabilities;
    \ No newline at end of file +LOWEST_DOWNLEVEL_PROPERTIES in wgpu_test::params - Rust
    wgpu_test::params

    Constant LOWEST_DOWNLEVEL_PROPERTIES

    source
    const LOWEST_DOWNLEVEL_PROPERTIES: DownlevelCapabilities;
    \ No newline at end of file diff --git a/doc/wgpu_test/params/struct.TestInfo.html b/doc/wgpu_test/params/struct.TestInfo.html index 580fad7a80d2..690655e07568 100644 --- a/doc/wgpu_test/params/struct.TestInfo.html +++ b/doc/wgpu_test/params/struct.TestInfo.html @@ -19,7 +19,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/params/struct.TestParameters.html b/doc/wgpu_test/params/struct.TestParameters.html index 874dbd5de6f2..b2c68ac8ea32 100644 --- a/doc/wgpu_test/params/struct.TestParameters.html +++ b/doc/wgpu_test/params/struct.TestParameters.html @@ -1,18 +1,18 @@ TestParameters in wgpu_test::params - Rust
    wgpu_test::params

    Struct TestParameters

    source
    pub struct TestParameters {
    -    pub required_features: Features,
    -    pub required_downlevel_caps: DownlevelCapabilities,
    -    pub required_limits: Limits,
    +    pub required_features: Features,
    +    pub required_downlevel_caps: DownlevelCapabilities,
    +    pub required_limits: Limits,
         pub force_fxc: bool,
         pub skips: Vec<FailureCase>,
         pub failures: Vec<FailureCase>,
     }
    Expand description

    This information determines if a test should run.

    -

    Fields§

    §required_features: Features§required_downlevel_caps: DownlevelCapabilities§required_limits: Limits§force_fxc: bool

    On Dx12, specifically test against the Fxc compiler.

    +

    Fields§

    §required_features: Features§required_downlevel_caps: DownlevelCapabilities§required_limits: Limits§force_fxc: bool

    On Dx12, specifically test against the Fxc compiler.

    For testing workarounds to Fxc bugs.

    §skips: Vec<FailureCase>

    Conditions under which this test should be skipped.

    §failures: Vec<FailureCase>

    Conditions under which this test should be run, but is expected to fail.

    Implementations§

    source§

    impl TestParameters

    source

    pub fn test_features_limits(self) -> Self

    Set of common features that most internal tests require for compute and readback.

    -
    source

    pub fn features(self, features: Features) -> Self

    Set the list of features this test requires.

    -
    source

    pub fn downlevel_flags(self, downlevel_flags: DownlevelFlags) -> Self

    source

    pub fn limits(self, limits: Limits) -> Self

    Set the limits needed for the test.

    +
    source

    pub fn features(self, features: Features) -> Self

    Set the list of features this test requires.

    +
    source

    pub fn downlevel_flags(self, downlevel_flags: DownlevelFlags) -> Self

    source

    pub fn limits(self, limits: Limits) -> Self

    Set the limits needed for the test.

    source

    pub fn force_fxc(self, force_fxc: bool) -> Self

    source

    pub fn expect_fail(self, when: FailureCase) -> Self

    Mark the test as always failing, but not to be skipped.

    source

    pub fn skip(self, when: FailureCase) -> Self

    Mark the test as always failing, and needing to be skipped.

    Trait Implementations§

    source§

    impl Clone for TestParameters

    source§

    fn clone(&self) -> TestParameters

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Default for TestParameters

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where @@ -29,7 +29,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/report/struct.AdapterReport.html b/doc/wgpu_test/report/struct.AdapterReport.html index 1e9f6ac46507..302bcbd5de7c 100644 --- a/doc/wgpu_test/report/struct.AdapterReport.html +++ b/doc/wgpu_test/report/struct.AdapterReport.html @@ -1,12 +1,12 @@ AdapterReport in wgpu_test::report - Rust
    wgpu_test::report

    Struct AdapterReport

    source
    pub struct AdapterReport {
    -    pub info: AdapterInfo,
    -    pub features: Features,
    -    pub limits: Limits,
    -    pub downlevel_caps: DownlevelCapabilities,
    -    pub texture_format_features: HashMap<TextureFormat, TextureFormatFeatures>,
    +    pub info: AdapterInfo,
    +    pub features: Features,
    +    pub limits: Limits,
    +    pub downlevel_caps: DownlevelCapabilities,
    +    pub texture_format_features: HashMap<TextureFormat, TextureFormatFeatures>,
     }
    Expand description

    A single report of the capabilities of an Adapter.

    Must be synchronized with the definition on wgpu-info/src/report.rs.

    -

    Fields§

    §info: AdapterInfo§features: Features§limits: Limits§downlevel_caps: DownlevelCapabilities§texture_format_features: HashMap<TextureFormat, TextureFormatFeatures>

    Implementations§

    source§

    impl AdapterReport

    source

    pub(crate) fn from_adapter(adapter: &Adapter) -> Self

    Trait Implementations§

    source§

    impl Clone for AdapterReport

    source§

    fn clone(&self) -> AdapterReport

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'de> Deserialize<'de> for AdapterReport

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where +

    Fields§

    §info: AdapterInfo§features: Features§limits: Limits§downlevel_caps: DownlevelCapabilities§texture_format_features: HashMap<TextureFormat, TextureFormatFeatures>

    Implementations§

    source§

    impl AdapterReport

    source

    pub(crate) fn from_adapter(adapter: &Adapter) -> Self

    Trait Implementations§

    source§

    impl Clone for AdapterReport

    source§

    fn clone(&self) -> AdapterReport

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<'de> Deserialize<'de> for AdapterReport

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more

    Auto Trait Implementations§

    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 @@ -22,7 +22,7 @@ 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> DeserializeOwned for T
    where T: for<'de> Deserialize<'de>,

    source§

    impl<T> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/report/struct.GpuReport.html b/doc/wgpu_test/report/struct.GpuReport.html index 87e0851f0d6c..2d9478837648 100644 --- a/doc/wgpu_test/report/struct.GpuReport.html +++ b/doc/wgpu_test/report/struct.GpuReport.html @@ -16,7 +16,7 @@ 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> DeserializeOwned for T
    where T: for<'de> Deserialize<'de>,

    source§

    impl<T> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/run/struct.TestingContext.html b/doc/wgpu_test/run/struct.TestingContext.html index 7bd08b98ec34..b3aa0085c754 100644 --- a/doc/wgpu_test/run/struct.TestingContext.html +++ b/doc/wgpu_test/run/struct.TestingContext.html @@ -1,14 +1,14 @@ TestingContext in wgpu_test::run - Rust
    wgpu_test::run

    Struct TestingContext

    source
    pub struct TestingContext {
         pub instance: Instance,
         pub adapter: Adapter,
    -    pub adapter_info: AdapterInfo,
    -    pub adapter_downlevel_capabilities: DownlevelCapabilities,
    +    pub adapter_info: AdapterInfo,
    +    pub adapter_downlevel_capabilities: DownlevelCapabilities,
         pub device: Device,
    -    pub device_features: Features,
    -    pub device_limits: Limits,
    +    pub device_features: Features,
    +    pub device_limits: Limits,
         pub queue: Queue,
     }
    Expand description

    Parameters and resources hadned to the test function.

    -

    Fields§

    §instance: Instance§adapter: Adapter§adapter_info: AdapterInfo§adapter_downlevel_capabilities: DownlevelCapabilities§device: Device§device_features: Features§device_limits: Limits§queue: Queue

    Implementations§

    source§

    impl TestingContext

    source

    pub async fn async_poll(&self, maintain: Maintain) -> MaintainResult

    Utility to allow future asynchronous polling.

    +

    Fields§

    §instance: Instance§adapter: Adapter§adapter_info: AdapterInfo§adapter_downlevel_capabilities: DownlevelCapabilities§device: Device§device_features: Features§device_limits: Limits§queue: Queue

    Implementations§

    source§

    impl TestingContext

    source

    pub async fn async_poll(&self, maintain: Maintain) -> MaintainResult

    Utility to allow future asynchronous polling.

    Auto Trait Implementations§

    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 @@ -21,7 +21,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/struct.FailureApplicationReasons.html b/doc/wgpu_test/struct.FailureApplicationReasons.html index 8f90698a89fe..12f9a59c8eb9 100644 --- a/doc/wgpu_test/struct.FailureApplicationReasons.html +++ b/doc/wgpu_test/struct.FailureApplicationReasons.html @@ -76,7 +76,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/struct.FailureCase.html b/doc/wgpu_test/struct.FailureCase.html index 4e171709788f..6980126c49d3 100644 --- a/doc/wgpu_test/struct.FailureCase.html +++ b/doc/wgpu_test/struct.FailureCase.html @@ -1,5 +1,5 @@ FailureCase in wgpu_test - Rust
    wgpu_test

    Struct FailureCase

    source
    pub struct FailureCase {
    -    pub backends: Option<Backends>,
    +    pub backends: Option<Backends>,
         pub vendor: Option<u32>,
         pub adapter: Option<&'static str>,
         pub driver: Option<&'static str>,
    @@ -24,24 +24,24 @@
     

    This applies to all cards with "RTX' in their name on either Direct3D backend, no matter the vendor ID or driver name.

    The strings given here need only appear as a substring in the -corresponding AdapterInfo fields. The comparison is +corresponding AdapterInfo fields. The comparison is case-insensitive.

    The default value of FailureCase applies to any test case. That is, there are no criteria to constrain the match.

    -

    Fields§

    §backends: Option<Backends>

    Backends expected to fail, or None for any backend.

    +

    Fields§

    §backends: Option<Backends>

    Backends expected to fail, or None for any backend.

    If this is None, or if the test is using one of the backends in backends, then this FailureCase applies.

    §vendor: Option<u32>

    Vendor expected to fail, or None for any vendor.

    -

    If Some, this must match AdapterInfo::device, which is +

    If Some, this must match AdapterInfo::device, which is usually the PCI device id. Otherwise, this FailureCase applies regardless of vendor.

    §adapter: Option<&'static str>

    Name of adapter expected to fail, or None for any adapter name.

    If this is Some(s) and s is a substring of -AdapterInfo::name, then this FailureCase applies. If +AdapterInfo::name, then this FailureCase applies. If this is None, the adapter name isn’t considered.

    §driver: Option<&'static str>

    Name of driver expected to fail, or None for any driver name.

    If this is Some(s) and s is a substring of -AdapterInfo::driver, then this FailureCase applies. If +AdapterInfo::driver, then this FailureCase applies. If this is None, the driver name isn’t considered.

    §reasons: Vec<FailureReason>

    Reason why the test is expected to fail.

    If this does not match, the failure will not match this case.

    @@ -50,15 +50,15 @@

    Implementations§

    source§

    impl FailureCase

    source

    pub fn new() -> Self

    Create a new failure case.

    source

    pub fn always() -> Self

    This case applies to all tests.

    source

    pub fn never() -> Self

    This case applies to no tests.

    -
    source

    pub fn backend(backends: Backends) -> Self

    Tests running on any of the given backends.

    +
    source

    pub fn backend(backends: Backends) -> Self

    Tests running on any of the given backends.

    source

    pub fn adapter(adapter: &'static str) -> Self

    Tests running on adapter.

    For this case to apply, the adapter string must appear as a substring -of the adapter’s AdapterInfo::name. The comparison is +of the adapter’s AdapterInfo::name. The comparison is case-insensitive.

    -
    source

    pub fn backend_adapter(backends: Backends, adapter: &'static str) -> Self

    Tests running on backend and adapter.

    +
    source

    pub fn backend_adapter(backends: Backends, adapter: &'static str) -> Self

    Tests running on backend and adapter.

    For this case to apply, the test must be using an adapter for one of the given backend bits, and adapter string must appear as a substring of -the adapter’s AdapterInfo::name. The string comparison is +the adapter’s AdapterInfo::name. The string comparison is case-insensitive.

    source

    pub fn webgl2() -> Self

    Tests running under WebGL.

    source

    pub fn molten_vk() -> Self

    Tests running on the MoltenVK Vulkan driver on macOS.

    @@ -73,7 +73,7 @@

    Use this very sparyingly, and match as tightly as you can, including giving a specific failure message.

    source

    pub(crate) fn applies_to_adapter( &self, - info: &AdapterInfo, + info: &AdapterInfo, ) -> Option<FailureApplicationReasons>

    Test whether self applies to info.

    If it does, return a FailureReasons whose set bits indicate why. If it doesn’t, return None.

    @@ -95,7 +95,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/struct.FailureReason.html b/doc/wgpu_test/struct.FailureReason.html index 0491daf4be0e..c0d24ad09c7c 100644 --- a/doc/wgpu_test/struct.FailureReason.html +++ b/doc/wgpu_test/struct.FailureReason.html @@ -30,7 +30,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/struct.GpuTestConfiguration.html b/doc/wgpu_test/struct.GpuTestConfiguration.html index 66a59a7ffd0d..0b7fedf2c7c9 100644 --- a/doc/wgpu_test/struct.GpuTestConfiguration.html +++ b/doc/wgpu_test/struct.GpuTestConfiguration.html @@ -27,7 +27,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/struct.TestParameters.html b/doc/wgpu_test/struct.TestParameters.html index 829174464fc7..2f82755f76b1 100644 --- a/doc/wgpu_test/struct.TestParameters.html +++ b/doc/wgpu_test/struct.TestParameters.html @@ -1,18 +1,18 @@ TestParameters in wgpu_test - Rust
    wgpu_test

    Struct TestParameters

    source
    pub struct TestParameters {
    -    pub required_features: Features,
    -    pub required_downlevel_caps: DownlevelCapabilities,
    -    pub required_limits: Limits,
    +    pub required_features: Features,
    +    pub required_downlevel_caps: DownlevelCapabilities,
    +    pub required_limits: Limits,
         pub force_fxc: bool,
         pub skips: Vec<FailureCase>,
         pub failures: Vec<FailureCase>,
     }
    Expand description

    This information determines if a test should run.

    -

    Fields§

    §required_features: Features§required_downlevel_caps: DownlevelCapabilities§required_limits: Limits§force_fxc: bool

    On Dx12, specifically test against the Fxc compiler.

    +

    Fields§

    §required_features: Features§required_downlevel_caps: DownlevelCapabilities§required_limits: Limits§force_fxc: bool

    On Dx12, specifically test against the Fxc compiler.

    For testing workarounds to Fxc bugs.

    §skips: Vec<FailureCase>

    Conditions under which this test should be skipped.

    §failures: Vec<FailureCase>

    Conditions under which this test should be run, but is expected to fail.

    Implementations§

    source§

    impl TestParameters

    source

    pub fn test_features_limits(self) -> Self

    Set of common features that most internal tests require for compute and readback.

    -
    source

    pub fn features(self, features: Features) -> Self

    Set the list of features this test requires.

    -
    source

    pub fn downlevel_flags(self, downlevel_flags: DownlevelFlags) -> Self

    source

    pub fn limits(self, limits: Limits) -> Self

    Set the limits needed for the test.

    +
    source

    pub fn features(self, features: Features) -> Self

    Set the list of features this test requires.

    +
    source

    pub fn downlevel_flags(self, downlevel_flags: DownlevelFlags) -> Self

    source

    pub fn limits(self, limits: Limits) -> Self

    Set the limits needed for the test.

    source

    pub fn force_fxc(self, force_fxc: bool) -> Self

    source

    pub fn expect_fail(self, when: FailureCase) -> Self

    Mark the test as always failing, but not to be skipped.

    source

    pub fn skip(self, when: FailureCase) -> Self

    Mark the test as always failing, and needing to be skipped.

    Trait Implementations§

    source§

    impl Clone for TestParameters

    source§

    fn clone(&self) -> TestParameters

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Default for TestParameters

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where @@ -29,7 +29,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file diff --git a/doc/wgpu_test/struct.TestingContext.html b/doc/wgpu_test/struct.TestingContext.html index 5c2afcc7a515..ea51e8f2ea32 100644 --- a/doc/wgpu_test/struct.TestingContext.html +++ b/doc/wgpu_test/struct.TestingContext.html @@ -1,14 +1,14 @@ TestingContext in wgpu_test - Rust
    wgpu_test

    Struct TestingContext

    source
    pub struct TestingContext {
         pub instance: Instance,
         pub adapter: Adapter,
    -    pub adapter_info: AdapterInfo,
    -    pub adapter_downlevel_capabilities: DownlevelCapabilities,
    +    pub adapter_info: AdapterInfo,
    +    pub adapter_downlevel_capabilities: DownlevelCapabilities,
         pub device: Device,
    -    pub device_features: Features,
    -    pub device_limits: Limits,
    +    pub device_features: Features,
    +    pub device_limits: Limits,
         pub queue: Queue,
     }
    Expand description

    Parameters and resources hadned to the test function.

    -

    Fields§

    §instance: Instance§adapter: Adapter§adapter_info: AdapterInfo§adapter_downlevel_capabilities: DownlevelCapabilities§device: Device§device_features: Features§device_limits: Limits§queue: Queue

    Implementations§

    source§

    impl TestingContext

    source

    pub async fn async_poll(&self, maintain: Maintain) -> MaintainResult

    Utility to allow future asynchronous polling.

    +

    Fields§

    §instance: Instance§adapter: Adapter§adapter_info: AdapterInfo§adapter_downlevel_capabilities: DownlevelCapabilities§device: Device§device_features: Features§device_limits: Limits§queue: Queue

    Implementations§

    source§

    impl TestingContext

    source

    pub async fn async_poll(&self, maintain: Maintain) -> MaintainResult

    Utility to allow future asynchronous polling.

    Auto Trait Implementations§

    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 @@ -21,7 +21,7 @@ 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> RunTestSend for T
    where T: Send,

    source§

    impl<T> RunTestSendSync for T
    where - T: Send + Sync,

    §

    impl<T> WasmNotSend for T
    where - T: Send,

    §

    impl<T> WasmNotSendSync for T
    where - T: WasmNotSend + WasmNotSync,

    §

    impl<T> WasmNotSync for T
    where + T: Send + Sync,

    source§

    impl<T> WasmNotSend for T
    where + T: Send,

    source§

    impl<T> WasmNotSendSync for T
    where + T: WasmNotSend + WasmNotSync,

    source§

    impl<T> WasmNotSync for T
    where T: Sync,

    \ No newline at end of file