summaryrefslogtreecommitdiff
path: root/bindgen/rust/celeritas-sys/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen/rust/celeritas-sys/src/lib.rs')
-rw-r--r--bindgen/rust/celeritas-sys/src/lib.rs19
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