summaryrefslogtreecommitdiff
path: root/engine/src/rendering/shader.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-08-19 22:34:34 +0200
committerHampusM <hampus@hampusmat.com>2026-08-19 22:34:34 +0200
commitbcc91b3db8cd50795c21860cd7797581199d5589 (patch)
tree78893f00f0894ebf17e756ab05a9093be10ec0e4 /engine/src/rendering/shader.rs
parentaa4892e301c54fa02b2f81473c5ab3c14d88f9ae (diff)
refactor(engine): move default shader bindings system to main_render_pass mod
Diffstat (limited to 'engine/src/rendering/shader.rs')
-rw-r--r--engine/src/rendering/shader.rs18
1 files changed, 2 insertions, 16 deletions
diff --git a/engine/src/rendering/shader.rs b/engine/src/rendering/shader.rs
index 6f50a79..12fc9c1 100644
--- a/engine/src/rendering/shader.rs
+++ b/engine/src/rendering/shader.rs
@@ -31,25 +31,18 @@ use crate::asset::{
};
use crate::builder;
use crate::ecs::pair::ChildOf;
-use crate::ecs::phase::{Phase, POST_UPDATE as POST_UPDATE_PHASE};
+use crate::ecs::phase::Phase;
use crate::ecs::sole::Single;
-use crate::ecs::{declare_entity, pair, Component, Sole};
+use crate::ecs::{declare_entity, pair, Sole};
use crate::mesh::vertex_buffer::VertexLabel;
pub mod cursor;
-pub mod default;
pub const STD_VERTEX_INPUT_SEMANTIC_NAME_POSITION: &str = "STD_POSITION";
pub const STD_VERTEX_INPUT_SEMANTIC_NAME_NORMAL: &str = "STD_NORMAL";
pub const STD_VERTEX_INPUT_SEMANTIC_NAME_UV: &str = "STD_UV";
pub const STD_VERTEX_INPUT_SEMANTIC_NAME_COLOR: &str = "STD_COLOR";
-#[derive(Debug, Clone, Component)]
-pub struct Shader
-{
- pub asset_handle: AssetHandle<ModuleSource>,
-}
-
/// Shader module.
#[derive(Debug)]
pub struct ModuleSource
@@ -1319,13 +1312,6 @@ pub(super) fn prepare(collector: &mut crate::ecs::extension::Collector<'_>)
collector.add_system(*INIT_PHASE, initialize);
collector.add_system(*IMPORT_SHADERS_PHASE, load_modules);
-
- collector.add_system(*INIT_PHASE, crate::rendering::shader::default::initialize);
-
- collector.add_system(
- *POST_UPDATE_PHASE,
- crate::rendering::shader::default::enqueue_set_shader_bindings,
- );
}
fn initialize(mut assets: Single<Assets>) -> Result<(), crate::Error>