Skip to content

Commit 0c837b6

Browse files
Implemented ComponentMapping::identity()
1 parent 4dbaa86 commit 0c837b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lvk/LVK.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,9 @@ struct ComponentMapping {
778778
Swizzle g = Swizzle_Default;
779779
Swizzle b = Swizzle_Default;
780780
Swizzle a = Swizzle_Default;
781+
bool identity() const {
782+
return r == Swizzle_Default && g == Swizzle_Default && b == Swizzle_Default && a == Swizzle_Default;
783+
}
781784
};
782785

783786
struct TextureDesc {

0 commit comments

Comments
 (0)