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 ShaderUniformAccessRetrieves a uniform by name or creates a reference to one that may exist in the future.default intgetStorageBlock(CharSequence name) Retrieves the location of a storage block.getType()default @Nullable ShaderUniformAccessgetUniform(CharSequence name) Retrieves a uniform by name.default intgetUniformBlock(CharSequence name) Retrieves the location of a uniform block.default intRetrieves the location of a uniform.default ShaderUniformAccessgetUniformSafe(CharSequence name) Retrieves a uniform by 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 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.Methods 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
-
getUniformLocation
Description copied from interface:UniformAccessRetrieves the location of a uniform.- Specified by:
getUniformLocationin interfaceUniformAccess- Parameters:
name- The name of the uniform to get- Returns:
- The location of that uniform or
-1if not found
-
getUniform
Description copied from interface:UniformAccessRetrieves a uniform by name.- Specified by:
getUniformin interfaceUniformAccess- Parameters:
name- The name of the uniform to get- Returns:
- The uniform with that name or
nullif the uniform does not exist
-
getUniformSafe
Description copied from interface:UniformAccessRetrieves a uniform by name.- Specified by:
getUniformSafein interfaceUniformAccess- Parameters:
name- The name of the uniform to get- Returns:
- The uniform with that name
-
getOrCreateUniform
Description copied from interface:UniformAccessRetrieves a uniform by name or creates a reference to one that may exist in the future.- Specified by:
getOrCreateUniformin interfaceUniformAccess- Parameters:
name- The name of the uniform to get- Returns:
- The uniform instance
-
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
-
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
-