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 intprivate static final intprivate final Stringprivate final Program.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToShader(Shader shader) voidclose()static ProgramcompileShader(Program.Type type, String name, InputStream shaderData, String sourceName, GlslPreprocessor preprocessor) protected static intcompileShaderInternal(Program.Type type, String name, InputStream shaderData, String sourceName, GlslPreprocessor preprocessor) protected intgetId()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()
-