Refactor material shaders generator to use modular features as extensions

This commit is contained in:
Wojtek Figat
2021-02-04 10:43:04 +01:00
parent a560b19cbc
commit 2a3b6edf50
29 changed files with 877 additions and 711 deletions

View File

@@ -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>