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:
[x] 2D Textures (1~4 channels)
[x] Image data from NDArray
[x] LOD0
[x] Normalized texture formats (internal int, read out float)
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:
textureGrad
)texelFetch
)textureGather
)Future plans:
isamplerND
/usamplerND
in GLSL)sampler2DArray
)