summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-13 13:19:31 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-13 13:19:31 +1000
commit87a8749049d74cc8aa3f0cacf0b896640dc53763 (patch)
tree8edd966e29586a9bbab7dd82835586a4bce04b93
parent0c2f902238010903388b7d9a3af00979340eff2c (diff)
update primitive topology enum in rust bindings
-rw-r--r--bindgen/rust/src/ral.rs6
1 files 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<celeritas_sys::PrimitiveTopology> 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"),