2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-04-21 10:58:44 +00:00

chore: add base hlsl for IW4

This commit is contained in:
Jan Laupetin
2026-03-24 23:10:36 +01:00
parent 0fc6dc73dd
commit e814f7382c
3 changed files with 167 additions and 2 deletions

View File

@@ -30,11 +30,11 @@ namespace techset
const auto shaderSize = static_cast<size_t>(file.m_length);
auto shaderData = std::make_unique<char[]>(shaderSize);
file.m_stream->read(shaderData.get(), shaderSize);
file.m_stream->read(shaderData.get(), static_cast<std::streamsize>(shaderSize));
file.m_stream.reset();
*ppData = shaderData.get();
*pBytes = shaderSize;
*pBytes = static_cast<UINT>(shaderSize);
m_file_buffers_in_use.push_back(std::move(shaderData));