LoadTexture
Load an image file into a DX11 texture.
Syntax
Susano.LoadTexture(path) -> number, number, number
Parameters
path (string): File path (PNG, JPG/JPEG, BMP, GIF*, TGA).
Return(s)
texId (number): Texture handle.
w (number): Width in pixels.
h (number): Height in pixels.
Behavior
Decodes via stb_image to RGBA8, uploads to a Shader Resource View.
GIF*: only the first frame is loaded (no animation).
Keep texId until you call Susano.ReleaseTexture.
Example(s)
local id, w, h = Susano.LoadTexture("logo.png")