Class IrisInteropAdapter
java.lang.Object
com.render.api.world.compat.IrisInteropAdapter
Optional Iris API boundary. This class has no linkage to Iris types and is only loaded after Fabric Loader reports
that Iris is present.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordImmutable result of the optional Iris API query. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancopyPipeline(com.mojang.blaze3d.pipeline.RenderPipeline source, com.mojang.blaze3d.pipeline.RenderPipeline target) Registers a custom pipeline as program-compatible with an Iris-known vanilla pipeline.static booleancopyUnlitEntityPipeline(com.mojang.blaze3d.pipeline.RenderPipeline target) Maps an unlit entity-format pipeline to Iris's non-diffuse, full-bright entity program.static IrisInteropAdapter.Statusprobe()Queries the optional public Iris API without making it a runtime dependency.
-
Method Details
-
probe
Queries the optional public Iris API without making it a runtime dependency. -
copyPipeline
public static boolean copyPipeline(com.mojang.blaze3d.pipeline.RenderPipeline source, com.mojang.blaze3d.pipeline.RenderPipeline target) Registers a custom pipeline as program-compatible with an Iris-known vanilla pipeline. Iris exposes this bridge publicly, but it remains reflectively isolated because Iris is an optional dependency. -
copyUnlitEntityPipeline
public static boolean copyUnlitEntityPipeline(com.mojang.blaze3d.pipeline.RenderPipeline target) Maps an unlit entity-format pipeline to Iris's non-diffuse, full-bright entity program. The ordinary entity mapping supplies its shadow route, then a private alias supplies only the unlit main route. This preserves the target's authored blend state: the vanilla eye/emissive routes select the additiveSpiderEyesprogram. The target must declare and bind the neutral entity overlay sampler, because Iris's entity format includes UV1. This optional program mapping does not validate any framebuffer-dependent capability.- Parameters:
target- the pipeline with entity vertices, an unlit shader and the neutral overlay binding- Returns:
- whether the exact optional public assign/copy bridge completed
-