private bool RenderTextureHasDepth() { if (TextureUtil.IsDepthRTFormat((RenderTextureFormat)this.m_ColorFormat.enumValueIndex)) { return(true); } return(this.m_DepthFormat.enumValueIndex != 0); }
private bool RenderTextureHasDepth() => (TextureUtil.IsDepthRTFormat((RenderTextureFormat)this.m_ColorFormat.enumValueIndex) || (this.m_DepthFormat.enumValueIndex != 0));