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 shader) void
close()
static Program
compileShader
(Program.Type type, String name, InputStream shaderData, String sourceName, GlslPreprocessor preprocessor) protected static int
compileShaderInternal
(Program.Type type, String name, InputStream shaderData, String sourceName, GlslPreprocessor preprocessor) 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 type, String name, InputStream shaderData, String sourceName, GlslPreprocessor preprocessor) throws IOException - Throws:
IOException
-
compileShaderInternal
protected static int compileShaderInternal(Program.Type type, String name, InputStream shaderData, String sourceName, GlslPreprocessor preprocessor) throws IOException - Throws:
IOException
-
getId
protected int getId()
-