Skip to content

Commit

Permalink
tune api
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 5, 2024
1 parent 5c8463c commit 270999f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cidre/src/mtl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ mod allocation;
pub use allocation::Allocation;

mod acceleration_structure;
pub use acceleration_structure::AccelerationStructure;
pub use acceleration_structure::Desc as AccelerationStructureDesc;
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::MotionBorderMode;
Expand Down
4 changes: 2 additions & 2 deletions cidre/src/mtl/acceleration_structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ impl MotionBoundingBoxGeometryDesc {
//
}

define_obj_type!(pub AccelerationStructure(mtl::Res));
define_obj_type!(pub AccelerationStruct(mtl::Res));

impl AccelerationStructure {
impl AccelerationStruct {
#[objc::msg_send(size)]
pub fn size(&self) -> usize;

Expand Down
12 changes: 6 additions & 6 deletions cidre/src/mtl/heap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,27 +142,27 @@ impl Heap {
pub fn new_acceleration_structure_size(
&self,
size: usize,
) -> Option<arc::R<mtl::AccelerationStructure>>;
) -> Option<arc::R<mtl::AccelerationStruct>>;

#[objc::msg_send(newAccelerationStructureWithSize:offset:)]
pub fn new_acceleration_structure_size_offset(
&self,
size: usize,
offset: usize,
) -> Option<arc::R<mtl::AccelerationStructure>>;
) -> Option<arc::R<mtl::AccelerationStruct>>;

#[objc::msg_send(newAccelerationStructureWithDescriptor:)]
pub fn new_acceleration_structure_with_desc(
&self,
descriptor: &mtl::AccelerationStructureDesc,
) -> Option<arc::R<mtl::AccelerationStructure>>;
descriptor: &mtl::AccelerationStructDesc,
) -> Option<arc::R<mtl::AccelerationStruct>>;

#[objc::msg_send(newAccelerationStructureWithDescriptor:offset:)]
pub fn new_acceleration_structure_with_desc_offset(
&self,
descriptor: &mtl::AccelerationStructureDesc,
descriptor: &mtl::AccelerationStructDesc,
offset: usize,
) -> Option<arc::R<mtl::AccelerationStructure>>;
) -> Option<arc::R<mtl::AccelerationStruct>>;

#[objc::msg_send(type)]
pub fn type_(&self) -> Type;
Expand Down

0 comments on commit 270999f

Please sign in to comment.