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 official ehx
intermediary net/minecraft/class_281
named net/minecraft/client/gl/ShaderStage
-
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 official a
Lehx;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
- Mappings:
Namespace Name Mixin selector official b
Lehx;b:Lehx$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
- Mappings:
Namespace Name Mixin selector official c
Lehx;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
Lehx;d:I
intermediary field_1523
Lnet/minecraft/class_281;field_1523:I
named glRef
Lnet/minecraft/client/gl/ShaderStage;glRef:I
-
-
Constructor Details
-
ShaderStage
- Mappings:
Namespace Name Mixin selector official <init>
Lehx;<init>(Lehx$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
- Mappings:
Namespace Name Mixin selector official a
Lehx;a(Lehz;)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
Lehx;a()V
intermediary method_1282
Lnet/minecraft/class_281;method_1282()V
named release
Lnet/minecraft/client/gl/ShaderStage;release()V
-
getName
- Mappings:
Namespace Name Mixin selector official b
Lehx;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
Lehx;a(Lehx$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lehq;)Lehx;
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
Lehx;b(Lehx$a;Ljava/lang/String;Ljava/io/InputStream;Ljava/lang/String;Lehq;)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
Lehx;c()I
intermediary method_34417
Lnet/minecraft/class_281;method_34417()I
named getGlRef
Lnet/minecraft/client/gl/ShaderStage;getGlRef()I
-