Interface PostPipeline
- All Superinterfaces:
AutoCloseable,MutableUniformAccess,org.lwjgl.system.NativeResource,UniformAccess
- All Known Implementing Classes:
BlitPostStage,CompositePostPipeline,CopyPostStage,DepthFunctionPostStage,FramebufferPostStage,MaskPostStage
A series of post-processing effects that can be run to change the current framebuffer state.
It can be fully run using PostProcessingManager.runPipeline(PostPipeline).
This class implements UniformAccess to allow changing uniforms in all shaders.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceContext for applying post pipelines. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(PostPipeline.Context context) Applies this post effect.default voidfree()Allows a post pipeline to dispose of any resources it takes up.default floatgetFloat(CharSequence name) Retrieves a single float by the specified name.default voidgetFloats(CharSequence name, float[] values) Retrieves an array of floats by the specified name.default intgetInt(CharSequence name) Retrieves a single integer by the specified name.default voidgetInts(CharSequence name, int[] values) Retrieves an array of integers by the specified name.default voidgetMatrix(CharSequence name, org.joml.Matrix2f value) Retrieves a matrix2x2 by the specified namedefault voidgetMatrix(CharSequence name, org.joml.Matrix3f value) Retrieves a matrix3x3 by the specified namedefault voidgetMatrix(CharSequence name, org.joml.Matrix3x2f value) Retrieves a matrix3x2 by the specified namedefault voidgetMatrix(CharSequence name, org.joml.Matrix4f value) Retrieves a matrix4x4 by the specified namedefault voidgetMatrix(CharSequence name, org.joml.Matrix4x3f value) Retrieves a matrix4x3 by the specified namedefault intgetStorageBlock(CharSequence name) Retrieves the location of a storage block.getType()default intgetUniform(CharSequence name) Retrieves the location of a uniform.default intgetUniformBlock(CharSequence name) Retrieves the location of a uniform block.default voidgetVector(CharSequence name, org.joml.Vector2f... values) Retrieves an array of vectors by the specified name.default voidgetVector(CharSequence name, org.joml.Vector2i... values) Retrieves an array of vectors by the specified name.default voidgetVector(CharSequence name, org.joml.Vector3f... values) Retrieves an array of vectors by the specified name.default voidgetVector(CharSequence name, org.joml.Vector3i... values) Retrieves an array of vectors by the specified name.default voidgetVector(CharSequence name, org.joml.Vector4f... values) Retrieves an array of vectors by the specified name.default voidgetVector(CharSequence name, org.joml.Vector4i... values) Retrieves an array of vectors by the specified name.default booleanhasStorageBlock(CharSequence name) Checks if the specified storage block exists in the shader.default booleanhasUniform(CharSequence name) Checks if the specified uniform exists in the shader.default booleanhasUniformBlock(CharSequence name) Checks if the specified uniform block exists in the shader.default voidsetFloat(CharSequence name, float value) Sets a float in the shader.default voidsetFloats(CharSequence name, float... values) Sets an array of floats in the shader.default voidsetInt(CharSequence name, int value) Sets an integer in the shader.default voidsetInts(CharSequence name, int... values) Sets an array of integers in the shader.default voidsetMatrix(CharSequence name, org.joml.Matrix2fc value) Sets a matrix in the shader.default voidsetMatrix(CharSequence name, org.joml.Matrix3fc value) Sets a matrix in the shader.default voidsetMatrix(CharSequence name, org.joml.Matrix3x2fc value) Sets a matrix in the shader.default voidsetMatrix(CharSequence name, org.joml.Matrix4fc value) Sets a matrix in the shader.default voidsetMatrix(CharSequence name, org.joml.Matrix4x3fc value) Sets a matrix in the shader.default voidsetStorageBlock(CharSequence name, int binding) Sets the binding to use for the specified storage block.default voidsetUniformBlock(CharSequence name, int binding) Sets the binding to use for the specified uniform block.default voidsetVector(CharSequence name, float x, float y) Sets a vector in the shader.default voidsetVector(CharSequence name, float x, float y, float z) Sets a vector in the shader.default voidsetVector(CharSequence name, float x, float y, float z, float w) Sets a vector in the shader.default voidsetVectorI(CharSequence name, int x, int y) Sets an integer vector in the shader.default voidsetVectorI(CharSequence name, int x, int y, int z) Sets an integer vector in the shader.default voidsetVectorI(CharSequence name, int x, int y, int z, int w) Sets an integer vector in the shader.default voidsetVectors(CharSequence name, org.joml.Vector2fc... values) Sets an array of vectors in the shader.default voidsetVectors(CharSequence name, org.joml.Vector2ic... values) Sets an array of integer vectors in the shader.default voidsetVectors(CharSequence name, org.joml.Vector3fc... values) Sets an array of vectors in the shader.default voidsetVectors(CharSequence name, org.joml.Vector3ic... values) Sets an array of integer vectors in the shader.default voidsetVectors(CharSequence name, org.joml.Vector4fc... values) Sets an array of vectors in the shader.default voidsetVectors(CharSequence name, org.joml.Vector4ic... values) Sets an array of integer vectors in the shader.Methods inherited from interface foundry.veil.api.client.render.shader.program.MutableUniformAccess
applyRenderSystem, setVector, setVector, setVector, setVector, setVectorI, setVectorI, setVectorIMethods inherited from interface org.lwjgl.system.NativeResource
close
-
Field Details
-
CODEC
-
-
Method Details
-
apply
Applies this post effect.PostProcessingManager.runPipeline(PostPipeline)should be called to run this pipeline.- Parameters:
context- The context to use when running this pipeline.
-
free
default void free()Allows a post pipeline to dispose of any resources it takes up.- Specified by:
freein interfaceorg.lwjgl.system.NativeResource
-
getType
PostPipelineStageRegistry.PipelineType<? extends PostPipeline> getType()- Returns:
- The type of post effect this is
-
getUniform
Description copied from interface:UniformAccessRetrieves the location of a uniform.- Specified by:
getUniformin interfaceUniformAccess- Parameters:
name- The name of the uniform to get- Returns:
- The location of that uniform or
-1if not found
-
getUniformBlock
Description copied from interface:UniformAccessRetrieves the location of a uniform block.- Specified by:
getUniformBlockin interfaceUniformAccess- Parameters:
name- The name of the uniform block to get- Returns:
- The location of that uniform block or -1 if not found
-
getStorageBlock
Description copied from interface:UniformAccessRetrieves the location of a storage block.- Specified by:
getStorageBlockin interfaceUniformAccess- Parameters:
name- The name of the storage block to get- Returns:
- The location of that storage block or -1 if not found
-
hasUniform
Description copied from interface:UniformAccessChecks if the specified uniform exists in the shader.- Specified by:
hasUniformin interfaceUniformAccess- Parameters:
name- The name of the uniform to check- Returns:
- Whether that uniform can be set
-
hasUniformBlock
Description copied from interface:UniformAccessChecks if the specified uniform block exists in the shader.- Specified by:
hasUniformBlockin interfaceUniformAccess- Parameters:
name- The name of the uniform block to check- Returns:
- Whether that uniform block can be set
-
hasStorageBlock
Description copied from interface:UniformAccessChecks if the specified storage block exists in the shader.- Specified by:
hasStorageBlockin interfaceUniformAccess- Parameters:
name- The name of the storage block to check- Returns:
- Whether that storage block can be set
-
getFloat
Description copied from interface:UniformAccessRetrieves a single float by the specified name.- Specified by:
getFloatin interfaceUniformAccess- Parameters:
name- The name of the uniform to get- Returns:
- The float value of that uniform
-
getInt
Description copied from interface:UniformAccessRetrieves a single integer by the specified name.- Specified by:
getIntin interfaceUniformAccess- Parameters:
name- The name of the uniform to get- Returns:
- The int value of that uniform
-
getFloats
Description copied from interface:UniformAccessRetrieves an array of floats by the specified name.- Specified by:
getFloatsin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalues- The values to set
-
getVector
Description copied from interface:UniformAccessRetrieves an array of vectors by the specified name.- Specified by:
getVectorin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalues- The values to set
-
getVector
Description copied from interface:UniformAccessRetrieves an array of vectors by the specified name.- Specified by:
getVectorin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalues- The values to set
-
getVector
Description copied from interface:UniformAccessRetrieves an array of vectors by the specified name.- Specified by:
getVectorin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalues- The values to set
-
getInts
Description copied from interface:UniformAccessRetrieves an array of integers by the specified name.- Specified by:
getIntsin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalues- The values to set
-
getVector
Description copied from interface:UniformAccessRetrieves an array of vectors by the specified name.- Specified by:
getVectorin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalues- The values to set
-
getVector
Description copied from interface:UniformAccessRetrieves an array of vectors by the specified name.- Specified by:
getVectorin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalues- The values to set
-
getVector
Description copied from interface:UniformAccessRetrieves an array of vectors by the specified name.- Specified by:
getVectorin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalues- The values to set
-
getMatrix
Description copied from interface:UniformAccessRetrieves a matrix2x2 by the specified name- Specified by:
getMatrixin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalue- The value to set
-
getMatrix
Description copied from interface:UniformAccessRetrieves a matrix3x3 by the specified name- Specified by:
getMatrixin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalue- The value to set
-
getMatrix
Description copied from interface:UniformAccessRetrieves a matrix3x2 by the specified name- Specified by:
getMatrixin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalue- The value to set
-
getMatrix
Description copied from interface:UniformAccessRetrieves a matrix4x4 by the specified name- Specified by:
getMatrixin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalue- The value to set
-
getMatrix
Description copied from interface:UniformAccessRetrieves a matrix4x3 by the specified name- Specified by:
getMatrixin interfaceUniformAccess- Parameters:
name- The name of the uniform to getvalue- The value to set
-
setUniformBlock
Description copied from interface:MutableUniformAccessSets the binding to use for the specified uniform block.- Specified by:
setUniformBlockin interfaceMutableUniformAccess- Parameters:
name- The name of the block to setbinding- The binding to use for that block
-
setStorageBlock
Description copied from interface:MutableUniformAccessSets the binding to use for the specified storage block.- Specified by:
setStorageBlockin interfaceMutableUniformAccess- Parameters:
name- The name of the block to setbinding- The binding to use for that block
-
setFloat
Description copied from interface:MutableUniformAccessSets a float in the shader.- Specified by:
setFloatin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setVector
Description copied from interface:MutableUniformAccessSets a vector in the shader.- Specified by:
setVectorin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vector
-
setVector
Description copied from interface:MutableUniformAccessSets a vector in the shader.- Specified by:
setVectorin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVector
Description copied from interface:MutableUniformAccessSets a vector in the shader.- Specified by:
setVectorin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vectorz- The z component of the vectorw- The w component of the vector
-
setInt
Description copied from interface:MutableUniformAccessSets an integer in the shader.- Specified by:
setIntin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setVectorI
Description copied from interface:MutableUniformAccessSets an integer vector in the shader.- Specified by:
setVectorIin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vector
-
setVectorI
Description copied from interface:MutableUniformAccessSets an integer vector in the shader.- Specified by:
setVectorIin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vectorz- The z component of the vector
-
setVectorI
Description copied from interface:MutableUniformAccessSets an integer vector in the shader.- Specified by:
setVectorIin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setx- The x component of the vectory- The y component of the vectorz- The z component of the vectorw- The w component of the vector
-
setFloats
Description copied from interface:MutableUniformAccessSets an array of floats in the shader.- Specified by:
setFloatsin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of vectors in the shader.- Specified by:
setVectorsin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of vectors in the shader.- Specified by:
setVectorsin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of vectors in the shader.- Specified by:
setVectorsin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setInts
Description copied from interface:MutableUniformAccessSets an array of integers in the shader.- Specified by:
setIntsin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of integer vectors in the shader.- Specified by:
setVectorsin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of integer vectors in the shader.- Specified by:
setVectorsin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setVectors
Description copied from interface:MutableUniformAccessSets an array of integer vectors in the shader.- Specified by:
setVectorsin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalues- The values to set in order
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Specified by:
setMatrixin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Specified by:
setMatrixin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Specified by:
setMatrixin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Specified by:
setMatrixin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalue- The value to set
-
setMatrix
Description copied from interface:MutableUniformAccessSets a matrix in the shader.- Specified by:
setMatrixin interfaceMutableUniformAccess- Parameters:
name- The name of the uniform to setvalue- The value to set
-