From 87a8749049d74cc8aa3f0cacf0b896640dc53763 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:19:31 +1000 Subject: update primitive topology enum in rust bindings --- bindgen/rust/src/ral.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindgen/rust/src/ral.rs b/bindgen/rust/src/ral.rs index 5f7c7d1..f55158f 100644 --- a/bindgen/rust/src/ral.rs +++ b/bindgen/rust/src/ral.rs @@ -305,9 +305,9 @@ pub enum PrimitiveTopology { impl From for PrimitiveTopology { fn from(value: celeritas_sys::PrimitiveTopology) -> Self { match value { - celeritas_sys::PrimitiveTopology_PRIMITIVE_TOPOLOGY_POINT => PrimitiveTopology::Point, - celeritas_sys::PrimitiveTopology_PRIMITIVE_TOPOLOGY_LINE => PrimitiveTopology::Line, - celeritas_sys::PrimitiveTopology_PRIMITIVE_TOPOLOGY_TRIANGLE => { + celeritas_sys::PrimitiveTopology_CEL_POINT => PrimitiveTopology::Point, + celeritas_sys::PrimitiveTopology_CEL_LINE => PrimitiveTopology::Line, + celeritas_sys::PrimitiveTopology_CEL_TRI => { PrimitiveTopology::Triangle } _ => unreachable!("enum conversion should be infallible"), -- cgit v1.2.3-70-g09d2