Class EffectProfile
Represents the effect profile class.
Inherited Members
Namespace: Evergine.Assets.Exporters
Assembly: Evergine.Assets.dll
Syntax
public class EffectProfile : AssetProfile
Fields
Compile
Indicates whether the asset should pre-compile the effect.
Declaration
public EffectProfileCompile Compile
Field Value
Type | Description |
---|---|
EffectProfileCompile |
Remarks
If it is set to No the effect file will be compiled at runtime.
GraphicsBackend
The graphics backend.
Declaration
public EffectProfileGraphicsBackend GraphicsBackend
Field Value
Type | Description |
---|---|
EffectProfileGraphicsBackend |
MandatoryCombinations
Specifies mandatory combinations that must be compiled. Example 1: All Example 2: A-B, B-C, ...
Declaration
public string MandatoryCombinations
Field Value
Type | Description |
---|---|
string |
Properties
CompileAllCombinations
Gets a value indicating whether the mandatory combinations contain the tag All.
Declaration
public bool CompileAllCombinations { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
GetCompileParameter(ProjectProfile)
Gets a value indicating whether the effect must be compiled. If the property value is ByPlatform the value comes from the specified project profile.
Declaration
public bool GetCompileParameter(ProjectProfile projectProfile)
Parameters
Type | Name | Description |
---|---|---|
ProjectProfile | projectProfile | The project profile. |
Returns
Type | Description |
---|---|
bool | A value indicating whether the effect must be compiled. |
GetGraphicsBackend(ProjectProfile)
Gets the graphics backend of the profile. If the property value is ByPlatform, the value comes from the specified project profile.
Declaration
public GraphicsBackend GetGraphicsBackend(ProjectProfile projectProfile)
Parameters
Type | Name | Description |
---|---|---|
ProjectProfile | projectProfile | The project profile. |
Returns
Type | Description |
---|---|
GraphicsBackend | The graphics backend of the profile. |
GetMandatoryCombinations(string[][])
Gets a string array list of mandatory combinations.
Declaration
public List<string[]> GetMandatoryCombinations(string[][] projectProfileCombinations)
Parameters
Type | Name | Description |
---|---|---|
string[][] | projectProfileCombinations | Project profile directive combinations. |
Returns
Type | Description |
---|---|
List<string[]> | Mandatory combinations. |