public virtual bool AttachDepthBuffer(DepthBuffer ndepthBuffer) { var retVal = false; if (ndepthBuffer.IsCompatible(this)) { retVal = true; DetachDepthBuffer(); depthBuffer = ndepthBuffer; depthBuffer.NotifyRenderTargetAttached(this); } return retVal; }