Skip to content

Commit

Permalink
Implemented ComponentMapping::identity()
Browse files Browse the repository at this point in the history
  • Loading branch information
corporateshark committed Oct 22, 2024
1 parent 4dbaa86 commit 0c837b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lvk/LVK.h
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,9 @@ struct ComponentMapping {
Swizzle g = Swizzle_Default;
Swizzle b = Swizzle_Default;
Swizzle a = Swizzle_Default;
bool identity() const {
return r == Swizzle_Default && g == Swizzle_Default && b == Swizzle_Default && a == Swizzle_Default;
}
};

struct TextureDesc {
Expand Down

0 comments on commit 0c837b6

Please sign in to comment.