This commit is contained in:
2020-11-07 17:54:30 +01:00
parent 38ea41b550
commit a8f8bbf36e
5 changed files with 88 additions and 33 deletions

View File

@@ -13,4 +13,15 @@ impl LogConfig {
pub fn from_file(path: &str) -> Self {
toml::from_slice(&fs::read(path).expect("Failed to read log config!")).expect("Failed to parse log config!")
}
}
#[derive(Debug, Serialize, Deserialize, Clone, Copy)]
pub struct RenderConfig {
pub msaa_samples: u32
}
impl RenderConfig {
pub fn from_file(path: &str) -> Self {
toml::from_slice(&fs::read(path).expect("Failed to read render config!")).expect("Failed to parse render config!")
}
}