Skip to content

Commit

Permalink
Rename mtl::ResourceId to mtl::ResId
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Nov 3, 2024
1 parent a9e30a9 commit 1fe5cce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cidre/src/mtl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ mod types;
pub use types::Coordinate2d;
pub use types::Origin;
pub use types::Region;
pub use types::ResourceId;
pub use types::ResId;
pub use types::SamplePos;
pub use types::Size;

Expand Down
3 changes: 2 additions & 1 deletion cidre/src/mtl/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ pub struct Origin {
}

/// Handle of the GPU resource suitable for storing in an Argument Buffer
#[doc(alias = "MTLResourceID")]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
#[repr(C)]
pub struct ResourceId {
pub struct ResId {
_impl: usize,
}

Expand Down

0 comments on commit 1fe5cce

Please sign in to comment.