Struct ShaderMethod
Represent a single method in a shader.
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public struct ShaderMethod
Constructors
ShaderMethod(string, string)
Initializes a new instance of the ShaderMethod struct.
Declaration
public ShaderMethod(string name, string body)
Parameters
Type | Name | Description |
---|---|---|
string | name | Method name. |
string | body | Method body. |
Properties
Body
Gets or sets the method body.
Declaration
public string Body { readonly get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Gets or sets the method name.
Declaration
public string Name { readonly get; set; }
Property Value
Type | Description |
---|---|
string |
Stage
Gets or sets a value indicating whether the method is a stage (VertexShader, PixelShader...)
Declaration
public bool Stage { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |