Package com.mojang.blaze3d.opengl
Class GlProgram
java.lang.Object
com.mojang.blaze3d.opengl.GlProgram
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
getUniform
(String pName) static GlProgram
link
(GlShaderModule pVertexShader, GlShaderModule pFragmentShader, VertexFormat pVertexFormat, String pDebugLabel) void
setupUniforms
(List<RenderPipeline.UniformDescription> pUniforms, List<String> pSamplers) 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 pVertexShader, GlShaderModule pFragmentShader, VertexFormat pVertexFormat, String pDebugLabel) throws ShaderManager.CompilationException -
setupUniforms
public void setupUniforms(List<RenderPipeline.UniformDescription> pUniforms, List<String> pSamplers) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getUniform
-
getProgramId
@VisibleForTesting public int getProgramId() -
toString
-
getDebugLabel
-
getUniforms
-