diff options
Diffstat (limited to 'bindgen/rust/src/shader.rs')
-rw-r--r-- | bindgen/rust/src/shader.rs | 40 |
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 +// } +// } |