diff options
author | HampusM <hampus@hampusmat.com> | 2024-04-14 12:34:52 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-04-14 12:35:28 +0200 |
commit | 101b455e51f9b702da5517cabe2c3b1086fcb2e7 (patch) | |
tree | 470e28acd7a3777dbb4be0208f9cd3177bba52a9 /engine/src/shader.rs | |
parent | ef7b76ff39d501028852835649f618fcbe17a003 (diff) |
feat(engine): use ECS architecture
Diffstat (limited to 'engine/src/shader.rs')
-rw-r--r-- | engine/src/shader.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/src/shader.rs b/engine/src/shader.rs index 428e5a8..a0066f1 100644 --- a/engine/src/shader.rs +++ b/engine/src/shader.rs @@ -3,10 +3,12 @@ use std::fs::read_to_string; use std::hash::{Hash, Hasher}; use std::path::{Path, PathBuf}; +use ecs::Component; + use crate::shader_preprocessor::{Error as ShaderPreprocessorError, ShaderPreprocessor}; /// Shader program -#[derive(Debug, Clone, PartialEq, Eq, Hash, Default)] +#[derive(Debug, Clone, PartialEq, Eq, Hash, Default, Component)] pub struct Program { shaders: Vec<Shader>, |