Class GuiEffectBackend

java.lang.Object
com.render.api.gui.GuiEffectBackend

public final class GuiEffectBackend extends Object
Executes flattened GUI layer effects with pooled managed render targets. Shader passes are scissored to expanded surface bounds; large blur radii use dense variance-preserving iterations and quarter-resolution backdrop working sets. Foreground base/output/scratch attachments use native-resolution subtree bounds and retain their framebuffer origins, including image-masked groups. Axis-aligned rounded insets and rounded overflow layers use analytic shader coverage, whose antialias ramp stays inside the authored boundary; arbitrary transformed clips upload only their bounded supersampled mask region.

The backend is deliberately fail-closed: any target or pipeline failure leaves the already-painted base GUI untouched.

  • Method Details

    • beginGuiPass

      public static void beginGuiPass()
      Called by the GUI renderer mixin before extracted GUI draws execute.
    • renderLayerBoundary

      public static void renderLayerBoundary()
      Consumes one extraction-order marker between closed Minecraft render passes.
    • renderBackdropBoundary

      public static boolean renderBackdropBoundary()
      Executes retained backdrop filters after Minecraft has painted the game and earlier GUI strata, but before the glass component stratum.
      Returns:
      true when RenderLib consumed Minecraft's blur boundary
    • endGuiPass

      public static void endGuiPass()
      Called by the GUI renderer mixin after extracted GUI draws execute.
    • executionStats

      public static GuiRenderExecutionStats executionStats()
      Returns actual submitted backend work for the last completed GUI pass, including all GUI and HUD hosts. Compilation plans remain available from GuiHostView.renderStats().
      Returns:
      immutable counters, or an empty snapshot before the first GUI pass