mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
Add byte_size node to yaml for texture
This commit is contained in:
@@ -122,6 +122,11 @@ void TextureCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedDat
|
||||
std::ofstream file(dpath + ".inc.c", std::ios::binary);
|
||||
|
||||
size_t byteSize = std::max(1, (int) (texture->mFormat.depth / 8));
|
||||
const auto bsize = GetSafeNode<uint32_t>(node, "byte_size", byteSize);
|
||||
|
||||
if (bsize) {
|
||||
byteSize = bsize;
|
||||
}
|
||||
|
||||
SPDLOG_INFO("Byte Size: {}", byteSize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user