Skip to content

Commit

Permalink
chore: rename file and struct
Browse files Browse the repository at this point in the history
  • Loading branch information
rYuuk committed Sep 21, 2024
1 parent 2efe584 commit 67b8e0c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use bevy_easy_compute::prelude::{
AppComputeWorker, AppComputeWorkerBuilder, AppComputeWorkerPlugin, ComputeWorker,
};
use bytemuck::{Pod, Zeroable};
use crate::compute_shaders::{AsteroidHeightComputeShader, NormalComputeShader, NormalizeNormalComputeShader};
use crate::compute_shaders::{AsteroidShapeComputeShader, NormalComputeShader, NormalizeNormalComputeShader};
use crate::compute_events::{CraterSettingsChanged, MeshDataAfterCompute, PerturbStrengthChanged, RidgeNoiseSettingsChanged, SimpleNoiseSettingsChanged};
use crate::RngSeed;
use crate::settings::asteroid_settings::AsteroidSettings;
Expand Down Expand Up @@ -76,7 +76,7 @@ impl ComputeWorker for AsteroidComputeWorker {
"normal_accumulators",
&vec![NormalAccumulator::default(); vertex_count],
)
.add_pass::<AsteroidHeightComputeShader>(
.add_pass::<AsteroidShapeComputeShader>(
[num_workgroups as u32, 1, 1],
&[
"vertices",
Expand Down
6 changes: 3 additions & 3 deletions src/compute_shaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ use bevy::render::render_resource::ShaderRef;
use bevy_easy_compute::prelude::ComputeShader;

#[derive(TypePath)]
pub struct AsteroidHeightComputeShader;
pub struct AsteroidShapeComputeShader;

impl ComputeShader for AsteroidHeightComputeShader {
impl ComputeShader for AsteroidShapeComputeShader {
fn shader() -> ShaderRef {
"shaders/compute_asteroid_height.wgsl".into()
"shaders/compute_asteroid_shape.wgsl".into()
}
}

Expand Down

0 comments on commit 67b8e0c

Please sign in to comment.