Class CopyPostStage
java.lang.Object
foundry.veil.api.client.render.post.stage.FramebufferPostStage
foundry.veil.api.client.render.post.stage.CopyPostStage
- All Implemented Interfaces:
PostPipeline
,MutableUniformAccess
,UniformAccess
,AutoCloseable
,org.lwjgl.system.NativeResource
Copies data from one framebuffer to another.
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.api.client.render.post.PostPipeline
PostPipeline.Context
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCopyPostStage
(net.minecraft.resources.ResourceLocation in, net.minecraft.resources.ResourceLocation out, boolean copyColor, boolean copyDepth, boolean linear) Creates a new blit post stage that applies the specified shader. -
Method Summary
Methods inherited from class foundry.veil.api.client.render.post.stage.FramebufferPostStage
clearOut, getOut, setupFramebuffer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundry.veil.api.client.render.shader.program.MutableUniformAccess
applyRenderSystem, setVector, setVector, setVector, setVector, setVectorI, setVectorI, setVectorI
Methods inherited from interface org.lwjgl.system.NativeResource
close
Methods inherited from interface foundry.veil.api.client.render.post.PostPipeline
free, getFloat, getFloats, getInt, getInts, getMatrix, getMatrix, getMatrix, getMatrix, getMatrix, getStorageBlock, getUniform, getUniformBlock, getVector, getVector, getVector, getVector, getVector, getVector, hasStorageBlock, hasUniform, hasUniformBlock, setFloat, setFloats, setInt, setInts, setMatrix, setMatrix, setMatrix, setMatrix, setMatrix, setStorageBlock, setUniformBlock, setVector, setVector, setVector, setVectorI, setVectorI, setVectorI, setVectors, setVectors, setVectors, setVectors, setVectors, setVectors
-
Field Details
-
CODEC
-
-
Constructor Details
-
CopyPostStage
public CopyPostStage(net.minecraft.resources.ResourceLocation in, net.minecraft.resources.ResourceLocation out, boolean copyColor, boolean copyDepth, boolean linear) Creates a new blit post stage that applies the specified shader.- Parameters:
in
- The framebuffer to copy fromout
- The framebuffer to write intocopyColor
- Whether to copy the color bufferscopyDepth
- Whether to copy the depth bufferslinear
- Whether to copy with a linear filter if the input size doesn't match the output size
-
-
Method Details
-
apply
Description copied from interface:PostPipeline
Applies this post effect.PostProcessingManager.runPipeline(PostPipeline)
should be called to run this pipeline.- Parameters:
context
- The context to use when running this pipeline.
-
getType
- Returns:
- The type of post effect this is
-
getIn
public net.minecraft.resources.ResourceLocation getIn()- Overrides:
getIn
in classFramebufferPostStage
- Returns:
- The framebuffer to read from
-
getMask
public int getMask()- Returns:
- The mask to use when copying from one buffer to another
-
getFilter
public int getFilter()- Returns:
- The filter to use when copying from one buffer to another
-
copyColor
public boolean copyColor()- Returns:
- Whether color is copied from the buffer
-
copyDepth
public boolean copyDepth()- Returns:
- Whether depth is copied from the buffer
-
isLinear
public boolean isLinear()- Returns:
- Whether to copy with a linear filter if the input size doesn't match the output size
-