#include <PipelineConfiguration.h>
Pipeline that only uses vertex shader to draw depth.
◆ DepthPipelineConfiguration()
ne::DepthPipelineConfiguration::DepthPipelineConfiguration |
( |
const std::string & |
sVertexShaderName, |
|
|
const std::set< ShaderMacro > & |
additionalVertexShaderMacros, |
|
|
std::optional< PipelineShadowMappingUsage > |
shadowMappingUsage |
|
) |
| |
Initializes options.
- Parameters
-
sVertexShaderName | Name of the compiled vertex shader to use. |
additionalVertexShaderMacros | Additional macros to enable for vertex shader configuration. |
shadowMappingUsage | Specify empty if this pipeline is not used in the shadow mapping, otherwise specify which light sources will be able to use this pipeline in shadow mapping and thus shadow bias should be used. |
◆ getFragmentShaderName()
std::string_view ne::DepthPipelineConfiguration::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::DepthPipelineConfiguration::getGraphicsType |
( |
| ) |
const |
|
overridevirtual |
◆ getShadowMappingUsage()
std::optional< PipelineShadowMappingUsage > ne::DepthPipelineConfiguration::getShadowMappingUsage |
( |
| ) |
const |
|
overridevirtual |
Tells if this pipeline is used in shadow mapping.
- Returns
- Empty if not used in shadow mapping, otherwise light sources that can use the pipeline for shadow mapping.
Reimplemented from ne::PipelineConfiguration.
◆ isDepthBiasEnabled()
bool ne::DepthPipelineConfiguration::isDepthBiasEnabled |
( |
| ) |
const |
|
overridevirtual |
Tells whether depth bias (offset is enabled or not).
- Returns
true
to enable, false
to disable.
Reimplemented from ne::PipelineConfiguration.
◆ shadowMappingUsage
const std::optional<PipelineShadowMappingUsage> ne::DepthPipelineConfiguration::shadowMappingUsage |
|
protected |
Empty if not used for shadow mapping, otherwise light sources that can use it.
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