ReleaseTexture

Free a previously loaded texture.

Syntax

Susano.ReleaseTexture(texId) -> boolean

Parameters

texId (number): Handle from a load call.

Return(s)

ok (boolean): true if released, false if id not found.

Behavior

Releases the underlying DX11 SRV. texId becomes invalid.

Example(s)

local imageBytes = ""
local id, w, h = Susano.LoadTextureFromBuffer("logo.png")
local ok = Susano.ReleaseTexture(id)

Last updated