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
official edr
intermediary net/minecraft/class_281
named net/minecraft/client/gl/ShaderStage
  • Field Details

    • MAX_INFO_LOG_LENGTH

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

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

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

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

    • ShaderStage

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

    • attachTo

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

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

      public String getName()
      Mappings:
      Namespace Name Mixin selector
      official b Ledr;b()Ljava/lang/String;
      intermediary method_1280 Lnet/minecraft/class_281;method_1280()Ljava/lang/String;
      named getName Lnet/minecraft/client/gl/ShaderStage;getName()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
      official a Ledr;a(Ledr$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Ledk;)Ledr;
      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;
      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;
    • 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
      official b Ledr;b(Ledr$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Ledk;)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
      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
    • getGlRef

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