Nameless Engine
|
#include <PipelineCreationSettings.h>
Public Member Functions | |
PipelineCreationSettings (const std::string &sVertexShaderName, const std::set< ShaderMacro > &additionalVertexShaderMacros) | |
std::set< ShaderMacro > | getAdditionalVertexShaderMacros () |
std::string | getVertexShaderName () |
virtual PipelineType | getType ()=0 |
virtual std::set< ShaderMacro > | getAdditionalPixelShaderMacros () |
virtual std::string | getPixelShaderName () |
virtual bool | isPixelBlendingEnabled () |
virtual bool | isDepthBiasEnabled () |
virtual std::optional< PipelineShadowMappingUsage > | getShadowMappingUsage () |
Protected Attributes | |
std::set< ShaderMacro > | additionalVertexShaderMacros |
const std::string | sVertexShaderName |
Base class for pipeline creation options.
ne::PipelineCreationSettings::PipelineCreationSettings | ( | const std::string & | sVertexShaderName, |
const std::set< ShaderMacro > & | additionalVertexShaderMacros | ||
) |
Initializes options.
sVertexShaderName | Name of the compiled vertex shader to use. |
additionalVertexShaderMacros | Additional macros to enable for vertex shader configuration. |
|
inlinevirtual |
Returns additional macros to enable for pixel/fragment shader configuration (if pixel/fragment shader is used).
Reimplemented in ne::ColorPipelineCreationSettings.
|
inline |
Returns additional macros to enable for vertex shader configuration.
|
inlinevirtual |
Returns name of the pixel/fragment shader that should be used.
Reimplemented in ne::ColorPipelineCreationSettings, and ne::DepthPipelineCreationSettings.
|
inlinevirtual |
Tells if this pipeline is used in shadow mapping.
Reimplemented in ne::DepthPipelineCreationSettings.
|
pure virtual |
Returns type of the pipeline that the object describes.
Implemented in ne::ColorPipelineCreationSettings, and ne::DepthPipelineCreationSettings.
|
inline |
Returns name of the vertex shader that should be used.
|
inlinevirtual |
Tells whether depth bias (offset is enabled or not).
true
to enable, false
to disable. Reimplemented in ne::DepthPipelineCreationSettings.
|
inlinevirtual |
Tells whether pixel blending should be enabled or not.
true
to enable, false
to disable. Reimplemented in ne::ColorPipelineCreationSettings.
|
protected |
Additional macros to enable for vertex shader configuration.
|
protected |
Name of the compiled vertex shader to use.