diff --git a/Graphics/GraphicsTools/interface/ShaderSourceFactoryUtils.h b/Graphics/GraphicsTools/interface/ShaderSourceFactoryUtils.h index add42d923..26fd3c8fd 100644 --- a/Graphics/GraphicsTools/interface/ShaderSourceFactoryUtils.h +++ b/Graphics/GraphicsTools/interface/ShaderSourceFactoryUtils.h @@ -130,6 +130,14 @@ struct MemoryShaderSourceFileInfo pData{_pData}, Length{_Length} {} + + MemoryShaderSourceFileInfo(const Char* _Name, + const String& Data) noexcept : + Name{_Name}, + pData{Data.c_str()}, + Length{static_cast(Data.length())} + {} + #endif }; typedef struct MemoryShaderSourceFileInfo MemoryShaderSourceFileInfo;