Package net.minecraft.client.gl
Class ShaderStage
java.lang.Object
net.minecraft.client.gl.ShaderStage
- Direct Known Subclasses:
EffectShaderStage
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 fac
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Whether a vertex shader or a fragment shader. -
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final int
private final String
private final ShaderStage.Type
-
Constructor Summary
ModifierConstructorDescriptionprotected
ShaderStage
(ShaderStage.Type type, int glRef, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
attachTo
(ShaderProgramSetupView program) static ShaderStage
createFromResource
(ShaderStage.Type type, String name, InputStream stream, String domain, GlImportProcessor loader) protected int
getGlRef()
getName()
protected static int
load
(ShaderStage.Type type, String name, InputStream stream, String domain, GlImportProcessor loader) void
release()
-
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
Lfac;a:I
-
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
Lfac;b:Lfac$a;
-
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
Lfac;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
Lfac;d:I
-
-
Constructor Details
-
ShaderStage
- 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>
Lfac;<init>(Lfac$a;ILjava/lang/String;)V
-
-
Method Details
-
attachTo
- 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
Lfac;a(Lfae;)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
Lfac;a()V
-
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
Lfac;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
Lfac;a(Lfac$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lezv;)Lfac;
-
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
Lfac;b(Lfac$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lezv;)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
Lfac;c()I
-