From 99ffc129eb75e0332354e5523d85cde5348e788a Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Sun, 28 Jul 2024 12:20:43 +0200 Subject: [PATCH] remove unnecessary debug constraints from Api (handled by Dyn traits) --- wgpu-hal/src/lib.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/wgpu-hal/src/lib.rs b/wgpu-hal/src/lib.rs index dacd21049a..1f4ee79b47 100644 --- a/wgpu-hal/src/lib.rs +++ b/wgpu-hal/src/lib.rs @@ -407,13 +407,13 @@ pub trait Api: Clone + fmt::Debug + Sized { /// them to [`CommandEncoder::reset_all`]. /// /// [`CommandEncoder`]: Api::CommandEncoder - type CommandBuffer: DynCommandBuffer + fmt::Debug; + type CommandBuffer: DynCommandBuffer; type Buffer: DynBuffer; type Texture: DynTexture; - type SurfaceTexture: DynSurfaceTexture + fmt::Debug + Borrow; + type SurfaceTexture: DynSurfaceTexture + Borrow; type TextureView: DynTextureView; - type Sampler: DynSampler + fmt::Debug; + type Sampler: DynSampler; type QuerySet: DynQuerySet; /// A value you can block on to wait for something to finish. @@ -433,17 +433,17 @@ pub trait Api: Clone + fmt::Debug + Sized { /// before a lower-valued operation, then waiting for the fence to reach the /// lower value could return before the lower-valued operation has actually /// finished. - type Fence: DynFence + fmt::Debug; + type Fence: DynFence; - type BindGroupLayout: DynBindGroupLayout + fmt::Debug; + type BindGroupLayout: DynBindGroupLayout; type BindGroup: DynBindGroup; type PipelineLayout: DynPipelineLayout; type ShaderModule: DynShaderModule; type RenderPipeline: DynRenderPipeline; type ComputePipeline: DynComputePipeline; - type PipelineCache: DynPipelineCache + fmt::Debug; + type PipelineCache: DynPipelineCache; - type AccelerationStructure: DynAccelerationStructure + fmt::Debug + 'static; + type AccelerationStructure: DynAccelerationStructure + 'static; } pub trait Instance: Sized + WasmNotSendSync {