fitDataset() expects a Dataset that produces elements of a certain shape, with matching batch sizes etc., and throws errors (from standardizeDataIteratorOutput()) when the conditions are not met. These errors should be tested.
After using Engine.createTextureFromKtx/jpeg/Png, I need to query the texture width and height so I can generate proper UV coordinates for font display.
Expose the Texture.getWidth(), getHeight(), etc. methods to get texture information. I currently only need width and height, but I can see usage cases for many of the other "getters" available in the C++ in
Currently IndexDatatype.createTypedArray only outputs Uint16Array and Uint32Array. This caused a bug in #10344 because it returned a Uint16Array for uint8 indices, which was too big for the getBufferData function. The fix itself is easy but it causes a lot of unit tests to break, which will take more time to fix.
Once this function is changed to return Uint8Array, the manual check i
In jlfwong/speedscope#188, I introduced TextDecoder as a way of avoiding performance issues with building up a huge string slowly. There are ways to make the fallback path faster and use less memory as well: