From 034028807665e84f7c62de5901a3d82c8b5e880e Mon Sep 17 00:00:00 2001 From: Omniscient Date: Sat, 5 Oct 2024 13:48:35 +1000 Subject: cleaning up rust binding --- bindgen/rust/src/shader.rs | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'bindgen/rust/src/shader.rs') 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, -} +// pub struct Shader { +// pipeline: Pipeline, +// binding_layouts: Vec, +// } -#[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 +// } +// } -- cgit v1.2.3-70-g09d2