diff --git a/Graphics/GraphicsEngine/interface/TextureView.h b/Graphics/GraphicsEngine/interface/TextureView.h index d5a591c40..b8d49953e 100644 --- a/Graphics/GraphicsEngine/interface/TextureView.h +++ b/Graphics/GraphicsEngine/interface/TextureView.h @@ -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;