Class IrisShaderApply

java.lang.Object
com.hbm_m.client.render.shader.IrisShaderApply

public final class IrisShaderApply extends Object
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 Details

    • tryApply

      public static boolean tryApply(net.minecraft.client.renderer.ShaderInstance shader)
      Returns:
      true if apply() completed without throwing.