Skip to content
This repository was archived by the owner on Jun 18, 2021. It is now read-only.

Commit 974054a

Browse files
committed
Remove Hash on more descriptors
1 parent 751fcea commit 974054a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,14 @@ pub struct CommandEncoder {
270270
}
271271

272272
/// An in-progress recording of a render pass.
273-
#[derive(Debug, PartialEq, Eq, Hash)]
273+
#[derive(Debug, PartialEq, Eq)]
274274
pub struct RenderPass<'a> {
275275
id: wgc::id::RenderPassId,
276276
_parent: &'a mut CommandEncoder,
277277
}
278278

279279
/// An in-progress recording of a compute pass.
280-
#[derive(Debug, PartialEq, Eq, Hash)]
280+
#[derive(Debug, PartialEq, Eq)]
281281
pub struct ComputePass<'a> {
282282
id: wgc::id::ComputePassId,
283283
_parent: &'a mut CommandEncoder,
@@ -292,7 +292,7 @@ pub struct Queue {
292292
}
293293

294294
/// A resource that can be bound to a pipeline.
295-
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
295+
#[derive(Clone, Debug, PartialEq, Eq)]
296296
pub enum BindingResource<'a> {
297297
Buffer {
298298
buffer: &'a Buffer,
@@ -303,7 +303,7 @@ pub enum BindingResource<'a> {
303303
}
304304

305305
/// A bindable resource and the slot to bind it to.
306-
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
306+
#[derive(Clone, Debug, PartialEq, Eq)]
307307
pub struct Binding<'a> {
308308
pub binding: u32,
309309
pub resource: BindingResource<'a>,
@@ -354,7 +354,7 @@ pub struct BindGroupLayoutDescriptor<'a> {
354354
}
355355

356356
/// A description of a group of bindings and the resources to be bound.
357-
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
357+
#[derive(Clone, Debug, PartialEq, Eq)]
358358
pub struct BindGroupDescriptor<'a> {
359359
/// The layout for this bind group.
360360
pub layout: &'a BindGroupLayout,
@@ -371,13 +371,13 @@ pub struct BindGroupDescriptor<'a> {
371371
///
372372
/// A `PipelineLayoutDescriptor` can be passed to [`Device::create_pipeline_layout`] to obtain a
373373
/// [`PipelineLayout`].
374-
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
374+
#[derive(Clone, Debug, PartialEq, Eq)]
375375
pub struct PipelineLayoutDescriptor<'a> {
376376
pub bind_group_layouts: &'a [&'a BindGroupLayout],
377377
}
378378

379379
/// A description of a programmable pipeline stage.
380-
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
380+
#[derive(Clone, Debug, PartialEq, Eq)]
381381
pub struct ProgrammableStageDescriptor<'a> {
382382
/// The compiled shader module for this stage.
383383
pub module: &'a ShaderModule,
@@ -409,7 +409,7 @@ pub struct VertexBufferDescriptor<'a> {
409409
}
410410

411411
/// A complete description of a render (graphics) pipeline.
412-
#[derive(Clone, Debug, PartialEq)]
412+
#[derive(Clone, Debug)]
413413
pub struct RenderPipelineDescriptor<'a> {
414414
/// The layout of bind groups for this pipeline.
415415
pub layout: &'a PipelineLayout,
@@ -527,14 +527,14 @@ pub struct TextureDescriptor<'a> {
527527
}
528528

529529
/// A swap chain image that can be rendered to.
530-
#[derive(Debug, PartialEq, Eq, Hash)]
530+
#[derive(Debug, PartialEq, Eq)]
531531
pub struct SwapChainOutput {
532532
pub view: TextureView,
533533
swap_chain_id: wgc::id::SwapChainId,
534534
}
535535

536536
/// A view of a buffer which can be used to copy to or from a texture.
537-
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
537+
#[derive(Clone, Debug, PartialEq, Eq)]
538538
pub struct BufferCopyView<'a> {
539539
/// The buffer to be copied to or from.
540540
pub buffer: &'a Buffer,
@@ -564,7 +564,7 @@ impl BufferCopyView<'_> {
564564
}
565565

566566
/// A view of a texture which can be used to copy to or from a buffer or another texture.
567-
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
567+
#[derive(Clone, Debug, PartialEq, Eq)]
568568
pub struct TextureCopyView<'a> {
569569
/// The texture to be copied to or from.
570570
pub texture: &'a Texture,

0 commit comments

Comments
 (0)