Package com.mojang.blaze3d.shaders
Class Program
java.lang.Object
com.mojang.blaze3d.shaders.Program
- Direct Known Subclasses:
EffectProgram
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private static final org.slf4j.Logger
private static final int
private final String
private final Program.Type
-
Constructor Summary
ModifierConstructorDescriptionprotected
Program
(Program.Type p_85540_, int p_85541_, String p_85542_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
attachToShader
(Shader p_166611_) void
close()
static Program
compileShader
(Program.Type p_166605_, String p_166606_, InputStream p_166607_, String p_166608_, GlslPreprocessor p_166609_) protected static int
compileShaderInternal
(Program.Type p_166613_, String p_166614_, InputStream p_166615_, String p_166616_, GlslPreprocessor p_166617_) private static Program
createProgram
(Program.Type p_166601_, String p_166602_, int p_166603_) protected int
getId()
getName()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAX_LOG_LENGTH
private static final int MAX_LOG_LENGTH- See Also:
-
type
-
name
-
id
private int id
-
-
Constructor Details
-
Program
-
-
Method Details
-
attachToShader
-
close
public void close() -
getName
-
compileShader
public static Program compileShader(Program.Type p_166605_, String p_166606_, InputStream p_166607_, String p_166608_, GlslPreprocessor p_166609_) throws IOException - Throws:
IOException
-
compileShaderInternal
protected static int compileShaderInternal(Program.Type p_166613_, String p_166614_, InputStream p_166615_, String p_166616_, GlslPreprocessor p_166617_) throws IOException - Throws:
IOException
-
createProgram
-
getId
protected int getId()
-