Skip to main content

euv_core/game/engine3d/rhi/
enum.rs

1/// Target GPU shader language backend selected for hardware 3D rendering.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
3pub enum GpuShaderLanguage3D {
4    /// WebGPU Shading Language (Web & cross-platform WGPU).
5    #[default]
6    Wgsl,
7    /// Apple Metal Shading Language (macOS, iOS, iPadOS).
8    Msl,
9    /// OpenGL ES 3.0 / WebGL 2 shading language (WebGL2, Android, HarmonyOS).
10    GlslEs3,
11    /// DirectX High-Level Shading Language SM 6.0 (Windows D3D12).
12    Hlsl,
13}
14
15/// Canonical pass category inside UE5-style `RenderGraph3D`.
16#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
17pub enum RenderPassKind3D {
18    /// GPU/CPU compute shape-key morphing and skeletal skinning pre-pass.
19    ComputeMorphSkin,
20    /// Virtual Shadow Map 4-cascade Practical-Split directional shadow rasterization.
21    VirtualShadowMap,
22    /// Same-frame conservative reverse-Z Hi-Z occluder pre-pass.
23    HiZPrePass,
24    /// Nanite cluster DAG culling, projection, and tile binning.
25    NaniteVisibility,
26    /// Deferred G-Buffer rasterization and Principled BSDF PBR shading.
27    #[default]
28    DeferredGBufferPbr,
29    /// Clustered 3D froxel point, spot, and area light evaluation.
30    ClusteredLighting,
31    /// Lumen world-space radiance cache and coherent ray-traced probes.
32    LumenGlobalIllumination,
33    /// Refractive transmission and back-to-front alpha-blended surface pass.
34    TransmissionAlphaBlend,
35    /// Niagara 3D depth-tested particle rasterization.
36    NiagaraParticles,
37    /// Temporal Super Resolution (TSR) motion-vector upscaling and RCAS sharpening.
38    TsrUpscale,
39    /// Separable HDR Bloom and morphological/temporal post-processing.
40    PostProcessBloom,
41    /// Zero-readback HUD + 3D final swapchain presentation.
42    HudCompositePresent,
43}