Skip to content

Commit

Permalink
TextureComponentMapping: added Identity() convenience function
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Dec 7, 2023
1 parent 19e6432 commit 0f87367
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Graphics/GraphicsEngine/interface/TextureView.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,16 @@ struct TextureComponentMapping
{
return !(*this == RHS);
}

static constexpr TextureComponentMapping Identity()
{
return {
TEXTURE_COMPONENT_SWIZZLE_IDENTITY,
TEXTURE_COMPONENT_SWIZZLE_IDENTITY,
TEXTURE_COMPONENT_SWIZZLE_IDENTITY,
TEXTURE_COMPONENT_SWIZZLE_IDENTITY
};
}
#endif
};
typedef struct TextureComponentMapping TextureComponentMapping;
Expand Down

0 comments on commit 0f87367

Please sign in to comment.