|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration of a graphics pipeline. More...
#include <GREM/graphics/shaders.hpp>
Public Member Functions | |
| constexpr bool | operator== (const ShaderPipelineOptions &other) const noexcept=default |
| Compare this configuration to another for equality. | |
Public Attributes | |
| DepthBufferMode | depthBufferMode = DepthBufferMode::USE_DEPTH_TEST |
| How to treat the depth buffer for each pixel being rendered. | |
| DepthTestPredicate | depthTestPredicate = DepthTestPredicate::LESS_OR_EQUAL |
| The condition to check when evaluating the depth test. | |
| StencilBufferMode | stencilBufferMode = StencilBufferMode::NONE |
| How to treat the stencil buffer for each pixel being rendered. | |
| StencilTestPredicate | stencilTestFrontFacePredicate = StencilTestPredicate::ALWAYS_PASS |
| The condition to check when evaluating the stencil test for front faces. | |
| int8_t | stencilTestFrontFaceReferenceValue = 0 |
| The reference value to compare the stencil buffer value against when evaluating the stencil test for front faces. | |
| uint8_t | stencilTestFrontFaceMask = 0xFF |
| The bit pattern to mask the reference value and stencil value with before performing the stencil test for front faces. | |
| StencilBufferOperation | stencilBufferOperationOnFrontFaceStencilTestFail = StencilBufferOperation::KEEP |
| The operation to perform on the stencil buffer when the stencil test fails for front faces. | |
| StencilBufferOperation | stencilBufferOperationOnFrontFaceDepthTestFail = StencilBufferOperation::KEEP |
| The operation to perform on the stencil buffer when the stencil test passes, but the depth test fails, for front faces. | |
| StencilBufferOperation | stencilBufferOperationOnFrontFacePass = StencilBufferOperation::KEEP |
| The operation to perform on the stencil buffer when the stencil test and the depth test both pass for front faces. | |
| StencilTestPredicate | stencilTestBackFacePredicate = StencilTestPredicate::ALWAYS_PASS |
| The condition to check when evaluating the stencil test for back faces. | |
| int8_t | stencilTestBackFaceReferenceValue = 0 |
| The reference value to compare the stencil buffer value against when evaluating the stencil test for back faces. | |
| uint8_t | stencilTestBackFaceMask = 0xFF |
| The bit pattern to mask the reference value and stencil value with before performing the stencil test for back faces. | |
| StencilBufferOperation | stencilBufferOperationOnBackFaceStencilTestFail = StencilBufferOperation::KEEP |
| The operation to perform on the stencil buffer when the stencil test fails for back faces. | |
| StencilBufferOperation | stencilBufferOperationOnBackFaceDepthTestFail = StencilBufferOperation::KEEP |
| The operation to perform on the stencil buffer when the stencil test passes, but the depth test fails, for back faces. | |
| StencilBufferOperation | stencilBufferOperationOnBackFacePass = StencilBufferOperation::KEEP |
| The operation to perform on the stencil buffer when the stencil test and the depth test both pass for back faces. | |
| PrimitiveType | primitiveType = PrimitiveType::TRIANGLES |
| How to form primitives out of consecutive mesh vertices. | |
| PolygonMode | polygonMode = PolygonMode::FILL |
| How to render polygons. | |
| FaceCullingMode | faceCullingMode = FaceCullingMode::CULL_BACK_FACES |
| How to treat the facing of primitives while rendering. | |
| FrontFace | frontFace = FrontFace::COUNTERCLOCKWISE |
| The winding order of front-facing faces. | |
| Optional< BlendState > | blendState {} |
| How to blend the pixel color with the output while rendering. | |
| float | depthBiasSlopeFactor = 0.0f |
| Slope-scaled depth bias factor. | |
| float | depthBiasConstantFactor = 0.0f |
| Constant depth bias factor. | |
Configuration of a graphics pipeline.
|
nodiscardconstexprdefaultnoexcept |
Compare this configuration to another for equality.
| other | the configuration to compare this one to. |
| DepthBufferMode grem::graphics::ShaderPipelineOptions::depthBufferMode = DepthBufferMode::USE_DEPTH_TEST |
How to treat the depth buffer for each pixel being rendered.
| DepthTestPredicate grem::graphics::ShaderPipelineOptions::depthTestPredicate = DepthTestPredicate::LESS_OR_EQUAL |
The condition to check when evaluating the depth test.
| StencilBufferMode grem::graphics::ShaderPipelineOptions::stencilBufferMode = StencilBufferMode::NONE |
How to treat the stencil buffer for each pixel being rendered.
| StencilTestPredicate grem::graphics::ShaderPipelineOptions::stencilTestFrontFacePredicate = StencilTestPredicate::ALWAYS_PASS |
The condition to check when evaluating the stencil test for front faces.
| int8_t grem::graphics::ShaderPipelineOptions::stencilTestFrontFaceReferenceValue = 0 |
The reference value to compare the stencil buffer value against when evaluating the stencil test for front faces.
| uint8_t grem::graphics::ShaderPipelineOptions::stencilTestFrontFaceMask = 0xFF |
The bit pattern to mask the reference value and stencil value with before performing the stencil test for front faces.
The set bits in the mask indicate the relevant bits that will be compared.
| StencilBufferOperation grem::graphics::ShaderPipelineOptions::stencilBufferOperationOnFrontFaceStencilTestFail = StencilBufferOperation::KEEP |
The operation to perform on the stencil buffer when the stencil test fails for front faces.
| StencilBufferOperation grem::graphics::ShaderPipelineOptions::stencilBufferOperationOnFrontFaceDepthTestFail = StencilBufferOperation::KEEP |
The operation to perform on the stencil buffer when the stencil test passes, but the depth test fails, for front faces.
| StencilBufferOperation grem::graphics::ShaderPipelineOptions::stencilBufferOperationOnFrontFacePass = StencilBufferOperation::KEEP |
The operation to perform on the stencil buffer when the stencil test and the depth test both pass for front faces.
| StencilTestPredicate grem::graphics::ShaderPipelineOptions::stencilTestBackFacePredicate = StencilTestPredicate::ALWAYS_PASS |
The condition to check when evaluating the stencil test for back faces.
| int8_t grem::graphics::ShaderPipelineOptions::stencilTestBackFaceReferenceValue = 0 |
The reference value to compare the stencil buffer value against when evaluating the stencil test for back faces.
| uint8_t grem::graphics::ShaderPipelineOptions::stencilTestBackFaceMask = 0xFF |
The bit pattern to mask the reference value and stencil value with before performing the stencil test for back faces.
The set bits in the mask indicate the relevant bits that will be compared.
| StencilBufferOperation grem::graphics::ShaderPipelineOptions::stencilBufferOperationOnBackFaceStencilTestFail = StencilBufferOperation::KEEP |
The operation to perform on the stencil buffer when the stencil test fails for back faces.
| StencilBufferOperation grem::graphics::ShaderPipelineOptions::stencilBufferOperationOnBackFaceDepthTestFail = StencilBufferOperation::KEEP |
The operation to perform on the stencil buffer when the stencil test passes, but the depth test fails, for back faces.
| StencilBufferOperation grem::graphics::ShaderPipelineOptions::stencilBufferOperationOnBackFacePass = StencilBufferOperation::KEEP |
The operation to perform on the stencil buffer when the stencil test and the depth test both pass for back faces.
| PrimitiveType grem::graphics::ShaderPipelineOptions::primitiveType = PrimitiveType::TRIANGLES |
How to form primitives out of consecutive mesh vertices.
| PolygonMode grem::graphics::ShaderPipelineOptions::polygonMode = PolygonMode::FILL |
How to render polygons.
| FaceCullingMode grem::graphics::ShaderPipelineOptions::faceCullingMode = FaceCullingMode::CULL_BACK_FACES |
| FrontFace grem::graphics::ShaderPipelineOptions::frontFace = FrontFace::COUNTERCLOCKWISE |
The winding order of front-facing faces.
| Optional<BlendState> grem::graphics::ShaderPipelineOptions::blendState {} |
How to blend the pixel color with the output while rendering.
| float grem::graphics::ShaderPipelineOptions::depthBiasSlopeFactor = 0.0f |
Slope-scaled depth bias factor.
| float grem::graphics::ShaderPipelineOptions::depthBiasConstantFactor = 0.0f |
Constant depth bias factor.