Class GlProgram
java.lang.Object
com.mojang.renderpearl.backend.opengl.GlProgram
- All Implemented Interfaces:
UncheckedAutoCloseable, AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static final org.slf4j.Loggerprivate final intprivate @Nullable Uniform.Ubo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intgetUniform(int index) static GlProgramlink(List<GlShaderModule> compiledShaders, String debugLabel) voidprivate static StringshaderList(List<GlShaderModule> compiledShaders) toString()int
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
uniforms
-
pushConstant
-
programId
private final int programId -
debugLabel
-
-
Constructor Details
-
GlProgram
-
-
Method Details
-
link
public static GlProgram link(List<GlShaderModule> compiledShaders, String debugLabel) throws ShaderCompileException - Throws:
ShaderCompileException
-
shaderList
-
setupBindGroupLayouts
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceUncheckedAutoCloseable
-
getUniform
-
uniformCount
public int uniformCount() -
getProgramId
public int getProgramId() -
toString
-
getDebugLabel
-
pushConstant
-