Ejemplo n.º 1
0
    public void Dispose()
    {
        standardTarget.Dispose();
        oitBlendTarget.Dispose();
        postProcessor.Dispose();

        oneSidedOpaquePassStates.Dispose();
        twoSidedOpaquePassStates.Dispose();
        backToFrontTransparencyBackFacesPassStates.Dispose();
        backToFrontTransparencyFrontFacesPassStates.Dispose();
        backToFrontTransparencyAllFacesPassStates.Dispose();
        unorderedTransparencyPassStates.Dispose();
    }
Ejemplo n.º 2
0
        protected override void OnClosing(CancelEventArgs obj)
        {
            shapeRenderer.Dispose();
            shapeShaderProgram.Dispose();

            postProcessor.Dispose();
            postProcessShader.Dispose();

            meshBuilder.Dispose();

            texture.Dispose();
            renderTarget.Dispose();

            base.OnClosing(obj);
        }