Skip to content

Commit aad8d2c

Browse files
authored
Merge pull request #52 from altunenes/fix-namings
fix namings
2 parents d624cfc + 7f4b5da commit aad8d2c

File tree

7 files changed

+28
-28
lines changed

7 files changed

+28
-28
lines changed

src/bin/clifford.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ impl UniformProvider for FeedbackParams {
2929
bytemuck::bytes_of(self)
3030
}
3131
}
32-
struct FeedbackShader {
32+
struct Clifford {
3333
base: BaseShader,
3434
renderer_pass2: Renderer,
3535
params_uniform: UniformBinding<FeedbackParams>,
@@ -43,7 +43,7 @@ struct FeedbackShader {
4343
atomic_buffer: AtomicBuffer,
4444
atomic_bind_group_layout: wgpu::BindGroupLayout,
4545
}
46-
impl FeedbackShader {
46+
impl Clifford {
4747
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
4848
let settings = self.base.export_manager.settings();
4949
let (capture_texture, output_buffer) = self.base.create_capture_texture(
@@ -163,7 +163,7 @@ impl FeedbackShader {
163163
}
164164

165165

166-
impl ShaderManager for FeedbackShader {
166+
impl ShaderManager for Clifford {
167167
fn init(core: &Core) -> Self {
168168
let texture_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
169169
entries: &[
@@ -504,6 +504,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
504504
env_logger::init();
505505
let (app, event_loop) = ShaderApp::new("Clifford", 800, 600);
506506
app.run(event_loop, |core| {
507-
FeedbackShader::init(core)
507+
Clifford::init(core)
508508
})
509509
}

src/bin/droste.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2929
env_logger::init();
3030
let (app, event_loop) = ShaderApp::new("Droste", 800, 600);
3131
app.run(event_loop, |core| {
32-
SpiralShader::init(core)
32+
Droste::init(core)
3333
})
3434
}
3535

36-
struct SpiralShader {
36+
struct Droste {
3737
base: BaseShader,
3838
params_uniform: UniformBinding<ShaderParams>,
3939
hot_reload: ShaderHotReload,
@@ -43,7 +43,7 @@ struct SpiralShader {
4343
params_bind_group_layout: wgpu::BindGroupLayout,
4444
}
4545

46-
impl SpiralShader {
46+
impl Droste {
4747
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
4848
let settings = self.base.export_manager.settings();
4949
let (capture_texture, output_buffer) = self.base.create_capture_texture(
@@ -175,7 +175,7 @@ impl SpiralShader {
175175
}
176176
}
177177
}
178-
impl ShaderManager for SpiralShader {
178+
impl ShaderManager for Droste {
179179
fn init(core: &cuneus::Core) -> Self {
180180
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
181181
entries: &[wgpu::BindGroupLayoutEntry {

src/bin/gabornoise.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
3333
env_logger::init();
3434
let (app, event_loop) = ShaderApp::new("gabornoise", 800, 600);
3535
app.run(event_loop, |core| {
36-
SpiralShader::init(core)
36+
Gabor::init(core)
3737
})
3838
}
3939

40-
struct SpiralShader {
40+
struct Gabor {
4141
base: BaseShader,
4242
params_uniform: UniformBinding<ShaderParams>,
4343
hot_reload: ShaderHotReload,
@@ -47,7 +47,7 @@ struct SpiralShader {
4747
params_bind_group_layout: wgpu::BindGroupLayout,
4848
}
4949

50-
impl SpiralShader {
50+
impl Gabor {
5151
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
5252
let settings = self.base.export_manager.settings();
5353
let (capture_texture, output_buffer) = self.base.create_capture_texture(
@@ -179,7 +179,7 @@ impl SpiralShader {
179179
}
180180
}
181181
}
182-
impl ShaderManager for SpiralShader {
182+
impl ShaderManager for Gabor {
183183
fn init(core: &cuneus::Core) -> Self {
184184
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
185185
entries: &[wgpu::BindGroupLayoutEntry {

src/bin/lich.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl UniformProvider for LightningParams {
3232
}
3333

3434

35-
struct AttractorShader {
35+
struct Lich {
3636
base: BaseShader,
3737
renderer_pass2: Renderer,
3838
renderer_pass3: Renderer,
@@ -48,7 +48,7 @@ struct AttractorShader {
4848
atomic_bind_group_layout: wgpu::BindGroupLayout,
4949
}
5050

51-
impl AttractorShader {
51+
impl Lich {
5252
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
5353
let settings = self.base.export_manager.settings();
5454
let (capture_texture, output_buffer) = self.base.create_capture_texture(
@@ -222,7 +222,7 @@ impl AttractorShader {
222222
}
223223
}
224224

225-
impl ShaderManager for AttractorShader {
225+
impl ShaderManager for Lich {
226226
fn init(core: &Core) -> Self {
227227
let texture_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
228228
entries: &[
@@ -659,6 +659,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
659659
env_logger::init();
660660
let (app, event_loop) = ShaderApp::new("Lich", 800, 600);
661661
app.run(event_loop, |core| {
662-
AttractorShader::init(core)
662+
Lich::init(core)
663663
})
664664
}

src/bin/satan.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ impl UniformProvider for AttractorParams {
2424
}
2525
}
2626

27-
struct AttractorShader {
27+
struct Satan {
2828
base: BaseShader,
2929
renderer_pass2: Renderer,
3030
renderer_pass3: Renderer,
@@ -38,7 +38,7 @@ struct AttractorShader {
3838
params_bind_group_layout: wgpu::BindGroupLayout,
3939
}
4040

41-
impl AttractorShader {
41+
impl Satan {
4242
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
4343
let settings = self.base.export_manager.settings();
4444
let (capture_texture, output_buffer) = self.base.create_capture_texture(
@@ -206,7 +206,7 @@ impl AttractorShader {
206206
}
207207
}
208208

209-
impl ShaderManager for AttractorShader {
209+
impl ShaderManager for Satan {
210210
fn init(core: &Core) -> Self {
211211
let texture_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
212212
entries: &[
@@ -594,6 +594,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
594594
env_logger::init();
595595
let (app, event_loop) = ShaderApp::new("satan", 800, 600);
596596
app.run(event_loop, |core| {
597-
AttractorShader::init(core)
597+
Satan::init(core)
598598
})
599599
}

src/bin/scenecolor.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2929
env_logger::init();
3030
let (app, event_loop) = ShaderApp::new("scenecolor", 800, 600);
3131
app.run(event_loop, |core| {
32-
SpiralShader::init(core)
32+
SceneColor::init(core)
3333
})
3434
}
3535

36-
struct SpiralShader {
36+
struct SceneColor {
3737
base: BaseShader,
3838
params_uniform: UniformBinding<ShaderParams>,
3939
hot_reload: ShaderHotReload,
@@ -43,7 +43,7 @@ struct SpiralShader {
4343
params_bind_group_layout: wgpu::BindGroupLayout,
4444
}
4545

46-
impl SpiralShader {
46+
impl SceneColor {
4747
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
4848
let settings = self.base.export_manager.settings();
4949
let (capture_texture, output_buffer) = self.base.create_capture_texture(
@@ -175,7 +175,7 @@ impl SpiralShader {
175175
}
176176
}
177177
}
178-
impl ShaderManager for SpiralShader {
178+
impl ShaderManager for SceneColor {
179179
fn init(core: &cuneus::Core) -> Self {
180180
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
181181
entries: &[wgpu::BindGroupLayoutEntry {

src/bin/voronoi.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
2222
env_logger::init();
2323
let (app, event_loop) = ShaderApp::new("voronoi", 800, 600);
2424
app.run(event_loop, |core| {
25-
SpiralShader::init(core)
25+
Voronoi::init(core)
2626
})
2727
}
28-
struct SpiralShader {
28+
struct Voronoi {
2929
base: BaseShader,
3030
params_uniform: UniformBinding<ShaderParams>,
3131
hot_reload: ShaderHotReload,
@@ -34,7 +34,7 @@ struct SpiralShader {
3434
resolution_bind_group_layout: wgpu::BindGroupLayout,
3535
params_bind_group_layout: wgpu::BindGroupLayout,
3636
}
37-
impl SpiralShader {
37+
impl Voronoi {
3838
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
3939
let settings = self.base.export_manager.settings();
4040
let (capture_texture, output_buffer) = self.base.create_capture_texture(
@@ -166,7 +166,7 @@ impl SpiralShader {
166166
}
167167
}
168168
}
169-
impl ShaderManager for SpiralShader {
169+
impl ShaderManager for Voronoi {
170170
fn init(core: &cuneus::Core) -> Self {
171171
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
172172
entries: &[wgpu::BindGroupLayoutEntry {

0 commit comments

Comments
 (0)