net.minecraft.client.gl

public class ShaderProgram

implements AutoCloseable

com.mojang.blaze3d.opengl.GlProgram
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
LOGGER
field_58041
LOGGER
public static final Set<String>
BUILT_IN_UNIFORMS
BUILT_IN_UNIFORMS
field_57863
predefinedUniforms
public static final ShaderProgram
INVALID_PROGRAM
INVALID_PROGRAM
field_57864
INVALID
private final Map<String, GlUniform>
uniformsByName
uniformsByName
field_53841
uniformsByName
private final int
programId
programId
field_29493
glRef
private final String
debugLabel
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)
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)
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()
close()
public GlUniform
getUniform(String name)
getUniform(String name)
method_34582(String arg0)
getUniform(String name)
public int
getProgramId()
getProgramId()
method_1270()
getGlRef()
public String
getDebugLabel()
getDebugLabel()
method_68404()
getDebugLabel()
public Map<String, GlUniform>
getUniforms()
getUniforms()
method_68406()
getUniforms()