Skip to content

Commit

Permalink
Merge pipelines crates into one pipelines crate
Browse files Browse the repository at this point in the history
  • Loading branch information
PolyMeilex committed Aug 19, 2022
1 parent 19b15ad commit 37876ee
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 39 deletions.
27 changes: 9 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ members = [
"lib-midi",
"piano-math",
"wgpu-jumpstart",
"quad-pipeline",
"waterfall-pipeline",
"neothesia-pipelines",
"midi-io",
]

Expand Down Expand Up @@ -39,8 +38,7 @@ bytemuck = "1.5.0"
futures = "0.3.12"

wgpu-jumpstart = { path = "./wgpu-jumpstart" }
quad-pipeline = { path = "./quad-pipeline" }
waterfall-pipeline = { path = "./waterfall-pipeline" }
neothesia-pipelines = { path = "./neothesia-pipelines" }
midi-io = { path = "./midi-io" }

winit = "0.27.2"
Expand Down
4 changes: 2 additions & 2 deletions quad-pipeline/Cargo.toml → neothesia-pipelines/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "quad-pipeline"
name = "neothesia-pipelines"
version = "0.1.0"
edition = "2021"

[dependencies]
wgpu-jumpstart = { path = "../wgpu-jumpstart" }
bytemuck = "1.5"
bytemuck = "1.5"
2 changes: 2 additions & 0 deletions neothesia-pipelines/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod quad;
pub mod waterfall;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl<'a> QuadPipeline {
.create_shader_module(wgpu::ShaderModuleDescriptor {
label: Some("RectanglePipeline::shader"),
source: wgpu::ShaderSource::Wgsl(std::borrow::Cow::Borrowed(include_str!(
"./shader/quad.wgsl"
"./shader.wgsl"
))),
});

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl<'a> WaterfallPipeline {
.create_shader_module(wgpu::ShaderModuleDescriptor {
label: Some("RectanglePipeline::shader"),
source: wgpu::ShaderSource::Wgsl(std::borrow::Cow::Borrowed(include_str!(
"./shader/note.wgsl"
"./shader.wgsl"
))),
});

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/scene/playing_scene/keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::target::Target;
use crate::TransformUniform;
use crate::Uniform;
use lib_midi::MidiEvent;
use quad_pipeline::{QuadInstance, QuadPipeline};
use neothesia_pipelines::quad::{QuadInstance, QuadPipeline};

use piano_math::range::KeyboardRange;

Expand Down
2 changes: 1 addition & 1 deletion src/scene/playing_scene/keyboard/key.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use crate::config::ColorSchema;
use quad_pipeline::QuadInstance;
use neothesia_pipelines::quad::QuadInstance;
use wgpu_jumpstart::Color;

pub struct Key {
Expand Down
2 changes: 1 addition & 1 deletion src/scene/playing_scene/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use notes::Notes;
use super::{Scene, SceneType};

use crate::{midi_event::MidiEvent, target::Target, NeothesiaEvent};
use quad_pipeline::{QuadInstance, QuadPipeline};
use neothesia_pipelines::quad::{QuadInstance, QuadPipeline};
use wgpu_jumpstart::Color;

use winit::event::WindowEvent;
Expand Down
2 changes: 1 addition & 1 deletion src/scene/playing_scene/notes.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::target::Target;
use crate::TransformUniform;
use crate::Uniform;
use waterfall_pipeline::{NoteInstance, WaterfallPipeline};
use neothesia_pipelines::waterfall::{NoteInstance, WaterfallPipeline};
use wgpu_jumpstart::Color;

pub struct Notes {
Expand Down
2 changes: 1 addition & 1 deletion src/scene/scene_transition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
target::Target,
Gpu,
};
use quad_pipeline::{QuadInstance, QuadPipeline};
use neothesia_pipelines::quad::{QuadInstance, QuadPipeline};

use winit::event::WindowEvent;

Expand Down
8 changes: 0 additions & 8 deletions waterfall-pipeline/Cargo.toml

This file was deleted.

0 comments on commit 37876ee

Please sign in to comment.