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

#include <Renderer.h>

Public Member Functions

 ShaderConfiguration (Renderer *pRenderer)
 
void updateShaderConfiguration ()
 

Public Attributes

std::set< ShaderMacro > currentVertexShaderConfiguration
 
std::set< ShaderMacro > currentPixelShaderConfiguration
 

Private Attributes

RendererpRenderer = nullptr
 

Detailed Description

Describes a group of shader macros.

Constructor & Destructor Documentation

◆ ShaderConfiguration()

ne::ShaderConfiguration::ShaderConfiguration ( Renderer pRenderer)
inline

Saves render to use.

Parameters
pRendererRenderer to use.

Member Function Documentation

◆ updateShaderConfiguration()

void ne::ShaderConfiguration::updateShaderConfiguration ( )
inline

Updates the current shader configuration (settings) for the current renderer based on the current values from this struct.

Remarks
Flushes the command queue and recreates pipelines' internal resources so that they will use new shader configuration.

Member Data Documentation

◆ currentPixelShaderConfiguration

std::set<ShaderMacro> ne::ShaderConfiguration::currentPixelShaderConfiguration

Pixel shader macros.

◆ currentVertexShaderConfiguration

std::set<ShaderMacro> ne::ShaderConfiguration::currentVertexShaderConfiguration

Vertex shader macros.

◆ pRenderer

Renderer* ne::ShaderConfiguration::pRenderer = nullptr
private

Used renderer.


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