User avatar
Topic Author
Posts: 148
Joined: 06 Jun 2016, 18:14
Location: Lesser Magellanic Cloud

TextureSource / Texture2D Memory Life-Time

21 Aug 2020, 19:22

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?


User avatar
Site Admin
Posts: 3205
Joined: 20 Jan 2012, 17:18

Re: TextureSource / Texture2D Memory Life-Time

24 Aug 2020, 13:35

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.

Who is online

Users browsing this forum: Logrus and 2 guests