Cogs.Core
Public Attributes | List of all members
Cogs::Core::EffectDefinition Struct Reference

Defines a loadable effect. More...

#include <EffectDefinition.h>

Public Attributes

std::string name
 Name of the effect.
 
MeshStreamsLayout streamsLayout
 The vertex layout this effect expects.
 
ShaderDefinition vertexShader
 
ShaderDefinition hullShader
 
ShaderDefinition domainShader
 
ShaderDefinition geometryShader
 
ShaderDefinition pixelShader
 
ShaderDefinition computeShader
 
std::vector< std::string > dependencies
 
PreprocessorDefinitions definitions
 Preprocessor definitions.
 
EffectDefinitionFlags flags = EffectDefinitionFlags::None
 

Detailed Description

Defines a loadable effect.

Definition at line 86 of file EffectDefinition.h.

Member Data Documentation

◆ computeShader

ShaderDefinition Cogs::Core::EffectDefinition::computeShader

Definition at line 104 of file EffectDefinition.h.

◆ definitions

PreprocessorDefinitions Cogs::Core::EffectDefinition::definitions

Preprocessor definitions.

Definition at line 112 of file EffectDefinition.h.

Referenced by Cogs::Core::MaterialManager::loadMaterialVariant().

◆ dependencies

std::vector<std::string> Cogs::Core::EffectDefinition::dependencies

Names of shader dependencies. All names given here are combined with platform-specific information to form the final list of dependency paths for the effect. The EffectManager will try to resolve all dependencies before actually loading the effect.

Definition at line 109 of file EffectDefinition.h.

Referenced by Cogs::Core::EffectManager::loadEffect().

◆ domainShader

ShaderDefinition Cogs::Core::EffectDefinition::domainShader

Definition at line 98 of file EffectDefinition.h.

◆ flags

EffectDefinitionFlags Cogs::Core::EffectDefinition::flags = EffectDefinitionFlags::None

Definition at line 114 of file EffectDefinition.h.

◆ geometryShader

ShaderDefinition Cogs::Core::EffectDefinition::geometryShader

Definition at line 100 of file EffectDefinition.h.

◆ hullShader

ShaderDefinition Cogs::Core::EffectDefinition::hullShader

Definition at line 96 of file EffectDefinition.h.

◆ name

std::string Cogs::Core::EffectDefinition::name

Name of the effect.

Definition at line 89 of file EffectDefinition.h.

Referenced by Cogs::Core::EffectManager::loadEffect(), and Cogs::Core::MaterialManager::loadMaterialVariant().

◆ pixelShader

ShaderDefinition Cogs::Core::EffectDefinition::pixelShader

Definition at line 102 of file EffectDefinition.h.

◆ streamsLayout

MeshStreamsLayout Cogs::Core::EffectDefinition::streamsLayout

The vertex layout this effect expects.

Definition at line 92 of file EffectDefinition.h.

Referenced by Cogs::Core::MaterialManager::loadMaterialVariant().

◆ vertexShader

ShaderDefinition Cogs::Core::EffectDefinition::vertexShader

Definition at line 94 of file EffectDefinition.h.


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