Class EffectShaderStage

java.lang.Object
net.minecraft.client.gl.ShaderStage
net.minecraft.client.gl.EffectShaderStage

@Environment(CLIENT) public class EffectShaderStage extends ShaderStage
A shader stage that can be attached to multiple shader programs. This shader stage will only be released once an equal number of shader programs referencing it have been released.
Mappings:
Namespace Name
official epn
intermediary net/minecraft/class_5937
named net/minecraft/client/gl/EffectShaderStage
  • Field Details

    • LOADER

      private static final GlImportProcessor LOADER
      Mappings:
      Namespace Name Mixin selector
      official a Lepn;a:Lepi;
      intermediary field_29329 Lnet/minecraft/class_5937;field_29329:Lnet/minecraft/class_5913;
      named LOADER Lnet/minecraft/client/gl/EffectShaderStage;LOADER:Lnet/minecraft/client/gl/GlImportProcessor;
    • refCount

      private int refCount
      Mappings:
      Namespace Name Mixin selector
      official b Lepn;b:I
      intermediary field_29330 Lnet/minecraft/class_5937;field_29330:I
      named refCount Lnet/minecraft/client/gl/EffectShaderStage;refCount:I
  • Constructor Details

    • EffectShaderStage

      private EffectShaderStage(ShaderStage.Type type, int glRef, String name)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lepn;<init>(Lepp$a;ILjava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_5937;<init>(Lnet/minecraft/class_281$class_282;ILjava/lang/String;)V
      named <init> Lnet/minecraft/client/gl/EffectShaderStage;<init>(Lnet/minecraft/client/gl/ShaderStage$Type;ILjava/lang/String;)V
  • Method Details

    • attachTo

      public void attachTo(EffectShaderProgram program)
      Mappings:
      Namespace Name Mixin selector
      official a Lepn;a(Lepm;)V
      intermediary method_34414 Lnet/minecraft/class_5937;method_34414(Lnet/minecraft/class_5936;)V
      named attachTo Lnet/minecraft/client/gl/EffectShaderStage;attachTo(Lnet/minecraft/client/gl/EffectShaderProgram;)V
    • release

      public void release()
      Overrides:
      release in class ShaderStage
      Mappings:
      Namespace Name Mixin selector
      official a Lepp;a()V
      intermediary method_1282 Lnet/minecraft/class_281;method_1282()V
      named release Lnet/minecraft/client/gl/ShaderStage;release()V
    • createFromResource

      public static EffectShaderStage createFromResource(ShaderStage.Type type, String name, InputStream stream, String domain) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lepn;a(Lepp$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lepn;
      intermediary method_34415 Lnet/minecraft/class_5937;method_34415(Lnet/minecraft/class_281$class_282;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lnet/minecraft/class_5937;
      named createFromResource Lnet/minecraft/client/gl/EffectShaderStage;createFromResource(Lnet/minecraft/client/gl/ShaderStage$Type;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;)Lnet/minecraft/client/gl/EffectShaderStage;