Package net.minecraft.client.renderer
Class PostChain
java.lang.Object
net.minecraft.client.renderer.PostChain
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<ResourceLocation> private final Map<ResourceLocation, PostChainConfig.InternalTarget> static final ResourceLocationprivate final Map<ResourceLocation, RenderTarget> private final CachedOrthoProjectionMatrixBuffer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePostChain(List<PostPass> passes, Map<ResourceLocation, PostChainConfig.InternalTarget> internalTargets, Set<ResourceLocation> externalTargets, CachedOrthoProjectionMatrixBuffer projectionMatrixBuffer) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToFrame(FrameGraphBuilder frameGraphBuilder, int width, int height, PostChain.TargetBundle targetBundle) voidclose()private static PostPasscreatePass(TextureManager textureManager, PostChainConfig.Pass pass, ResourceLocation location) private RenderTargetgetOrCreatePersistentTarget(ResourceLocation name, RenderTargetDescriptor descriptor) static PostChainload(PostChainConfig config, TextureManager textureManager, Set<ResourceLocation> externalTargets, ResourceLocation name, CachedOrthoProjectionMatrixBuffer projectionMatrixBuffer) voidprocess(RenderTarget target, GraphicsResourceAllocator graphicsResourceAllocator) Deprecated.
-
Field Details
-
MAIN_TARGET_ID
-
passes
-
internalTargets
-
externalTargets
-
persistentTargets
-
projectionMatrixBuffer
-
-
Constructor Details
-
PostChain
private PostChain(List<PostPass> passes, Map<ResourceLocation, PostChainConfig.InternalTarget> internalTargets, Set<ResourceLocation> externalTargets, CachedOrthoProjectionMatrixBuffer projectionMatrixBuffer)
-
-
Method Details
-
load
public static PostChain load(PostChainConfig config, TextureManager textureManager, Set<ResourceLocation> externalTargets, ResourceLocation name, CachedOrthoProjectionMatrixBuffer projectionMatrixBuffer) throws ShaderManager.CompilationException -
createPass
private static PostPass createPass(TextureManager textureManager, PostChainConfig.Pass pass, ResourceLocation location) throws ShaderManager.CompilationException -
addToFrame
public void addToFrame(FrameGraphBuilder frameGraphBuilder, int width, int height, PostChain.TargetBundle targetBundle) -
process
@Deprecated public void process(RenderTarget target, GraphicsResourceAllocator graphicsResourceAllocator) Deprecated. -
getOrCreatePersistentTarget
private RenderTarget getOrCreatePersistentTarget(ResourceLocation name, RenderTargetDescriptor descriptor) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-