Page 1 of 1

TextureSource / Texture2D Memory Life-Time

Posted: 21 Aug 2020, 19:22
by stonstad
When using TextureSource to populate a Noesis Image from a Unity texture, at what point can I free the original Unity Texture? I.e. is memory copied or referenced in TextureSource? Do I need to do anything to free the TextureSource?

Thanks,
Shaun

Re: TextureSource / Texture2D Memory Life-Time

Posted: 24 Aug 2020, 13:35
by jsantos
There is no copy happening. You should free the texture once you are sure that the Image is not being used by Noesis. Depending on the platform you can get a crash or not. For example, in D3D we increase the reference counter of the texture.