Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions example/src/shader_bindings.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// File automatically generated by wgsl_bindgen^
//
// ^ wgsl_bindgen version 0.22.1
// ^ wgsl_bindgen version 0.22.2
// Changes made to this file will not be saved.
// SourceHash: f296d146d091ee1a37e551883f6442973d1ac679f763f0c9bc90ae8c73abbcbc
// SourceHash: c1fb1254e5a4248bc7e3010f63027ed73f076bae8991ad3b3cbca7fae6f64310

#![allow(unused, non_snake_case, non_camel_case_types, non_upper_case_globals)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
Expand Down Expand Up @@ -454,8 +454,8 @@ pub mod global_bindings {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup0(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup0(pub wgpu::BindGroup);
impl WgpuBindGroup0 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -651,8 +651,8 @@ pub mod fullscreen_effects {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup1(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup1(pub wgpu::BindGroup);
impl WgpuBindGroup1 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -719,8 +719,8 @@ pub mod fullscreen_effects {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup2(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup2(pub wgpu::BindGroup);
impl WgpuBindGroup2 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -1022,8 +1022,8 @@ pub mod simple_array_demo {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup1(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup1(pub wgpu::BindGroup);
impl WgpuBindGroup1 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -1101,8 +1101,8 @@ pub mod simple_array_demo {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup2(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup2(pub wgpu::BindGroup);
impl WgpuBindGroup2 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -1432,8 +1432,8 @@ pub mod overlay {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup0(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup0(pub wgpu::BindGroup);
impl WgpuBindGroup0 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -1890,8 +1890,8 @@ pub mod multisampled_texture_demo {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup1(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup1(pub wgpu::BindGroup);
impl WgpuBindGroup1 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -2242,8 +2242,8 @@ pub mod compute_demo {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup1(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup1(pub wgpu::BindGroup);
impl WgpuBindGroup1 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -2759,7 +2759,7 @@ fn main(@builtin(global_invocation_id) global_id: vec3<u32>) {
return;
}
"#;
pub const SHADER_ENTRY_PATH: &str = "compute_demo/particle_physics.wgsl";
pub const SHADER_ENTRY_PATH: &str = "compute_demo\\particle_physics.wgsl";
pub fn create_shader_module_relative_path(
device: &wgpu::Device,
base_dir: &str,
Expand Down Expand Up @@ -3045,7 +3045,7 @@ fn fs_main(input_1: VertexOutput) -> @location(0) vec4<f32> {
return vec4<f32>(_e63, alpha);
}
"#;
pub const SHADER_ENTRY_PATH: &str = "compute_demo/particle_renderer.wgsl";
pub const SHADER_ENTRY_PATH: &str = "compute_demo\\particle_renderer.wgsl";
pub fn create_shader_module_relative_path(
device: &wgpu::Device,
base_dir: &str,
Expand Down
4 changes: 2 additions & 2 deletions wgsl_bindgen/src/generate/bind_group/single_bind_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ impl<'a> BindGroupStructBuilder<'a> {
let bind_group_name = self.struct_name();

let group_struct = quote! {
#[derive(Debug)]
pub struct #bind_group_name(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct #bind_group_name(pub wgpu::BindGroup);
};

let group_impl = self.bind_group_struct_impl();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: wgsl_bindgen/src/generate/bind_group/mod.rs
assertion_line: 570
---
#[derive(Debug)]
pub struct WgpuBindGroup0EntriesParams<'a> {
Expand Down Expand Up @@ -31,8 +32,8 @@ impl<'a> WgpuBindGroup0Entries<'a> {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup0(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup0(pub wgpu::BindGroup);
impl WgpuBindGroup0 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: wgsl_bindgen/src/generate/bind_group/mod.rs
assertion_line: 607
---
#[derive(Debug)]
pub struct WgpuBindGroup0EntriesParams<'a> {
Expand Down Expand Up @@ -37,8 +38,8 @@ impl<'a> WgpuBindGroup0Entries<'a> {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup0(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup0(pub wgpu::BindGroup);
impl WgpuBindGroup0 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: wgsl_bindgen/src/generate/bind_group/mod.rs
assertion_line: 403
---
#[derive(Debug)]
pub struct WgpuBindGroup0EntriesParams<'a> {
Expand Down Expand Up @@ -37,8 +38,8 @@ impl<'a> WgpuBindGroup0Entries<'a> {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup0(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup0(pub wgpu::BindGroup);
impl WgpuBindGroup0 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -124,8 +125,8 @@ impl<'a> WgpuBindGroup1Entries<'a> {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup1(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup1(pub wgpu::BindGroup);
impl WgpuBindGroup1 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: wgsl_bindgen/src/generate/bind_group/mod.rs
assertion_line: 532
---
#[derive(Debug)]
pub struct WgpuBindGroup0EntriesParams<'a> {
Expand All @@ -25,8 +26,8 @@ impl<'a> WgpuBindGroup0Entries<'a> {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup0(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup0(pub wgpu::BindGroup);
impl WgpuBindGroup0 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: wgsl_bindgen/src/generate/bind_group/mod.rs
assertion_line: 499
---
#[derive(Debug)]
pub struct WgpuBindGroup0EntriesParams<'a> {
Expand All @@ -25,8 +26,8 @@ impl<'a> WgpuBindGroup0Entries<'a> {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup0(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup0(pub wgpu::BindGroup);
impl WgpuBindGroup0 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
source: wgsl_bindgen/src/generate/bind_group/mod.rs
assertion_line: 466
---
#[derive(Debug)]
pub struct WgpuBindGroup0EntriesParams<'a> {
Expand Down Expand Up @@ -97,8 +98,8 @@ impl<'a> WgpuBindGroup0Entries<'a> {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup0(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup0(pub wgpu::BindGroup);
impl WgpuBindGroup0 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down Expand Up @@ -266,8 +267,8 @@ impl<'a> WgpuBindGroup1Entries<'a> {
self.into_array().into_iter().collect()
}
}
#[derive(Debug)]
pub struct WgpuBindGroup1(wgpu::BindGroup);
#[derive(Clone, Debug, Eq, Hash, Ord, PartialOrd, PartialEq)]
pub struct WgpuBindGroup1(pub wgpu::BindGroup);
impl WgpuBindGroup1 {
pub const LAYOUT_DESCRIPTOR: wgpu::BindGroupLayoutDescriptor<'static> =
wgpu::BindGroupLayoutDescriptor {
Expand Down