You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing GLB chunk data it would be useful to have an overload of ResourceWriter::Write that allows writing to the magic "binary_glTF" buffer without having to create a temporary buffer view. The overload signature could use a const char* or a const std::string& for the buffer id parameter, e.g. ResourceWriter::Write(const char* bufferId, const std::vector<T>& data).
When writing GLB chunk data it would be useful to have an overload of
ResourceWriter::Write
that allows writing to the magic"binary_glTF"
buffer without having to create a temporary buffer view. The overload signature could use aconst char*
or aconst std::string&
for the buffer id parameter, e.g.ResourceWriter::Write(const char* bufferId, const std::vector<T>& data)
.The only way to do this right now is:
With the requested
ResourceWriter::Write(const char* bufferId, const std::vector<T>& data)
overload, the temporary buffer view is not needed:This should be trivial to implement since
ResourceWriter::WriterImpl
currently only uses the given buffer view's buffer id.The text was updated successfully, but these errors were encountered: