Skip to content

Commit

Permalink
More mtl api
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 9, 2024
1 parent 1e008be commit d70f248
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions cidre/src/mtl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub use acceleration_structure::AccelerationStruct;
pub use acceleration_structure::Desc as AccelerationStructDesc;
pub use acceleration_structure::GeometryDesc as AccelerationStructGeometryDesc;
pub use acceleration_structure::InstanceOpts as AccelerationStructInstanceOpts;
pub use acceleration_structure::MatrixLayout;
pub use acceleration_structure::MotionBorderMode;
pub use acceleration_structure::MotionBoundingBoxGeometryDesc;
pub use acceleration_structure::Usage as AccelerationStructUsage;
Expand Down
13 changes: 13 additions & 0 deletions cidre/src/mtl/acceleration_structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ pub enum InstanceOpts {
NonOpaque = (1 << 3),
}

#[derive(Copy, Clone, Eq, PartialEq)]
#[doc(alias = "MTLMatrixLayout")]
#[repr(isize)]
pub enum MatrixLayout {
/// Column-major order
#[doc(alias = "MTLMatrixLayoutColumnMajor")]
ColumnMajor = 0,

/// Row-major order
#[doc(alias = "MTLMatrixLayoutRowMajor")]
RowMajor,
}

define_obj_type!(pub Desc(ns::Id));

impl Desc {
Expand Down

0 comments on commit d70f248

Please sign in to comment.