public void DestroyDeviceObjects() { NearShadowMap.Dispose(); MidShadowMap.Dispose(); FarShadowMap.Dispose(); NearShadowMapFramebuffer.Dispose(); MidShadowMapFramebuffer.Dispose(); FarShadowMapFramebuffer.Dispose(); NearShadowMapView.Dispose(); MidShadowMapView.Dispose(); FarShadowMapView.Dispose(); }
public virtual void DestroyDeviceObjects() { ProjectionMatrixBuffer.Dispose(); ViewMatrixBuffer.Dispose(); LightInfoBuffer.Dispose(); LightViewProjectionBuffer0.Dispose(); LightViewProjectionBuffer1.Dispose(); LightViewProjectionBuffer2.Dispose(); NearShadowMapView.Dispose(); NearShadowMapFramebuffer.Dispose(); NearShadowMapTexture.Dispose(); MidShadowMapView.Dispose(); MidShadowMapFramebuffer.Dispose(); MidShadowMapTexture.Dispose(); FarShadowMapView.Dispose(); FarShadowMapFramebuffer.Dispose(); FarShadowMapTexture.Dispose(); DepthLimitsBuffer.Dispose(); CameraInfoBuffer.Dispose(); PointLightsBuffer.Dispose(); }