Refactor material shaders generator to use modular features as extensions
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
|
||||
#include "Engine/Core/NonCopyable.h"
|
||||
#include "Engine/Core/Formatting.h"
|
||||
#include "Engine/Core/Types/String.h"
|
||||
#include "Engine/Core/Types/StringView.h"
|
||||
#include "Engine/Serialization/MemoryWriteStream.h"
|
||||
|
||||
/// <summary>
|
||||
@@ -97,6 +99,24 @@ public:
|
||||
WriteLine();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write text to the buffer
|
||||
/// </summary>
|
||||
/// <param name="text">Data</param>
|
||||
void Write(const StringViewBase<CharType>& text)
|
||||
{
|
||||
_buffer.WriteBytes((void*)text.Get(), text.Length() * sizeof(CharType));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write text to the buffer
|
||||
/// </summary>
|
||||
/// <param name="text">Data</param>
|
||||
void Write(const StringBase<CharType>& text)
|
||||
{
|
||||
_buffer.WriteBytes((void*)text.Get(), text.Length() * sizeof(CharType));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write text to the buffer
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user