#include <PipelineConfiguration.h>
Pipeline that uses pixel/fragment shaders to draw color.
◆ ColorPipelineConfiguration()
ne::ColorPipelineConfiguration::ColorPipelineConfiguration |
( |
const std::string & |
sVertexShaderName, |
|
|
const std::set< ShaderMacro > & |
additionalVertexShaderMacros, |
|
|
const std::string & |
sPixelShaderName, |
|
|
std::set< ShaderMacro > |
additionalPixelShaderMacros, |
|
|
bool |
bUsePixelBlending |
|
) |
| |
Initializes options.
- Parameters
-
sVertexShaderName | Name of the compiled vertex shader to use. |
additionalVertexShaderMacros | Additional macros to enable for vertex shader configuration. |
sPixelShaderName | Name of the compiled pixel shader to use. |
additionalPixelShaderMacros | Additional macros to enable for pixel shader configuration. |
bUsePixelBlending | true to enable transparency, false to disable. |
◆ getAdditionalPixelShaderMacros()
std::set< ShaderMacro > ne::ColorPipelineConfiguration::getAdditionalPixelShaderMacros |
( |
| ) |
const |
|
overridevirtual |
Returns additional macros to enable for pixel/fragment shader configuration (if pixel/fragment shader is used).
- Returns
- Macros.
Reimplemented from ne::PipelineConfiguration.
◆ getGraphicsType()
std::optional< GraphicsPipelineType > ne::ColorPipelineConfiguration::getGraphicsType |
( |
| ) |
const |
|
overridevirtual |
◆ getPixelShaderName()
std::string_view ne::ColorPipelineConfiguration::getPixelShaderName |
( |
| ) |
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.
◆ 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.
◆ additionalPixelShaderMacros
std::set<ShaderMacro> ne::ColorPipelineConfiguration::additionalPixelShaderMacros |
|
protected |
Additional macros to enable for pixel shader configuration.
◆ bUsePixelBlending
const bool ne::ColorPipelineConfiguration::bUsePixelBlending |
|
protected |
true
to enable transparency, false
to disable.
◆ sPixelShaderName
const std::string ne::ColorPipelineConfiguration::sPixelShaderName |
|
protected |
Name of the compiled 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