lib.img.generate.LoadImage - tooll3/t3 GitHub Wiki

LoadImage

in lib.img.generate


Loads an image file as a Texture2D.

Some notes:

  • Resources are cached, so accessing the same filename again will be much faster.
  • An ImageBuffer will forward its size so that image FX operators will produce buffers of identical sizes.
  • Mipmaps are created automatically.

Most image types are supported, but only in 8-bit.


Outputs

Name Type
Texture SharpDX.Direct3D11.Texture2D
ShaderResourceView SharpDX.Direct3D11.ShaderResourceView

Please help use to improve this documentation. Feel free to improve the description.

⚠ Everything else is automatically generated and will be overwritten regularly.

⚠️ **GitHub.com Fallback** ⚠️