Exemplo n.º 1
0
        protected override void OnDisposing(bool manually)
        {
            base.OnDisposing(manually);

            Disposable.Free(ref lightingTarget);
            Disposable.Free(ref lightingTexture);

            Disposable.Free(ref mainTarget);
            Disposable.Free(ref mainTexture);
            Disposable.Free(ref normalTexture);

            Disposable.Free(ref finalTarget);
            Disposable.Free(ref finalTexture);

            Disposable.FreeContents(targetPingPongA);
            Disposable.FreeContents(targetPingPongB);
        }
Exemplo n.º 2
0
        protected override void OnDisposing(bool manually)
        {
            base.OnDisposing(manually);

            Disposable.Free(ref lightingTarget);
            Disposable.Free(ref lightingTexture);

            Disposable.Free(ref mainTarget);
            Disposable.Free(ref mainTexture);
            Disposable.Free(ref normalTexture);

            Disposable.Free(ref finalTarget);
            Disposable.Free(ref finalTexture);

#if !PLATFORM_ANDROID && !PLATFORM_WASM
            Disposable.FreeContents(targetPingPongA);
            Disposable.FreeContents(targetPingPongB);
#endif
        }