diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-03 16:59:24 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-03 16:59:24 +1000 |
commit | 3d00c80b6b5b54da5c1ccdad9f05534a48bca39f (patch) | |
tree | bd41bcd3983463cf977cb304db252c40de477b54 /bindgen/rust/celeritas-sys | |
parent | 1b2d2f2b4ae67fb0fd10f52891eae3a6a2b24c16 (diff) |
more work o nrust bindings
Diffstat (limited to 'bindgen/rust/celeritas-sys')
-rw-r--r-- | bindgen/rust/celeritas-sys/src/lib.rs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/bindgen/rust/celeritas-sys/src/lib.rs b/bindgen/rust/celeritas-sys/src/lib.rs index 676e7c2..c5939fd 100644 --- a/bindgen/rust/celeritas-sys/src/lib.rs +++ b/bindgen/rust/celeritas-sys/src/lib.rs @@ -4,4 +4,21 @@ use serde::{Deserialize, Serialize}; -include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
\ No newline at end of file +include!(concat!(env!("OUT_DIR"), "/bindings.rs")); + + +impl Default for ShaderBinding { + fn default() -> Self { + Self { label: todo!(), + kind: ShaderBindingKind_BINDING_COUNT, + vis: ShaderVisibility_VISIBILITY_VERTEX, + data: todo!() + } + } +} + +impl Default for ShaderDataLayout { + fn default() -> Self { + Self { bindings: [ShaderBinding::default(); 8], binding_count: 0 } + } +}
\ No newline at end of file |