Open justgook opened 5 years ago
I think much of the js/Kernel code in this PR could be moved into pure elm without any performance cost. Having less kernel code might increase the chances of this PR getting accepted.
In particular, an elm implementation of getByteCount
would not be slower than the current kernel version. Then all size/dimension validation could happen on the elm side, and the Kernel code only deals with the actual creation of the webgl texture from a Bytes.
Would be nice to have this merged, if the issues have been fixed :slightly_smiling_face:
Oh I see, so Evan needs to approve anything beyond patches.
@Herteby my understanding is that the same rules apply for this package, as for any other browser integrations and changes to the core elm packages.
adding ability to create textures out of bytes, this is task less api, for future it will allow as create custom image / scene format loaders, create default texture without waiting for task.