floooh/sokol-samples

ADVANCED TOPIC: Injecting native 3D-API textures

Oldes opened this issue · 3 comments

Oldes commented

I know that you are in the middle of work on cgltf, but if you had some spare time, could you bring some light (sample) into the usage of native textures? Now there is only this and that mention so far.

Or is there some other documentation somewhere?

The backend-specific sokol-samples each have one example for injecting buffers and textures:

There isn't a similar sample under the sapp-directory because it would be quite the #ifdef/#endif mess :)

Oldes commented

Thanks, I will check it. For sapp, do you plan to use Basis for native textures?

I will probably create a utility header which would provide some glue code between Basis Universal and sokol_gfx.h, similar to this adhoc helper code:

https://github.com/floooh/sokol-samples/blob/master/libs/basisu/basisu_sokol.cpp