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

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?

Thanks,
Shaun

Tags:
 
User avatar
jsantos
Site Admin
Posts: 2959
Joined: 20 Jan 2012, 17:18
Contact:

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: No registered users and 5 guests