Skip to content

Commit

Permalink
update cuneus 0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
altunenes committed Jan 19, 2025
1 parent 2ffe50e commit c96d758
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 41 deletions.
8 changes: 4 additions & 4 deletions src/bin/asahi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl UniformProvider for ShaderParams {
}
}

struct ChristmasShader {
struct Shader {
base: BaseShader,
params_uniform: UniformBinding<ShaderParams>,
hot_reload: ShaderHotReload,
Expand All @@ -40,10 +40,10 @@ struct ChristmasShader {
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("asahi", 800, 600);
let shader = ChristmasShader::init(app.core());
let shader = Shader::init(app.core());
app.run(event_loop, shader)
}
impl ChristmasShader {
impl Shader {
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
let settings = self.base.export_manager.settings();
let (capture_texture, output_buffer) = self.base.create_capture_texture(
Expand Down Expand Up @@ -164,7 +164,7 @@ impl ChristmasShader {
}
}
}
impl ShaderManager for ChristmasShader {
impl ShaderManager for Shader {
fn init(core: &Core) -> Self {
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
entries: &[wgpu::BindGroupLayoutEntry {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/attractor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ fn handle_input(&mut self, core: &Core, event: &WindowEvent) -> bool {

fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("Attractor Shader", 800, 600);
let (app, event_loop) = ShaderApp::new("Attractor", 800, 600);
let shader = AttractorShader::init(app.core());
app.run(event_loop, shader)
}
2 changes: 1 addition & 1 deletion src/bin/fluid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ impl ShaderManager for FluidShader {
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("Fluid Shader", 800, 600);
let (app, event_loop) = ShaderApp::new("Fluid", 800, 600);
let shader = FluidShader::init(app.core());
app.run(event_loop, shader)
}
8 changes: 4 additions & 4 deletions src/bin/galaxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl UniformProvider for ShaderParams {
}
}

struct ChristmasShader {
struct Shader {
base: BaseShader,
params_uniform: UniformBinding<ShaderParams>,
hot_reload: ShaderHotReload,
Expand All @@ -32,10 +32,10 @@ struct ChristmasShader {
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("galaxy", 800, 600);
let shader = ChristmasShader::init(app.core());
let shader = Shader::init(app.core());
app.run(event_loop, shader)
}
impl ChristmasShader {
impl Shader {
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
let settings = self.base.export_manager.settings();
let (capture_texture, output_buffer) = self.base.create_capture_texture(
Expand Down Expand Up @@ -158,7 +158,7 @@ impl ChristmasShader {
}
}
}
impl ShaderManager for ChristmasShader {
impl ShaderManager for Shader {
fn init(core: &Core) -> Self {
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
entries: &[wgpu::BindGroupLayoutEntry {
Expand Down
8 changes: 4 additions & 4 deletions src/bin/genuary2025_6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl UniformProvider for ShaderParams {
}
}

struct ChristmasShader {
struct Shader {
base: BaseShader,
params_uniform: UniformBinding<ShaderParams>,
hot_reload: ShaderHotReload,
Expand All @@ -33,10 +33,10 @@ struct ChristmasShader {
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("sinh", 800, 600);
let shader = ChristmasShader::init(app.core());
let shader = Shader::init(app.core());
app.run(event_loop, shader)
}
impl ChristmasShader {
impl Shader {
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
let settings = self.base.export_manager.settings();
let (capture_texture, output_buffer) = self.base.create_capture_texture(
Expand Down Expand Up @@ -158,7 +158,7 @@ impl ChristmasShader {
}
}
}
impl ShaderManager for ChristmasShader {
impl ShaderManager for Shader {
fn init(core: &Core) -> Self {
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
entries: &[wgpu::BindGroupLayoutEntry {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/lich.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ fn handle_input(&mut self, core: &Core, event: &WindowEvent) -> bool {

fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("Attractor Shader", 800, 600);
let (app, event_loop) = ShaderApp::new("Lich", 800, 600);
let shader = AttractorShader::init(app.core());
app.run(event_loop, shader)
}
8 changes: 4 additions & 4 deletions src/bin/mandelbrot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl UniformProvider for ShaderParams {
}
}

struct ChristmasShader {
struct Shader {
base: BaseShader,
params_uniform: UniformBinding<ShaderParams>,
hot_reload: ShaderHotReload,
Expand All @@ -41,10 +41,10 @@ struct ChristmasShader {
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("test shader", 800, 600);
let shader = ChristmasShader::init(app.core());
let shader = Shader::init(app.core());
app.run(event_loop, shader)
}
impl ChristmasShader {
impl Shader {
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
let settings = self.base.export_manager.settings();
let (capture_texture, output_buffer) = self.base.create_capture_texture(
Expand Down Expand Up @@ -166,7 +166,7 @@ impl ChristmasShader {
}
}
}
impl ShaderManager for ChristmasShader {
impl ShaderManager for Shader {
fn init(core: &Core) -> Self {
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
entries: &[wgpu::BindGroupLayoutEntry {
Expand Down
8 changes: 4 additions & 4 deletions src/bin/mandelbulb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl UniformProvider for ShaderParams {
}
}

struct ChristmasShader {
struct Shader {
base: BaseShader,
params_uniform: UniformBinding<ShaderParams>,
hot_reload: ShaderHotReload,
Expand All @@ -42,10 +42,10 @@ struct ChristmasShader {
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("mandelbulb", 800, 600);
let shader = ChristmasShader::init(app.core());
let shader = Shader::init(app.core());
app.run(event_loop, shader)
}
impl ChristmasShader {
impl Shader {
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
let settings = self.base.export_manager.settings();
let (capture_texture, output_buffer) = self.base.create_capture_texture(
Expand Down Expand Up @@ -167,7 +167,7 @@ impl ChristmasShader {
}
}
}
impl ShaderManager for ChristmasShader {
impl ShaderManager for Shader {
fn init(core: &Core) -> Self {
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
entries: &[wgpu::BindGroupLayoutEntry {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/orbits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct Shader {
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("Cuneus", 800, 600);
let (app, event_loop) = ShaderApp::new("orbits", 800, 600);
let shader = Shader::init(app.core());
app.run(event_loop, shader)
}
Expand Down
10 changes: 5 additions & 5 deletions src/bin/sdvert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl UniformProvider for ShaderParams {
}
}

struct ChristmasShader {
struct Shader {
base: BaseShader,
params_uniform: UniformBinding<ShaderParams>,
hot_reload: ShaderHotReload,
Expand All @@ -41,11 +41,11 @@ struct ChristmasShader {
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("Vertices", 800, 600);
let shader = ChristmasShader::init(app.core());
let (app, event_loop) = ShaderApp::new("sdvert", 800, 600);
let shader = Shader::init(app.core());
app.run(event_loop, shader)
}
impl ChristmasShader {
impl Shader {
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
let settings = self.base.export_manager.settings();
let (capture_texture, output_buffer) = self.base.create_capture_texture(
Expand Down Expand Up @@ -167,7 +167,7 @@ impl ChristmasShader {
}
}
}
impl ShaderManager for ChristmasShader {
impl ShaderManager for Shader {
fn init(core: &Core) -> Self {
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
entries: &[wgpu::BindGroupLayoutEntry {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/simplefeedback.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ impl ShaderManager for FeedbackShader {
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("Feedback Shader", 800, 600);
let (app, event_loop) = ShaderApp::new("Feedback", 800, 600);
let shader = FeedbackShader::init(app.core());
app.run(event_loop, shader)
}
8 changes: 4 additions & 4 deletions src/bin/sinh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl UniformProvider for ShaderParams {
}
}

struct ChristmasShader {
struct Shader {
base: BaseShader,
params_uniform: UniformBinding<ShaderParams>,
hot_reload: ShaderHotReload,
Expand All @@ -33,10 +33,10 @@ struct ChristmasShader {
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("sinh", 800, 600);
let shader = ChristmasShader::init(app.core());
let shader = Shader::init(app.core());
app.run(event_loop, shader)
}
impl ChristmasShader {
impl Shader {
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
let settings = self.base.export_manager.settings();
let (capture_texture, output_buffer) = self.base.create_capture_texture(
Expand Down Expand Up @@ -158,7 +158,7 @@ impl ChristmasShader {
}
}
}
impl ShaderManager for ChristmasShader {
impl ShaderManager for Shader {
fn init(core: &Core) -> Self {
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
entries: &[wgpu::BindGroupLayoutEntry {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/spiral.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl UniformProvider for ShaderParams {
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("Spiral Shader", 800, 600);
let (app, event_loop) = ShaderApp::new("Spiral", 800, 600);
let shader = SpiralShader::init(app.core());
app.run(event_loop, shader)
}
Expand Down
10 changes: 5 additions & 5 deletions src/bin/voronoi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl UniformProvider for ShaderParams {
}
}

struct ChristmasShader {
struct Shader {
base: BaseShader,
params_uniform: UniformBinding<ShaderParams>,
hot_reload: ShaderHotReload,
Expand All @@ -49,11 +49,11 @@ struct ChristmasShader {
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("Vertices", 800, 600);
let shader = ChristmasShader::init(app.core());
let (app, event_loop) = ShaderApp::new("voronoi", 800, 600);
let shader = Shader::init(app.core());
app.run(event_loop, shader)
}
impl ChristmasShader {
impl Shader {
fn capture_frame(&mut self, core: &Core, time: f32) -> Result<Vec<u8>, wgpu::SurfaceError> {
let settings = self.base.export_manager.settings();
let (capture_texture, output_buffer) = self.base.create_capture_texture(
Expand Down Expand Up @@ -175,7 +175,7 @@ impl ChristmasShader {
}
}
}
impl ShaderManager for ChristmasShader {
impl ShaderManager for Shader {
fn init(core: &Core) -> Self {
let time_bind_group_layout = core.device.create_bind_group_layout(&wgpu::BindGroupLayoutDescriptor {
entries: &[wgpu::BindGroupLayoutEntry {
Expand Down
2 changes: 1 addition & 1 deletion src/bin/xmas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct ChristmasShader {
}
fn main() -> Result<(), Box<dyn std::error::Error>> {
env_logger::init();
let (app, event_loop) = ShaderApp::new("Christmas Tree Shader", 800, 600);
let (app, event_loop) = ShaderApp::new("xmas", 800, 600);
let shader = ChristmasShader::init(app.core());
app.run(event_loop, shader)
}
Expand Down

0 comments on commit c96d758

Please sign in to comment.