Skip to content

Commit

Permalink
Update accessor.h
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Sep 1, 2023
1 parent e67007a commit 871af8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/accessor.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,16 @@
AkAccessor*
ak_accessor_dup(AkAccessor *oldacc);

AK_INLINE
bool
ak_areSimilarLayouts(AkAccessor *acc1, AkAccessor *acc2) {
return (acc1 == acc2) || (
acc1->componentType == acc2->componentType
&& acc1->count == acc2->count
&& acc1->componentCount == acc2->componentCount
&& acc1->componentSize == acc2->componentSize
);
}


#endif /* ak_accessor_h */

0 comments on commit 871af8b

Please sign in to comment.