summaryrefslogtreecommitdiff
path: root/engine/src/rendering
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-11-03 11:24:24 +0100
committerHampusM <hampus@hampusmat.com>2026-11-03 11:24:24 +0100
commit99f0d7bff890f847959845f40b823fef44d35609 (patch)
treec6f819d649f4d7cb0a63ebe2d5bdee70a307190c /engine/src/rendering
parent51c85583a0d3eda5e8cf41273ecfa9b6d994e59c (diff)
refactor(engine): do not store shader modules in shader context
Diffstat (limited to 'engine/src/rendering')
-rw-r--r--engine/src/rendering/shader.rs10
1 files changed, 0 insertions, 10 deletions
diff --git a/engine/src/rendering/shader.rs b/engine/src/rendering/shader.rs
index 6a52b0a..3fdc2c1 100644
--- a/engine/src/rendering/shader.rs
+++ b/engine/src/rendering/shader.rs
@@ -235,7 +235,6 @@ pub struct Context
{
global_session: SlangGlobalSession,
session: Option<SlangSession>,
- modules: hashbrown::HashMap<AssetId, Module>,
programs: hashbrown::HashMap<AssetId, Program>,
}
@@ -296,12 +295,6 @@ impl Context
}
#[must_use]
- pub fn get_module(&self, asset_id: &AssetId) -> Option<&Module>
- {
- self.modules.get(asset_id)
- }
-
- #[must_use]
pub fn get_program(&self, asset_id: &AssetId) -> Option<&Program>
{
self.programs.get(asset_id)
@@ -894,7 +887,6 @@ pub(super) fn prepare(collector: &mut crate::ecs::extension::Collector<'_>)
.add_sole(Context {
global_session,
session: None,
- modules: hashbrown::HashMap::new(),
programs: hashbrown::HashMap::new(),
})
.ok();
@@ -953,8 +945,6 @@ fn load_modules(
}
};
- context.modules.insert(*asset_id, module.clone());
-
if !module_source.link_entrypoints.is_empty() {
assert!(!context.programs.contains_key(asset_id));