From bd1687896395fb8d59a3903303ef3e57f0e57348 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sun, 4 Aug 2024 10:59:34 +1000 Subject: rust bindings compile again --- bindgen/rust/src/ral.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bindgen/rust/src/ral.rs') diff --git a/bindgen/rust/src/ral.rs b/bindgen/rust/src/ral.rs index 5f1ca00..4943f9e 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, ptr::addr_of_mut}; +use std::ffi::c_void; use celeritas_sys::{ BufferHandle, GPU_CmdEncoder, GPU_CmdEncoder_BeginRender, GPU_CmdEncoder_EndRender, @@ -52,10 +52,7 @@ impl FrameRenderEncoder { todo!() } pub fn bind(&mut self, data: &S) { - let sd = celeritas_sys::ShaderData { - get_layout: todo!(), - data: addr_of_mut!(data) as *mut c_void, - }; + // TODO: fill ShaderDataLayout with correct data unsafe { GPU_EncodeBindShaderData(self.0, 0, todo!()) } } } -- cgit v1.2.3-70-g09d2