Package net.minecraft.client.renderer
Class ShaderManager.CompilationCache
java.lang.Object
net.minecraft.client.renderer.ShaderManager.CompilationCache
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
ShaderManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ShaderManager.Configs
(package private) final Map
<ResourceLocation, Optional<PostChain>> (package private) boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getOrLoadPostChain
(ResourceLocation pName, Set<ResourceLocation> pExternalTargets) getShaderSource
(ResourceLocation pId, ShaderType pType) private PostChain
loadPostChain
(ResourceLocation pName, Set<ResourceLocation> pExternalTargets)
-
Field Details
-
configs
-
postChains
-
triggeredRecovery
boolean triggeredRecovery
-
-
Constructor Details
-
CompilationCache
CompilationCache(ShaderManager.Configs pConfigs)
-
-
Method Details
-
getOrLoadPostChain
@Nullable public PostChain getOrLoadPostChain(ResourceLocation pName, Set<ResourceLocation> pExternalTargets) throws ShaderManager.CompilationException -
loadPostChain
private PostChain loadPostChain(ResourceLocation pName, Set<ResourceLocation> pExternalTargets) throws ShaderManager.CompilationException -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
getShaderSource
-