Struct wgpu_core::global::Global

source ·
pub struct Global<G: GlobalIdentityHandlerFactory> {
    pub instance: Instance,
    pub surfaces: Registry<Surface, SurfaceId, G>,
    pub(crate) hubs: Hubs<G>,
}

Fields§

§instance: Instance§surfaces: Registry<Surface, SurfaceId, G>§hubs: Hubs<G>

Implementations§

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub fn command_encoder_clear_buffer<A: HalApi>( &self, command_encoder_id: CommandEncoderId, dst: BufferId, offset: BufferAddress, size: Option<BufferSize> ) -> Result<(), ClearError>

source

pub fn command_encoder_clear_texture<A: HalApi>( &self, command_encoder_id: CommandEncoderId, dst: TextureId, subresource_range: &ImageSubresourceRange ) -> Result<(), ClearError>

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub fn command_encoder_write_timestamp<A: HalApi>( &self, command_encoder_id: CommandEncoderId, query_set_id: QuerySetId, query_index: u32 ) -> Result<(), QueryError>

source

pub fn command_encoder_resolve_query_set<A: HalApi>( &self, command_encoder_id: CommandEncoderId, query_set_id: QuerySetId, start_query: u32, query_count: u32, destination: BufferId, destination_offset: BufferAddress ) -> Result<(), QueryError>

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub fn command_encoder_copy_buffer_to_buffer<A: HalApi>( &self, command_encoder_id: CommandEncoderId, source: BufferId, source_offset: BufferAddress, destination: BufferId, destination_offset: BufferAddress, size: BufferAddress ) -> Result<(), CopyError>

source

pub fn command_encoder_copy_buffer_to_texture<A: HalApi>( &self, command_encoder_id: CommandEncoderId, source: &ImageCopyBuffer, destination: &ImageCopyTexture, copy_size: &Extent3d ) -> Result<(), CopyError>

source

pub fn command_encoder_copy_texture_to_buffer<A: HalApi>( &self, command_encoder_id: CommandEncoderId, source: &ImageCopyTexture, destination: &ImageCopyBuffer, copy_size: &Extent3d ) -> Result<(), CopyError>

source

pub fn command_encoder_copy_texture_to_texture<A: HalApi>( &self, command_encoder_id: CommandEncoderId, source: &ImageCopyTexture, destination: &ImageCopyTexture, copy_size: &Extent3d ) -> Result<(), CopyError>

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub fn adapter_is_surface_supported<A: HalApi>( &self, adapter_id: AdapterId, surface_id: SurfaceId ) -> Result<bool, IsSurfaceSupportedError>

source

pub fn surface_get_capabilities<A: HalApi>( &self, surface_id: SurfaceId, adapter_id: AdapterId ) -> Result<SurfaceCapabilities, GetSurfaceSupportError>

source

fn fetch_adapter_and_surface<A: HalApi, F: FnOnce(&Adapter<A>, &Surface) -> Result<B, GetSurfaceSupportError>, B>( &self, surface_id: SurfaceId, adapter_id: AdapterId, get_supported_callback: F ) -> Result<B, GetSurfaceSupportError>

source

pub fn device_features<A: HalApi>( &self, device_id: DeviceId ) -> Result<Features, InvalidDevice>

source

pub fn device_limits<A: HalApi>( &self, device_id: DeviceId ) -> Result<Limits, InvalidDevice>

source

pub fn device_downlevel_properties<A: HalApi>( &self, device_id: DeviceId ) -> Result<DownlevelCapabilities, InvalidDevice>

source

pub fn device_create_buffer<A: HalApi>( &self, device_id: DeviceId, desc: &BufferDescriptor<'_>, id_in: Input<G, BufferId> ) -> (BufferId, Option<CreateBufferError>)

source

pub fn create_buffer_error<A: HalApi>( &self, id_in: Input<G, BufferId>, label: Label<'_> )

Assign id_in an error with the given label.

Ensure that future attempts to use id_in as a buffer ID will propagate the error, following the WebGPU “contagious invalidity” style.

Firefox uses this function to comply strictly with the WebGPU spec, which requires GPUBufferDescriptor validation to be generated on the Device timeline and leave the newly created GPUBuffer invalid.

Ideally, we would simply let device_create_buffer take care of all of this, but some errors must be detected before we can even construct a wgpu_types::BufferDescriptor to give it. For example, the WebGPU API allows a GPUBufferDescriptor’s usage property to be any WebIDL unsigned long value, but we can’t construct a wgpu_types::BufferUsages value from values with unassigned bits set. This means we must validate usage before we can call device_create_buffer.

When that validation fails, we must arrange for the buffer id to be considered invalid. This method provides the means to do so.

source

pub fn create_render_bundle_error<A: HalApi>( &self, id_in: Input<G, RenderBundleId>, label: Label<'_> )

source

pub fn create_texture_error<A: HalApi>( &self, id_in: Input<G, TextureId>, label: Label<'_> )

Assign id_in an error with the given label.

See create_buffer_error for more context and explaination.

source

pub fn device_wait_for_buffer<A: HalApi>( &self, device_id: DeviceId, buffer_id: BufferId ) -> Result<(), WaitIdleError>

source

pub fn buffer_label<A: HalApi>(&self, id: BufferId) -> String

source

pub fn buffer_destroy<A: HalApi>( &self, buffer_id: BufferId ) -> Result<(), DestroyError>

source

pub fn buffer_drop<A: HalApi>(&self, buffer_id: BufferId, wait: bool)

source

pub fn device_create_texture<A: HalApi>( &self, device_id: DeviceId, desc: &TextureDescriptor<'_>, id_in: Input<G, TextureId> ) -> (TextureId, Option<CreateTextureError>)

source

pub unsafe fn create_texture_from_hal<A: HalApi>( &self, hal_texture: A::Texture, device_id: DeviceId, desc: &TextureDescriptor<'_>, id_in: Input<G, TextureId> ) -> (TextureId, Option<CreateTextureError>)

Safety
  • hal_texture must be created from device_id corresponding raw handle.
  • hal_texture must be created respecting desc
  • hal_texture must be initialized
source

pub unsafe fn create_buffer_from_hal<A: HalApi>( &self, hal_buffer: A::Buffer, device_id: DeviceId, desc: &BufferDescriptor<'_>, id_in: Input<G, BufferId> ) -> (BufferId, Option<CreateBufferError>)

Safety
  • hal_buffer must be created from device_id corresponding raw handle.
  • hal_buffer must be created respecting desc
  • hal_buffer must be initialized
source

pub fn texture_label<A: HalApi>(&self, id: TextureId) -> String

source

pub fn texture_destroy<A: HalApi>( &self, texture_id: TextureId ) -> Result<(), DestroyError>

source

pub fn texture_drop<A: HalApi>(&self, texture_id: TextureId, wait: bool)

source

pub fn texture_create_view<A: HalApi>( &self, texture_id: TextureId, desc: &TextureViewDescriptor<'_>, id_in: Input<G, TextureViewId> ) -> (TextureViewId, Option<CreateTextureViewError>)

source

pub fn texture_view_label<A: HalApi>(&self, id: TextureViewId) -> String

source

pub fn texture_view_drop<A: HalApi>( &self, texture_view_id: TextureViewId, wait: bool ) -> Result<(), TextureViewDestroyError>

source

pub fn device_create_sampler<A: HalApi>( &self, device_id: DeviceId, desc: &SamplerDescriptor<'_>, id_in: Input<G, SamplerId> ) -> (SamplerId, Option<CreateSamplerError>)

source

pub fn sampler_label<A: HalApi>(&self, id: SamplerId) -> String

source

pub fn sampler_drop<A: HalApi>(&self, sampler_id: SamplerId)

source

pub fn device_create_bind_group_layout<A: HalApi>( &self, device_id: DeviceId, desc: &BindGroupLayoutDescriptor<'_>, id_in: Input<G, BindGroupLayoutId> ) -> (BindGroupLayoutId, Option<CreateBindGroupLayoutError>)

source

pub fn bind_group_layout_label<A: HalApi>( &self, id: BindGroupLayoutId ) -> String

source

pub fn bind_group_layout_drop<A: HalApi>( &self, bind_group_layout_id: BindGroupLayoutId )

source

pub fn device_create_pipeline_layout<A: HalApi>( &self, device_id: DeviceId, desc: &PipelineLayoutDescriptor<'_>, id_in: Input<G, PipelineLayoutId> ) -> (PipelineLayoutId, Option<CreatePipelineLayoutError>)

source

pub fn pipeline_layout_label<A: HalApi>(&self, id: PipelineLayoutId) -> String

source

pub fn pipeline_layout_drop<A: HalApi>( &self, pipeline_layout_id: PipelineLayoutId )

source

pub fn device_create_bind_group<A: HalApi>( &self, device_id: DeviceId, desc: &BindGroupDescriptor<'_>, id_in: Input<G, BindGroupId> ) -> (BindGroupId, Option<CreateBindGroupError>)

source

pub fn bind_group_label<A: HalApi>(&self, id: BindGroupId) -> String

source

pub fn bind_group_drop<A: HalApi>(&self, bind_group_id: BindGroupId)

source

pub fn device_create_shader_module<A: HalApi>( &self, device_id: DeviceId, desc: &ShaderModuleDescriptor<'_>, source: ShaderModuleSource<'_>, id_in: Input<G, ShaderModuleId> ) -> (ShaderModuleId, Option<CreateShaderModuleError>)

source

pub unsafe fn device_create_shader_module_spirv<A: HalApi>( &self, device_id: DeviceId, desc: &ShaderModuleDescriptor<'_>, source: Cow<'_, [u32]>, id_in: Input<G, ShaderModuleId> ) -> (ShaderModuleId, Option<CreateShaderModuleError>)

Safety

This function passes SPIR-V binary to the backend as-is and can potentially result in a driver crash.

source

pub fn shader_module_label<A: HalApi>(&self, id: ShaderModuleId) -> String

source

pub fn shader_module_drop<A: HalApi>(&self, shader_module_id: ShaderModuleId)

source

pub fn device_create_command_encoder<A: HalApi>( &self, device_id: DeviceId, desc: &CommandEncoderDescriptor<Label<'_>>, id_in: Input<G, CommandEncoderId> ) -> (CommandEncoderId, Option<DeviceError>)

source

pub fn command_buffer_label<A: HalApi>(&self, id: CommandBufferId) -> String

source

pub fn command_encoder_drop<A: HalApi>( &self, command_encoder_id: CommandEncoderId )

source

pub fn command_buffer_drop<A: HalApi>(&self, command_buffer_id: CommandBufferId)

source

pub fn device_create_render_bundle_encoder( &self, device_id: DeviceId, desc: &RenderBundleEncoderDescriptor<'_> ) -> (RenderBundleEncoderId, Option<CreateRenderBundleError>)

source

pub fn render_bundle_encoder_finish<A: HalApi>( &self, bundle_encoder: RenderBundleEncoder, desc: &RenderBundleDescriptor<'_>, id_in: Input<G, RenderBundleId> ) -> (RenderBundleId, Option<RenderBundleError>)

source

pub fn render_bundle_label<A: HalApi>(&self, id: RenderBundleId) -> String

source

pub fn render_bundle_drop<A: HalApi>(&self, render_bundle_id: RenderBundleId)

source

pub fn device_create_query_set<A: HalApi>( &self, device_id: DeviceId, desc: &QuerySetDescriptor<'_>, id_in: Input<G, QuerySetId> ) -> (QuerySetId, Option<CreateQuerySetError>)

source

pub fn query_set_drop<A: HalApi>(&self, query_set_id: QuerySetId)

source

pub fn query_set_label<A: HalApi>(&self, id: QuerySetId) -> String

source

pub fn device_create_render_pipeline<A: HalApi>( &self, device_id: DeviceId, desc: &RenderPipelineDescriptor<'_>, id_in: Input<G, RenderPipelineId>, implicit_pipeline_ids: Option<ImplicitPipelineIds<'_, G>> ) -> (RenderPipelineId, Option<CreateRenderPipelineError>)

source

pub fn render_pipeline_get_bind_group_layout<A: HalApi>( &self, pipeline_id: RenderPipelineId, index: u32, id_in: Input<G, BindGroupLayoutId> ) -> (BindGroupLayoutId, Option<GetBindGroupLayoutError>)

Get an ID of one of the bind group layouts. The ID adds a refcount, which needs to be released by calling bind_group_layout_drop.

source

pub fn render_pipeline_label<A: HalApi>(&self, id: RenderPipelineId) -> String

source

pub fn render_pipeline_drop<A: HalApi>( &self, render_pipeline_id: RenderPipelineId )

source

pub fn device_create_compute_pipeline<A: HalApi>( &self, device_id: DeviceId, desc: &ComputePipelineDescriptor<'_>, id_in: Input<G, ComputePipelineId>, implicit_pipeline_ids: Option<ImplicitPipelineIds<'_, G>> ) -> (ComputePipelineId, Option<CreateComputePipelineError>)

source

pub fn compute_pipeline_get_bind_group_layout<A: HalApi>( &self, pipeline_id: ComputePipelineId, index: u32, id_in: Input<G, BindGroupLayoutId> ) -> (BindGroupLayoutId, Option<GetBindGroupLayoutError>)

Get an ID of one of the bind group layouts. The ID adds a refcount, which needs to be released by calling bind_group_layout_drop.

source

pub fn compute_pipeline_label<A: HalApi>(&self, id: ComputePipelineId) -> String

source

pub fn compute_pipeline_drop<A: HalApi>( &self, compute_pipeline_id: ComputePipelineId )

source

pub fn surface_configure<A: HalApi>( &self, surface_id: SurfaceId, device_id: DeviceId, config: &SurfaceConfiguration<Vec<TextureFormat>> ) -> Option<ConfigureSurfaceError>

source

pub fn device_maintain_ids<A: HalApi>( &self, device_id: DeviceId ) -> Result<(), InvalidDevice>

Only triange suspected resource IDs. This helps us to avoid ID collisions upon creating new resources when re-playing a trace.

source

pub fn device_poll<A: HalApi>( &self, device_id: DeviceId, maintain: Maintain<WrappedSubmissionIndex> ) -> Result<bool, WaitIdleError>

Check device_id for freeable resources and completed buffer mappings.

Return queue_empty indicating whether there are more queue submissions still in flight.

source

fn poll_devices<A: HalApi>( &self, force_wait: bool, closures: &mut UserClosures ) -> Result<bool, WaitIdleError>

Poll all devices belonging to the backend A.

If force_wait is true, block until all buffer mappings are done.

Return all_queue_empty indicating whether there are more queue submissions still in flight.

source

pub fn poll_all_devices(&self, force_wait: bool) -> Result<bool, WaitIdleError>

Poll all devices on all backends.

This is the implementation of wgpu::Instance::poll_all.

Return all_queue_empty indicating whether there are more queue submissions still in flight.

source

pub fn device_label<A: HalApi>(&self, id: DeviceId) -> String

source

pub fn device_start_capture<A: HalApi>(&self, id: DeviceId)

source

pub fn device_stop_capture<A: HalApi>(&self, id: DeviceId)

source

pub fn device_drop<A: HalApi>(&self, device_id: DeviceId)

source

pub fn device_destroy<A: HalApi>(&self, device_id: DeviceId)

source

pub fn device_lose<A: HalApi>(&self, device_id: DeviceId, reason: Option<&str>)

source

fn exit_device<A: HalApi>(&self, device_id: DeviceId)

Exit the unreferenced, inactive device device_id.

source

pub fn buffer_map_async<A: HalApi>( &self, buffer_id: BufferId, range: Range<BufferAddress>, op: BufferMapOperation ) -> BufferAccessResult

source

fn buffer_map_async_inner<A: HalApi>( &self, buffer_id: BufferId, range: Range<BufferAddress>, op: BufferMapOperation ) -> Result<(), (BufferMapOperation, BufferAccessError)>

source

pub fn buffer_get_mapped_range<A: HalApi>( &self, buffer_id: BufferId, offset: BufferAddress, size: Option<BufferAddress> ) -> Result<(*mut u8, u64), BufferAccessError>

source

fn buffer_unmap_inner<A: HalApi>( &self, buffer_id: BufferId, buffer: &mut Buffer<A>, device: &mut Device<A> ) -> Result<Option<BufferMapPendingClosure>, BufferAccessError>

source

pub fn buffer_unmap<A: HalApi>(&self, buffer_id: BufferId) -> BufferAccessResult

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub fn queue_write_buffer<A: HalApi>( &self, queue_id: QueueId, buffer_id: BufferId, buffer_offset: BufferAddress, data: &[u8] ) -> Result<(), QueueWriteError>

source

pub fn queue_create_staging_buffer<A: HalApi>( &self, queue_id: QueueId, buffer_size: BufferSize, id_in: Input<G, StagingBufferId> ) -> Result<(StagingBufferId, *mut u8), QueueWriteError>

source

pub fn queue_write_staging_buffer<A: HalApi>( &self, queue_id: QueueId, buffer_id: BufferId, buffer_offset: BufferAddress, staging_buffer_id: StagingBufferId ) -> Result<(), QueueWriteError>

source

pub fn queue_validate_write_buffer<A: HalApi>( &self, _queue_id: QueueId, buffer_id: BufferId, buffer_offset: u64, buffer_size: u64 ) -> Result<(), QueueWriteError>

source

fn queue_validate_write_buffer_impl<A: HalApi>( &self, buffer: &Buffer<A>, buffer_id: BufferId, buffer_offset: u64, buffer_size: u64 ) -> Result<(), TransferError>

source

fn queue_write_staging_buffer_impl<A: HalApi>( &self, device_id: DeviceId, device: &mut Device<A>, device_token: &mut Token<'_, Device<A>>, staging_buffer: &StagingBuffer<A>, buffer_id: BufferId, buffer_offset: u64 ) -> Result<(), QueueWriteError>

source

pub fn queue_write_texture<A: HalApi>( &self, queue_id: QueueId, destination: &ImageCopyTexture, data: &[u8], data_layout: &ImageDataLayout, size: &Extent3d ) -> Result<(), QueueWriteError>

source

pub fn queue_submit<A: HalApi>( &self, queue_id: QueueId, command_buffer_ids: &[CommandBufferId] ) -> Result<WrappedSubmissionIndex, QueueSubmitError>

source

pub fn queue_get_timestamp_period<A: HalApi>( &self, queue_id: QueueId ) -> Result<f32, InvalidQueue>

source

pub fn queue_on_submitted_work_done<A: HalApi>( &self, queue_id: QueueId, closure: SubmittedWorkDoneClosure ) -> Result<(), InvalidQueue>

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub fn new(name: &str, factory: G, instance_desc: InstanceDescriptor) -> Self

source

pub unsafe fn from_hal_instance<A: HalApi>( name: &str, factory: G, hal_instance: A::Instance ) -> Self

Safety

Refer to the creation of wgpu-hal Instance for every backend.

source

pub unsafe fn instance_as_hal<A: HalApi>(&self) -> Option<&A::Instance>

Safety
  • The raw instance handle returned must not be manually destroyed.
source

pub unsafe fn from_instance(factory: G, instance: Instance) -> Self

Safety
  • The raw handles obtained from the Instance must not be manually destroyed
source

pub fn clear_backend<A: HalApi>(&self, _dummy: ())

source

pub fn generate_report(&self) -> GlobalReport

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub fn surface_drop(&self, id: SurfaceId)

source

fn enumerate<A: HalApi>( &self, _: A, instance: &Option<A::Instance>, inputs: &AdapterInputs<'_, Input<G, AdapterId>>, list: &mut Vec<AdapterId> )

source

pub fn enumerate_adapters( &self, inputs: AdapterInputs<'_, Input<G, AdapterId>> ) -> Vec<AdapterId>

source

fn select<A: HalApi>( &self, selected: &mut usize, new_id: Option<Input<G, AdapterId>>, list: Vec<ExposedAdapter<A>> ) -> Option<AdapterId>

source

pub fn request_adapter( &self, desc: &RequestAdapterOptions, inputs: AdapterInputs<'_, Input<G, AdapterId>> ) -> Result<AdapterId, RequestAdapterError>

source

pub unsafe fn create_adapter_from_hal<A: HalApi>( &self, hal_adapter: ExposedAdapter<A>, input: Input<G, AdapterId> ) -> AdapterId

Safety

hal_adapter must be created from this global internal instance handle.

source

pub fn adapter_get_info<A: HalApi>( &self, adapter_id: AdapterId ) -> Result<AdapterInfo, InvalidAdapter>

source

pub fn adapter_get_texture_format_features<A: HalApi>( &self, adapter_id: AdapterId, format: TextureFormat ) -> Result<TextureFormatFeatures, InvalidAdapter>

source

pub fn adapter_features<A: HalApi>( &self, adapter_id: AdapterId ) -> Result<Features, InvalidAdapter>

source

pub fn adapter_limits<A: HalApi>( &self, adapter_id: AdapterId ) -> Result<Limits, InvalidAdapter>

source

pub fn adapter_downlevel_capabilities<A: HalApi>( &self, adapter_id: AdapterId ) -> Result<DownlevelCapabilities, InvalidAdapter>

source

pub fn adapter_get_presentation_timestamp<A: HalApi>( &self, adapter_id: AdapterId ) -> Result<PresentationTimestamp, InvalidAdapter>

source

pub fn adapter_drop<A: HalApi>(&self, adapter_id: AdapterId)

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub fn adapter_request_device<A: HalApi>( &self, adapter_id: AdapterId, desc: &DeviceDescriptor<'_>, trace_path: Option<&Path>, id_in: Input<G, DeviceId> ) -> (DeviceId, Option<RequestDeviceError>)

source

pub unsafe fn create_device_from_hal<A: HalApi>( &self, adapter_id: AdapterId, hal_device: OpenDevice<A>, desc: &DeviceDescriptor<'_>, trace_path: Option<&Path>, id_in: Input<G, DeviceId> ) -> (DeviceId, Option<RequestDeviceError>)

Safety
  • hal_device must be created from adapter_id or its internal handle.
  • desc must be a subset of hal_device features and limits.
source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub fn surface_get_current_texture<A: HalApi>( &self, surface_id: SurfaceId, texture_id_in: Input<G, TextureId> ) -> Result<SurfaceOutput, SurfaceError>

source

pub fn surface_present<A: HalApi>( &self, surface_id: SurfaceId ) -> Result<Status, SurfaceError>

source

pub fn surface_texture_discard<A: HalApi>( &self, surface_id: SurfaceId ) -> Result<(), SurfaceError>

source§

impl<G: GlobalIdentityHandlerFactory> Global<G>

source

pub unsafe fn texture_as_hal<A: HalApi, F: FnOnce(Option<&A::Texture>)>( &self, id: TextureId, hal_texture_callback: F )

Safety
  • The raw texture handle must not be manually destroyed
source

pub unsafe fn adapter_as_hal<A: HalApi, F: FnOnce(Option<&A::Adapter>) -> R, R>( &self, id: AdapterId, hal_adapter_callback: F ) -> R

Safety
  • The raw adapter handle must not be manually destroyed
source

pub unsafe fn device_as_hal<A: HalApi, F: FnOnce(Option<&A::Device>) -> R, R>( &self, id: DeviceId, hal_device_callback: F ) -> R

Safety
  • The raw device handle must not be manually destroyed
source

pub unsafe fn surface_as_hal_mut<A: HalApi, F: FnOnce(Option<&mut A::Surface>) -> R, R>( &self, id: SurfaceId, hal_surface_callback: F ) -> R

Safety
  • The raw surface handle must not be manually destroyed

Trait Implementations§

source§

impl<G: GlobalIdentityHandlerFactory> Drop for Global<G>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<G> !RefUnwindSafe for Global<G>

§

impl<G> Send for Global<G>where <G as IdentityHandlerFactory<Id<RenderPipeline<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<CommandBuffer<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<BindGroup<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<Texture<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<TextureView<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<Sampler<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<QuerySet<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<Device<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<Surface>>>::Filter: Send, <G as IdentityHandlerFactory<Id<Adapter<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<RenderBundle<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<Buffer<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<StagingBuffer<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<PipelineLayout<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<BindGroupLayout<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<ShaderModule<Api>>>>::Filter: Send, <G as IdentityHandlerFactory<Id<ComputePipeline<Api>>>>::Filter: Send,

§

impl<G> Sync for Global<G>where <G as IdentityHandlerFactory<Id<RenderPipeline<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<CommandBuffer<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<BindGroup<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<Texture<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<TextureView<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<Sampler<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<QuerySet<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<Device<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<Surface>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<Adapter<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<RenderBundle<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<Buffer<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<StagingBuffer<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<PipelineLayout<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<BindGroupLayout<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<ShaderModule<Api>>>>::Filter: Sync, <G as IdentityHandlerFactory<Id<ComputePipeline<Api>>>>::Filter: Sync,

§

impl<G> Unpin for Global<G>where <G as IdentityHandlerFactory<Id<RenderPipeline<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<CommandBuffer<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<BindGroup<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<Texture<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<TextureView<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<Sampler<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<QuerySet<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<Device<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<Surface>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<Adapter<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<RenderBundle<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<Buffer<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<StagingBuffer<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<PipelineLayout<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<BindGroupLayout<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<ShaderModule<Api>>>>::Filter: Unpin, <G as IdentityHandlerFactory<Id<ComputePipeline<Api>>>>::Filter: Unpin,

§

impl<G> !UnwindSafe for Global<G>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

§

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

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WasmNotSend for Twhere T: Send,

source§

impl<T> WasmNotSync for Twhere T: Sync,