euv_core/runtime/streaming/queue/enum.rs
1/// Four-lane priority tier scheduling asynchronous asset I/O, decode, and GPU upload work.
2#[repr(u8)]
3#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
4pub enum StreamPriority {
5 /// Frame-critical visible geometry, mip-tails, and active camera assets.
6 Critical = 0,
7 /// Visible in-frustum high-resolution textures and hero meshes.
8 #[default]
9 VisibleHigh = 1,
10 /// Velocity-predicted lookahead prefetch assets.
11 PrefetchMedium = 2,
12 /// Low-priority background warmup and speculative preload assets.
13 BackgroundLow = 3,
14}
15
16/// Semantic asset job category dispatched through the 4-lane priority streaming queue.
17#[repr(u8)]
18#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
19pub enum StreamJobKind {
20 /// Generic raw binary payload.
21 #[default]
22 RawBytes = 0,
23 /// Baked `.euv3d` 3D mesh/scene package.
24 MeshEuv3d = 1,
25 /// High-resolution or intermediate texture mip payload.
26 TextureMip = 2,
27 /// Instant low-resolution `16x16`/`32x32` texture mip-tail payload.
28 TextureMipTail = 3,
29 /// Audio bank or compressed sound asset.
30 Audio = 4,
31 /// Font binary asset.
32 Font = 5,
33 /// Precompiled shader binary or PSO cache blob.
34 ShaderCache = 6,
35}