Class EffectHelper
Common helper class for effects.
Namespace: Evergine.Framework.Graphics.Effects
Assembly: Evergine.Framework.dll
Syntax
public static class EffectHelper
Methods
AddedResourceBindingData(ref GraphicsShaderStateDescription, ref GraphicsResourceInfo[])
Adds resources binding data to the ShaderStageDescription object.
Declaration
public static void AddedResourceBindingData(ref GraphicsShaderStateDescription shaderDescription, ref GraphicsResourceInfo[] resourceLayoutInfo)
Parameters
Type | Name | Description |
---|---|---|
GraphicsShaderStateDescription | shaderDescription | Shader State Description. |
GraphicsResourceInfo[] | resourceLayoutInfo | Resource Layout Information. |
CheckDirectives(string[], string[])
Checks the directives and returns filter directives.
Declaration
public static string[] CheckDirectives(string[] usedDirectives, string[] directives)
Parameters
Type | Name | Description |
---|---|---|
string[] | usedDirectives | Directives used by a single pass. |
string[] | directives | The desired directives. |
Returns
Type | Description |
---|---|
string[] | Directives existing in the effect. |
GetDirectivesHasCode(string[])
Gets the hash code of the directive list.
Declaration
public static int GetDirectivesHasCode(string[] activeDirectives)
Parameters
Type | Name | Description |
---|---|---|
string[] | activeDirectives | Active directives. |
Returns
Type | Description |
---|---|
int | Hash code. |
GetPassAndDirectivesHashCode(string, string[])
Gets hash code based on passName and active directives list.
Declaration
public static int GetPassAndDirectivesHashCode(string passName, string[] activeDirectives)
Parameters
Type | Name | Description |
---|---|---|
string | passName | Pass name. |
string[] | activeDirectives | Active directives. |
Returns
Type | Description |
---|---|
int | Hash code. |