Package com.mojang.blaze3d.shaders
Class Program
java.lang.Object
com.mojang.blaze3d.shaders.Program
- Direct Known Subclasses:
EffectProgram
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static final int
private final String
private final Program.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
attachToShader
(Shader pShader) void
close()
static Program
compileShader
(Program.Type pType, String pName, InputStream pShaderData, String pSourceName, GlslPreprocessor pPreprocessor) protected static int
compileShaderInternal
(Program.Type pType, String pName, InputStream pShaderData, String pSourceName, GlslPreprocessor pPreprocessor) protected int
getId()
getName()
-
Field Details
-
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 pType, String pName, InputStream pShaderData, String pSourceName, GlslPreprocessor pPreprocessor) throws IOException - Throws:
IOException
-
compileShaderInternal
protected static int compileShaderInternal(Program.Type pType, String pName, InputStream pShaderData, String pSourceName, GlslPreprocessor pPreprocessor) throws IOException - Throws:
IOException
-
getId
protected int getId()
-