Maybe a typo in basis.ts

src should be Uint8Array

dxtToRgb565 return a Uint16Array, here should return a new Uint16Array variable

BTW, this dtx to rgb565 function has an optimized version, why not use it?

Pinging @trevordev

Hey @hjlld

Sure, I can change that.

How did you find this issue as it seems like this typing change shouldn’t have any effect on the code. When I swap in the optimized version the result is corrupted, I think this has to do with the FIXME comment in their src.

1 Like

My project is deeply combinated with BJS, so when i add basis support vs code remind me a type check error.:grinning: