#include <PipelineConfiguration.h>
Pipeline that uses pixel/fragment shaders to draw color.
◆ ColorPipelineConfiguration()
ne::ColorPipelineConfiguration::ColorPipelineConfiguration |
( |
const std::string & |
sVertexShaderName, |
|
|
const std::set< ShaderMacro > & |
requiredVertexShaderMacros, |
|
|
const std::string & |
sFragmentShaderName, |
|
|
const std::set< ShaderMacro > & |
requiredFragmentShaderMacros, |
|
|
bool |
bUsePixelBlending |
|
) |
| |
Initializes options.
- Parameters
-
sVertexShaderName | Name of the compiled vertex shader to use. |
requiredVertexShaderMacros | Macros required to be defined for a vertex shader. These macros are used to request the required shader variant from a shader pack. |
sFragmentShaderName | Name of the compiled fragment/pixel shader to use. |
requiredFragmentShaderMacros | Macros required to be defined for a fragment/pixel shader. These macros are used to request the required shader variant from a shader pack. |
bUsePixelBlending | true to enable transparency, false to disable. |
◆ getFragmentShaderName()
std::string_view ne::ColorPipelineConfiguration::getFragmentShaderName |
( |
| ) |
const |
|
overridevirtual |
Returns name of the pixel/fragment shader that should be used.
- Returns
- Empty string if pixel/fragment shader is not used, otherwise name of the compiled shader.
Reimplemented from ne::PipelineConfiguration.
◆ getGraphicsType()
std::optional< GraphicsPipelineType > ne::ColorPipelineConfiguration::getGraphicsType |
( |
| ) |
const |
|
overridevirtual |
◆ getRequiredFragmentShaderMacros()
std::set< ShaderMacro > ne::ColorPipelineConfiguration::getRequiredFragmentShaderMacros |
( |
| ) |
const |
|
overridevirtual |
Returns additional macros to enable for pixel/fragment shader configuration (if pixel/fragment shader is used).
- Returns
- Macros.
Reimplemented from ne::PipelineConfiguration.
◆ isPixelBlendingEnabled()
bool ne::ColorPipelineConfiguration::isPixelBlendingEnabled |
( |
| ) |
const |
|
overridevirtual |
Tells whether pixel blending should be enabled or not.
- Returns
true
to enable, false
to disable.
Reimplemented from ne::PipelineConfiguration.
◆ bUsePixelBlending
const bool ne::ColorPipelineConfiguration::bUsePixelBlending |
|
protected |
true
to enable transparency, false
to disable.
◆ requiredFragmentShaderMacros
std::set<ShaderMacro> ne::ColorPipelineConfiguration::requiredFragmentShaderMacros |
|
protected |
Macros required to be defined for a fragment shader.
◆ sFragmentShaderName
const std::string ne::ColorPipelineConfiguration::sFragmentShaderName |
|
protected |
Name of the compiled fragment/pixel shader to use.
The documentation for this class was generated from the following files:
- src/engine_lib/private/render/general/pipeline/PipelineConfiguration.h
- src/engine_lib/private/render/general/pipeline/PipelineConfiguration.cpp