Nameless Engine
Loading...
Searching...
No Matches
ne::ComputePipelineConfiguration Class Reference

#include <PipelineConfiguration.h>

Inheritance diagram for ne::ComputePipelineConfiguration:
ne::PipelineConfiguration

Public Member Functions

 ComputePipelineConfiguration (const std::string &sComputeShaderName)
 
virtual std::optional< GraphicsPipelineType > getGraphicsType () const override
 
virtual std::string_view getComputeShaderName () const override
 
- Public Member Functions inherited from ne::PipelineConfiguration
std::set< ShaderMacro > getRequiredVertexShaderMacros () const
 
virtual std::set< ShaderMacro > getRequiredFragmentShaderMacros () const
 
std::string_view getVertexShaderName () const
 
virtual std::optional< GraphicsPipelineType > getGraphicsType () const =0
 
virtual std::string_view getFragmentShaderName () const
 
virtual std::string_view getComputeShaderName () const
 
virtual bool isPixelBlendingEnabled () const
 
virtual bool isDepthBiasEnabled () const
 
virtual std::optional< PipelineShadowMappingUsage > getShadowMappingUsage () const
 

Private Attributes

const std::string sComputeShaderName
 

Additional Inherited Members

- Protected Member Functions inherited from ne::PipelineConfiguration
 PipelineConfiguration (const std::string &sVertexShaderName, const std::set< ShaderMacro > &requiredVertexShaderMacros)
 
- Protected Attributes inherited from ne::PipelineConfiguration
std::set< ShaderMacro > requiredVertexShaderMacros
 
const std::string sVertexShaderName
 

Detailed Description

Pipeline that uses a compute shader.

Constructor & Destructor Documentation

◆ ComputePipelineConfiguration()

ne::ComputePipelineConfiguration::ComputePipelineConfiguration ( const std::string &  sComputeShaderName)

Initializes options.

Parameters
sComputeShaderNameName of the compute shader to use.

Member Function Documentation

◆ getComputeShaderName()

std::string_view ne::ComputePipelineConfiguration::getComputeShaderName ( ) const
overridevirtual

Returns name of the compute shader that should be used.

Returns
Empty string if compute shader is not used, otherwise name of the compiled shader.

Reimplemented from ne::PipelineConfiguration.

◆ getGraphicsType()

std::optional< GraphicsPipelineType > ne::ComputePipelineConfiguration::getGraphicsType ( ) const
overridevirtual

Returns type of the pipeline that the object describes.

Returns
Pipeline type.

Implements ne::PipelineConfiguration.

Member Data Documentation

◆ sComputeShaderName

const std::string ne::ComputePipelineConfiguration::sComputeShaderName
private

Name of a compiled compute shader to use.


The documentation for this class was generated from the following files: