public static boolean isDepthRenderable(final JCGLTextureFormat f)
  {
    switch (f) {
      case TEXTURE_FORMAT_DEPTH_16_2BPP:
      case TEXTURE_FORMAT_DEPTH_24_4BPP:
      case TEXTURE_FORMAT_DEPTH_24_STENCIL_8_4BPP:
      case TEXTURE_FORMAT_DEPTH_32F_4BPP:
        return true;
      case TEXTURE_FORMAT_R_16_2BPP:
      case TEXTURE_FORMAT_R_16F_2BPP:
      case TEXTURE_FORMAT_R_16I_2BPP:
      case TEXTURE_FORMAT_R_16U_2BPP:
      case TEXTURE_FORMAT_R_32F_4BPP:
      case TEXTURE_FORMAT_R_32I_4BPP:
      case TEXTURE_FORMAT_R_32U_4BPP:
      case TEXTURE_FORMAT_R_8_1BPP:
      case TEXTURE_FORMAT_R_8I_1BPP:
      case TEXTURE_FORMAT_R_8U_1BPP:
      case TEXTURE_FORMAT_RG_16_4BPP:
      case TEXTURE_FORMAT_RG_16F_4BPP:
      case TEXTURE_FORMAT_RG_16I_4BPP:
      case TEXTURE_FORMAT_RG_16U_4BPP:
      case TEXTURE_FORMAT_RG_32F_8BPP:
      case TEXTURE_FORMAT_RG_32I_8BPP:
      case TEXTURE_FORMAT_RG_32U_8BPP:
      case TEXTURE_FORMAT_RG_8_2BPP:
      case TEXTURE_FORMAT_RG_8I_2BPP:
      case TEXTURE_FORMAT_RG_8U_2BPP:
      case TEXTURE_FORMAT_RGB_16_6BPP:
      case TEXTURE_FORMAT_RGB_16F_6BPP:
      case TEXTURE_FORMAT_RGB_16I_6BPP:
      case TEXTURE_FORMAT_RGB_16U_6BPP:
      case TEXTURE_FORMAT_RGB_32F_12BPP:
      case TEXTURE_FORMAT_RGB_32I_12BPP:
      case TEXTURE_FORMAT_RGB_32U_12BPP:
      case TEXTURE_FORMAT_RGB_8_3BPP:
      case TEXTURE_FORMAT_RGB_8I_3BPP:
      case TEXTURE_FORMAT_RGB_8U_3BPP:
      case TEXTURE_FORMAT_RGBA_1010102_4BPP:
      case TEXTURE_FORMAT_RGBA_16_8BPP:
      case TEXTURE_FORMAT_RGBA_16F_8BPP:
      case TEXTURE_FORMAT_RGBA_16I_8BPP:
      case TEXTURE_FORMAT_RGBA_16U_8BPP:
      case TEXTURE_FORMAT_RGBA_32F_16BPP:
      case TEXTURE_FORMAT_RGBA_32I_16BPP:
      case TEXTURE_FORMAT_RGBA_32U_16BPP:
      case TEXTURE_FORMAT_RGBA_8_4BPP:
      case TEXTURE_FORMAT_RGBA_8I_4BPP:
      case TEXTURE_FORMAT_RGBA_8U_4BPP:
        return false;
    }

    throw new UnreachableCodeException();
  }
public static boolean isDepthRenderable ( final JCGLTextureFormat f ) { switch ( f ) { case TEXTURE_FORMAT_DEPTH_16_2BPP : case TEXTURE_FORMAT_DEPTH_24_4BPP : case TEXTURE_FORMAT_DEPTH_24_STENCIL_8_4BPP : case TEXTURE_FORMAT_DEPTH_32F_4BPP : return true ; case TEXTURE_FORMAT_R_16_2BPP : case TEXTURE_FORMAT_R_16F_2BPP : case TEXTURE_FORMAT_R_16I_2BPP : case TEXTURE_FORMAT_R_16U_2BPP : case TEXTURE_FORMAT_R_32F_4BPP : case TEXTURE_FORMAT_R_32I_4BPP : case TEXTURE_FORMAT_R_32U_4BPP : case TEXTURE_FORMAT_R_8_1BPP : case TEXTURE_FORMAT_R_8I_1BPP : case TEXTURE_FORMAT_R_8U_1BPP : case TEXTURE_FORMAT_RG_16_4BPP : case TEXTURE_FORMAT_RG_16F_4BPP : case TEXTURE_FORMAT_RG_16I_4BPP : case TEXTURE_FORMAT_RG_16U_4BPP : case TEXTURE_FORMAT_RG_32F_8BPP : case TEXTURE_FORMAT_RG_32I_8BPP : case TEXTURE_FORMAT_RG_32U_8BPP : case TEXTURE_FORMAT_RG_8_2BPP : case TEXTURE_FORMAT_RG_8I_2BPP : case TEXTURE_FORMAT_RG_8U_2BPP : case TEXTURE_FORMAT_RGB_16_6BPP : case TEXTURE_FORMAT_RGB_16F_6BPP : case TEXTURE_FORMAT_RGB_16I_6BPP : case TEXTURE_FORMAT_RGB_16U_6BPP : case TEXTURE_FORMAT_RGB_32F_12BPP : case TEXTURE_FORMAT_RGB_32I_12BPP : case TEXTURE_FORMAT_RGB_32U_12BPP : case TEXTURE_FORMAT_RGB_8_3BPP : case TEXTURE_FORMAT_RGB_8I_3BPP : case TEXTURE_FORMAT_RGB_8U_3BPP : case TEXTURE_FORMAT_RGBA_1010102_4BPP : case TEXTURE_FORMAT_RGBA_16_8BPP : case TEXTURE_FORMAT_RGBA_16F_8BPP : case TEXTURE_FORMAT_RGBA_16I_8BPP : case TEXTURE_FORMAT_RGBA_16U_8BPP : case TEXTURE_FORMAT_RGBA_32F_16BPP : case TEXTURE_FORMAT_RGBA_32I_16BPP : case TEXTURE_FORMAT_RGBA_32U_16BPP : case TEXTURE_FORMAT_RGBA_8_4BPP : case TEXTURE_FORMAT_RGBA_8I_4BPP : case TEXTURE_FORMAT_RGBA_8U_4BPP : return false ; } throw new UnreachableCodeException ( ) ; }
@param f A texture format

@return {@code true} iff {@code f} is depth-renderable