Class GlProgram
java.lang.Object
com.mojang.blaze3d.opengl.GlProgram
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()int@Nullable UniformgetUniform(String name) static GlProgramlink(GlShaderModule vertexShader, GlShaderModule fragmentShader, VertexFormat vertexFormat, String debugLabel) voidsetupUniforms(List<RenderPipeline.UniformDescription> uniforms, List<String> samplers) toString()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
BUILT_IN_UNIFORMS
-
INVALID_PROGRAM
-
uniformsByName
-
programId
private final int programId -
debugLabel
-
-
Constructor Details
-
GlProgram
-
-
Method Details
-
link
public static GlProgram link(GlShaderModule vertexShader, GlShaderModule fragmentShader, VertexFormat vertexFormat, String debugLabel) throws ShaderManager.CompilationException -
setupUniforms
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getUniform
-
getProgramId
public int getProgramId() -
toString
-
getDebugLabel
-
getUniforms
-