net.minecraft.client.shader

public class ShaderLoader

implements ResourceReloader, AutoCloseable

net.minecraft.client.renderer.ShaderManager
net.minecraft.class_10151
net.minecraft.client.shader.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
public 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
postChains
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
public final CompletableFuture<Void>
reload(PreparableReloadListener$SharedState currentReload, Executor taskExecutor, PreparableReloadListener$PreparationBarrier preparationBarrier, Executor reloadExecutor)
method_25931(class_3302$class_11558 arg0, Executor arg1, class_3302$class_4045 arg2, Executor arg3)
reload(ResourceReloader$Store arg0, Executor arg1, ResourceReloader$Synchronizer arg2, Executor arg3)
private static CompletableFuture<List<CompiledRenderPipeline>>
compilePipelines(GpuDevice device, ShaderSource shaderSource, List<RenderPipeline> pipelines, Executor taskExecutor, Executor reloadExecutor)
method_1_9902(class_1_1313 arg0, class_12289 arg1, List<class_1_1257> arg2, Executor arg3, Executor arg4)
getCompiledPipelines(GpuDevice device, ShaderSourceGetter shaderSourceGetter, List<RenderPipeline> pipelines, Executor prepareExecutor, Executor applyExecutor)
private ShaderLoader$Definitions
loadConfigs(ResourceManager manager)
method_62942(class_3300 arg0)
loadShaderDefinitions(ResourceManager resourceManager)
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, class_1_1229 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 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)
private void
apply(GpuDevice device, ShaderManager$PendingResults compilations)
method_62945(class_1_1313 arg0, class_10151$class_1_1488 arg1)
apply(GpuDevice device, ShaderLoader$Preparation preparation)
public String
getName()
method_22322()
getName()
private void
tryTriggerRecovery(Exception exception)
method_65232(Exception arg0)
handleError(Exception exception)
public boolean
isPostEffectValid(Identifier id, Set<Identifier> allowedTargets)
method_1_9433(class_2960 arg0, Set<class_2960> arg1)
canApplyPostEffect(Identifier postEffect, Set<Identifier> accessibleTargets)
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 Stream<Identifier>
getAvailablePostEffects()
method_1_7723()
streamPostChainIds()
private static String
lambda$apply$1(Identifier arg0)
method_1_9186(class_2960 arg0)
method_1_9186(Identifier id)
private static String
lambda$apply$0(Identifier arg0)
method_68497(class_2960 arg0)
method_68497(Identifier id)
private static CompletableFuture
lambda$compilePipelines$0(GpuDevice arg0, ShaderSource arg1, Executor arg2, Executor arg3, RenderPipeline arg4)
method_1_9903(class_1_1313 arg0, class_12289 arg1, Executor arg2, Executor arg3, class_1_1257 arg4)
method_1_9903(GpuDevice arg0, ShaderSourceGetter arg1, Executor arg2, Executor arg3, RenderPipeline pipeline)
private void
lambda$reload$3(GpuDevice arg0, ShaderManager$PendingResults arg1)
method_1_9907(class_1_1313 arg0, class_10151$class_1_1488 arg1)
method_1_9907(GpuDevice arg0, ShaderLoader$Preparation preparation)
private static CompletionStage
lambda$reload$1(GpuDevice arg0, Executor arg1, Executor arg2, ShaderManager$Configs arg3)
method_1_9905(class_1_1313 arg0, Executor arg1, Executor arg2, class_10151$class_10153 arg3)
method_1_9905(GpuDevice arg0, Executor arg1, Executor arg2, ShaderLoader$Definitions definitions)
private static ShaderLoader$Preparation
lambda$reload$2(ShaderManager$Configs arg0, List arg1, List arg2, List arg3, List arg4)
method_1_9906(class_10151$class_10153 arg0, List arg1, List arg2, List arg3, List arg4)
method_1_9906(ShaderLoader$Definitions arg0, List arg1, List arg2, List compiledRequiredPipelines, List compiledOptionalPipelines)
private ShaderLoader$Definitions
lambda$reload$0(ResourceManager arg0)
method_1_9904(class_3300 arg0)
method_1_9904(ResourceManager arg0)