net.minecraft.client.gl

public class ShaderProgram

implements AutoCloseable

com.mojang.blaze3d.opengl.GlProgram
net.minecraft.class_5944
net.minecraft.client.gl.ShaderProgram

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_58041
LOGGER
public static Set<String>
BUILT_IN_UNIFORMS
field_57863
predefinedUniforms
public static ShaderProgram
INVALID_PROGRAM
field_57864
INVALID
private final Map<String, GlUniform>
uniformsByName
field_53841
uniformsByName
private final int
programId
field_29493
glRef
private final String
debugLabel
field_57865
debugLabel

Constructor summary

ModifierConstructor
private (int glRef, String debugLabel)

Method summary

Modifier and TypeMethod
public static ShaderProgram
link(GlShaderModule vertexShader, GlShaderModule fragmentShader, VertexFormat vertexFormat, String debugLabel)
method_62896(class_10141 arg0, class_10141 arg1, VertexFormat arg2, String arg3)
create(CompiledShader vertexShader, CompiledShader fragmentShader, VertexFormat format, String name)
public void
setupUniforms(List<RenderPipeline$UniformDescription> uniforms, List<String> samplers)
method_62900(List<RenderPipeline$UniformDescription> arg0, List<String> arg1)
set(List<RenderPipeline$UniformDescription> uniforms, List<String> samplers)
public void
close()
public GlUniform
getUniform(String name)
method_34582(String arg0)
getUniform(String name)
public int
getProgramId()
method_1270()
getGlRef()
public String
getDebugLabel()
method_68404()
getDebugLabel()
public Map<String, GlUniform>
getUniforms()
method_68406()
getUniforms()