net.minecraft.client.gl

public class ShaderLoader

extends SinglePreparationResourceReloader<ShaderLoader$Definitions> implements AutoCloseable

All mapped superinterfaces:

ResourceReloader

net.minecraft.client.renderer.ShaderManager
net.minecraft.class_10151
net.minecraft.client.gl.ShaderLoader

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_53937
LOGGER
public static final int
MAX_LOG_LENGTH
field_53936
field_53936
public static final String
SHADER_PATH
field_53934
SHADERS_PATH
private static final String
SHADER_INCLUDE_PATH
field_53935
INCLUDE_PATH
private static final ResourceFinder
POST_CHAIN_ID_CONVERTER
field_53939
POST_EFFECT_FINDER
private final TextureManager
textureManager
field_53940
textureManager
private final Consumer<Exception>
recoveryHandler
field_54019
onError
private ShaderLoader$Cache
compilationCache
field_54020
cache
private final ProjectionMatrix3
postChainProjection
field_1_1822
projectionMatrix
private final ProjectionMatrixBuffer
postChainProjectionMatrixBuffer
field_60129
projectionBuffer

Constructor summary

ModifierConstructor
public (TextureManager textureManager, Consumer<Exception> onError)

Method summary

Modifier and TypeMethod
protected ShaderLoader$Definitions
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
private static void
loadShader(Identifier location, Resource resource, ShaderType type, Map<Identifier, Resource> files, com.google.common.collect.ImmutableMap$Builder<ShaderManager$ShaderSourceKey, String> output)
method_62939(class_2960 arg0, class_3298 arg1, ShaderType arg2, Map<class_2960, class_3298> arg3, com.google.common.collect.ImmutableMap$Builder<class_10151$class_10155, String> arg4)
loadShaderSource(Identifier id, Resource resource, ShaderType type, Map<Identifier, Resource> allResources, com.google.common.collect.ImmutableMap$Builder<ShaderLoader$ShaderSourceKey, String> builder)
private static GlImportProcessor
createPreprocessor(Map<Identifier, Resource> files, Identifier location)
method_62950(Map<class_2960, class_3298> arg0, class_2960 arg1)
createImportProcessor(Map<Identifier, Resource> allResources, Identifier id)
private static void
loadPostChain(Identifier location, Resource resource, com.google.common.collect.ImmutableMap$Builder<Identifier, PostChainConfig> output)
method_62953(class_2960 arg0, class_3298 arg1, com.google.common.collect.ImmutableMap$Builder<class_2960, class_9962> arg2)
loadPostEffect(Identifier id, Resource resource, com.google.common.collect.ImmutableMap$Builder<Identifier, PostEffectPipeline> builder)
private static boolean
isShader(Identifier location)
method_62952(class_2960 arg0)
isShaderSource(Identifier id)
protected void
apply(ShaderManager$Configs preparations, ResourceManager manager, ProfilerFiller profiler)
method_62945(class_10151$class_10153 arg0, class_3300 arg1, class_3695 arg2)
apply(ShaderLoader$Definitions arg0, ResourceManager arg1, Profiler arg2)
public String
getName()
method_22322()
getName()
private void
tryTriggerRecovery(Exception exception)
method_65232(Exception arg0)
handleError(Exception exception)
public PostEffectProcessor
getPostChain(Identifier id, Set<Identifier> allowedTargets)
method_62941(class_2960 arg0, Set<class_2960> arg1)
loadPostEffect(Identifier id, Set<Identifier> availableExternalTargets)
public void
close()
public String
getShader(Identifier id, ShaderType type)
method_68496(class_2960 arg0, ShaderType arg1)
getSource(Identifier id, ShaderType type)
protected void
apply(Object preparations, ResourceManager manager, ProfilerFiller profiler)
method_18788(Object arg0, class_3300 arg1, class_3695 arg2)
apply(Object arg0, ResourceManager arg1, Profiler arg2)
protected Object
prepare(ResourceManager manager, ProfilerFiller profiler)
method_18789(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
private static String
lambda$apply$0(Identifier arg0)
method_68497(class_2960 arg0)
method_68497(Identifier id)