Class ShaderStage

java.lang.Object
net.minecraft.client.gl.ShaderStage
Direct Known Subclasses:
EffectShaderStage

@Environment(CLIENT) public class ShaderStage extends Object
Represents a programmable shader stage (a vertex or a fragment shader) in the graphics pipeline. Also known as a shader object that can be created with glCreateShader.

Warning: This class is referred to as a program in strings. However, this does NOT represent a program object that can be created with glCreateProgram. ShaderProgram is what represents a program object.

See Also:
Mappings:
Namespace Name
named net/minecraft/client/gl/ShaderStage
intermediary net/minecraft/class_281
official ezn
  • Field Details

    • MAX_INFO_LOG_LENGTH

      private static final int MAX_INFO_LOG_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_INFO_LOG_LENGTH Lnet/minecraft/client/gl/ShaderStage;MAX_INFO_LOG_LENGTH:I
      intermediary field_32037 Lnet/minecraft/class_281;field_32037:I
      official a Lezn;a:I
    • type

      private final ShaderStage.Type type
      Mappings:
      Namespace Name Mixin selector
      named type Lnet/minecraft/client/gl/ShaderStage;type:Lnet/minecraft/client/gl/ShaderStage$Type;
      intermediary field_1524 Lnet/minecraft/class_281;field_1524:Lnet/minecraft/class_281$class_282;
      official b Lezn;b:Lezn$a;
    • name

      private final String name
      Mappings:
      Namespace Name Mixin selector
      named name Lnet/minecraft/client/gl/ShaderStage;name:Ljava/lang/String;
      intermediary field_1525 Lnet/minecraft/class_281;field_1525:Ljava/lang/String;
      official c Lezn;c:Ljava/lang/String;
    • glRef

      private int glRef
      Mappings:
      Namespace Name Mixin selector
      named glRef Lnet/minecraft/client/gl/ShaderStage;glRef:I
      intermediary field_1523 Lnet/minecraft/class_281;field_1523:I
      official d Lezn;d:I
  • Constructor Details

    • ShaderStage

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

    • attachTo

      public void attachTo(ShaderProgramSetupView program)
      Mappings:
      Namespace Name Mixin selector
      named attachTo Lnet/minecraft/client/gl/ShaderStage;attachTo(Lnet/minecraft/client/gl/ShaderProgramSetupView;)V
      intermediary method_1281 Lnet/minecraft/class_281;method_1281(Lnet/minecraft/class_3679;)V
      official a Lezn;a(Lezp;)V
    • release

      public void release()
      Mappings:
      Namespace Name Mixin selector
      named release Lnet/minecraft/client/gl/ShaderStage;release()V
      intermediary method_1282 Lnet/minecraft/class_281;method_1282()V
      official a Lezn;a()V
    • getName

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/client/gl/ShaderStage;getName()Ljava/lang/String;
      intermediary method_1280 Lnet/minecraft/class_281;method_1280()Ljava/lang/String;
      official b Lezn;b()Ljava/lang/String;
    • createFromResource

      public static ShaderStage createFromResource(ShaderStage.Type type, String name, InputStream stream, String domain, GlImportProcessor loader) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named createFromResource Lnet/minecraft/client/gl/ShaderStage;createFromResource(Lnet/minecraft/client/gl/ShaderStage$Type;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lnet/minecraft/client/gl/GlImportProcessor;)Lnet/minecraft/client/gl/ShaderStage;
      intermediary method_1283 Lnet/minecraft/class_281;method_1283(Lnet/minecraft/class_281$class_282;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lnet/minecraft/class_5913;)Lnet/minecraft/class_281;
      official a Lezn;a(Lezn$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lezg;)Lezn;
    • load

      protected static int load(ShaderStage.Type type, String name, InputStream stream, String domain, GlImportProcessor loader) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named load Lnet/minecraft/client/gl/ShaderStage;load(Lnet/minecraft/client/gl/ShaderStage$Type;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lnet/minecraft/client/gl/GlImportProcessor;)I
      intermediary method_34416 Lnet/minecraft/class_281;method_34416(Lnet/minecraft/class_281$class_282;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lnet/minecraft/class_5913;)I
      official b Lezn;b(Lezn$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lezg;)I
    • getGlRef

      protected int getGlRef()
      Mappings:
      Namespace Name Mixin selector
      named getGlRef Lnet/minecraft/client/gl/ShaderStage;getGlRef()I
      intermediary method_34417 Lnet/minecraft/class_281;method_34417()I
      official c Lezn;c()I