Package com.hbm_m.client.render.shader
Class IrisShaderApply
java.lang.Object
com.hbm_m.client.render.shader.IrisShaderApply
Safe wrapper around
ShaderInstance.apply() for Iris
ExtendedShader instances whose sampler/image bindings can throw
IllegalStateException: Tried to use a destroyed GlResource when the
pipeline was rebuilt or the render phase moved on.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleantryApply(net.minecraft.client.renderer.ShaderInstance shader)
-
Method Details
-
tryApply
public static boolean tryApply(net.minecraft.client.renderer.ShaderInstance shader) - Returns:
trueifapply()completed without throwing.
-