taichi-dev / taichi

Productive, portable, and performant GPU programming in Python.
https://taichi-lang.org
Apache License 2.0
25.47k stars 2.28k forks source link

[lang] Texture support #5109

Open bobcao3 opened 2 years ago

bobcao3 commented 2 years ago

We wish to support hardware texture & image load-store. In the JIT mode (Python), we will provide a new class called Texture

You can create a texture, transfer data from a PIL image, numpy array, or NDArray (or other potential in-memory image formats), and the textures can be passed into Taichi kernels for use.

Initially we will support:

Future plans:

k-ye commented 2 years ago

Update: 06/30

Oops, OpenGL is also supported.


Note that we are only supporting texture on Vulkan backend as a start.

lyd405121 commented 1 year ago

Will compressed format texture supported in the future?