summaryrefslogtreecommitdiff
path: root/bindgen/rust/src/ral.rs
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-12 00:15:33 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-12 00:15:33 +1000
commit72b8d26fcfcee36ca67f963b9c6a4b616e2d5d4d (patch)
tree76ab2c18db5a834c6282ab4e2afa2db33f70be27 /bindgen/rust/src/ral.rs
parenta8f98ddcf5ddeb3588492f4ad8f9a289147ad7ec (diff)
scale is a vec3 now instead of float.
Diffstat (limited to 'bindgen/rust/src/ral.rs')
-rw-r--r--bindgen/rust/src/ral.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/bindgen/rust/src/ral.rs b/bindgen/rust/src/ral.rs
index 3ea69e2..5f7c7d1 100644
--- a/bindgen/rust/src/ral.rs
+++ b/bindgen/rust/src/ral.rs
@@ -1,6 +1,6 @@
//! Wrapper around the RAL code in celeritas-core
-use std::ffi::{c_void, CString};
+use std::ffi::c_void;
use celeritas_sys::{
BufferHandle, GPU_CmdEncoder, GPU_CmdEncoder_BeginRender, GPU_CmdEncoder_EndRender,
@@ -319,8 +319,8 @@ mod test {
use super::*;
struct TestData {
- a: [f32; 2],
- b: [f32; 4],
+ _a: [f32; 2],
+ _b: [f32; 4],
}
impl ShaderData for TestData {
fn layout() -> ShaderDataLayout {
@@ -338,7 +338,7 @@ mod test {
.add_attr("position", VertexAttrKind::Floatx2)
.add_attr("color", VertexAttrKind::Floatx4);
- let mut builder = PipelineBuilder::new("Test Pipeline".into())
+ let builder = PipelineBuilder::new("Test Pipeline".into())
.add_shader_layout::<TestData>()
.add_vertex_desc(vertex_desc);