Implement basic request caching for compilation server (#1253)

* Implement basic request caching for compilation server

* Fix formatting
This commit is contained in:
Dennis Kobert
2023-05-28 00:52:10 +02:00
committed by Keavon Chambers
parent 6289d92e02
commit 9da83d3280
3 changed files with 27 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ pub fn compile_spirv(request: &CompileRequest, compile_dir: Option<&str>, manife
Ok(std::fs::read(compile_dir.unwrap().to_owned() + "/shader.spv")?)
}
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Hash, Eq)]
pub struct CompileRequest {
networks: Vec<graph_craft::proto::ProtoNetwork>,
input_types: Vec<Type>,