summaryrefslogtreecommitdiff
path: root/bindgen/rust/src/shader.rs
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-10-05 13:48:35 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-10-05 13:48:35 +1000
commit034028807665e84f7c62de5901a3d82c8b5e880e (patch)
treed1d0b3f4c219d1ba3e2eabbcb5eb809f1b6ceadf /bindgen/rust/src/shader.rs
parenta49cc9f8948ce4c8d74d84ddf7f41826cd999dd9 (diff)
cleaning up rust binding
Diffstat (limited to 'bindgen/rust/src/shader.rs')
-rw-r--r--bindgen/rust/src/shader.rs40
1 files changed, 20 insertions, 20 deletions
diff --git a/bindgen/rust/src/shader.rs b/bindgen/rust/src/shader.rs
index ef221a0..94dff46 100644
--- a/bindgen/rust/src/shader.rs
+++ b/bindgen/rust/src/shader.rs
@@ -1,24 +1,24 @@
-#![allow(unused_variables)]
-use std::{ffi::c_void, path::Path};
+// #![allow(unused_variables)]
+// use std::{ffi::c_void, path::Path};
-use crate::ral::{Pipeline, ShaderBinding};
+// use crate::ral::{Pipeline, ShaderBinding};
-pub struct Shader {
- pipeline: Pipeline,
- binding_layouts: Vec<ShaderBinding>,
-}
+// pub struct Shader {
+// pipeline: Pipeline,
+// binding_layouts: Vec<ShaderBinding>,
+// }
-#[no_mangle]
-pub unsafe extern "C" fn rust_function(data: *mut c_void) -> celeritas_sys::ShaderDataLayout {
- todo!()
-}
+// #[no_mangle]
+// pub unsafe extern "C" fn rust_function(data: *mut c_void) -> celeritas_sys::ShaderDataLayout {
+// todo!()
+// }
-impl Shader {
- pub fn new(name: String, vs_path: &Path, fs_path: &Path) -> Self {
- todo!()
- }
- pub fn add_layout(&mut self) -> &mut Self {
- // TODO
- self
- }
-}
+// impl Shader {
+// pub fn new(name: String, vs_path: &Path, fs_path: &Path) -> Self {
+// todo!()
+// }
+// pub fn add_layout(&mut self) -> &mut Self {
+// // TODO
+// self
+// }
+// }