Record Class DepthFunctionPostStage
java.lang.Object
java.lang.Record
foundry.veil.api.client.render.post.stage.DepthFunctionPostStage
- Record Components:
func
- The new depth function to use
- All Implemented Interfaces:
PostPipeline
,MutableUniformAccess
,UniformAccess
,AutoCloseable
,org.lwjgl.system.NativeResource
public record DepthFunctionPostStage(DepthFunctionPostStage.DepthFunc func)
extends Record
implements PostPipeline
Sets the depth function.
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.api.client.render.post.PostPipeline
PostPipeline.Context
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DepthFunctionPostStage>
-
Constructor Summary
ConstructorDescriptionCreates an instance of aDepthFunctionPostStage
record class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(PostPipeline.Context context) Applies this post effect.final boolean
Indicates whether some other object is "equal to" this one.func()
Returns the value of thefunc
record component.getType()
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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
-
DepthFunctionPostStage
Creates an instance of aDepthFunctionPostStage
record class.- Parameters:
func
- the value for thefunc
record component
-
-
Method Details
-
apply
Description copied from interface:PostPipeline
Applies this post effect.PostProcessingManager.runPipeline(PostPipeline)
should be called to run this pipeline.- Specified by:
apply
in interfacePostPipeline
- Parameters:
context
- The context to use when running this pipeline.
-
getType
- Specified by:
getType
in interfacePostPipeline
- Returns:
- The type of post effect this is
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
func
Returns the value of thefunc
record component.- Returns:
- the value of the
func
record component
-