Struct ShaderMethod
Represents a single method in a shader.
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 | The method name. |
string | body | The 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 (such as VertexShader, PixelShader, etc.)
Declaration
public bool Stage { readonly get; set; }
Property Value
Type | Description |
---|---|
bool |