yzt
2023-05-05 4c558c77a6a9d23f057f094c4dc3e315eabef497
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
 * The {@link ResourceLoader} state.
 *
 * @private
 */
var ResourceLoaderState = {
  /**
   * The resource has not yet been loaded.
   *
   * @type {Number}
   * @constant
   * @private
   */
  UNLOADED: 0,
  /**
   * The resource is loading. In this state, external resources are fetched as needed.
   *
   * @type {Number}
   * @constant
   * @private
   */
  LOADING: 1,
  /**
   * The resource has finished loading, but requires further processing. GPU resources are allocated in this state as needed.
   *
   * @type {Number}
   * @constant
   * @private
   */
  PROCESSING: 2,
  /**
   * The resource has finished loading and processing; the results are ready to be used.
   *
   * @type {Number}
   * @constant
   * @private
   */
  READY: 3,
  /**
   * The resource loading or processing has failed due to an error.
   *
   * @type {Number}
   * @constant
   * @private
   */
  FAILED: 4,
};
export default Object.freeze(ResourceLoaderState);