IsDepthRTFormat() private method

private IsDepthRTFormat ( RenderTextureFormat format ) : bool
format RenderTextureFormat
return bool
Beispiel #1
0
 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));