Struct PreprocessShader
Effect pre-processing shader.
Namespace: Evergine.Framework.Graphics.Effects.Analyzer
Assembly: Evergine.Framework.dll
Syntax
public struct PreprocessShader
Fields
LineInfos
The preprocessed shader line information.
Declaration
public LineInfo[] LineInfos
Field Value
| Type | Description |
|---|---|
| LineInfo[] |
ResourceLayoutUsage
Gets the resource layout usage.
Declaration
public GraphicsResourceUsage[] ResourceLayoutUsage
Field Value
| Type | Description |
|---|---|
| GraphicsResourceUsage[] |
Properties
ShaderCode
Gets the shader code.
Declaration
public string ShaderCode { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
TranslateLineShader(int)
Translates the line from the source shader to the preprocessed shader line.
Declaration
public int TranslateLineShader(int lineNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| int | lineNumber | The line number. |
Returns
| Type | Description |
|---|---|
| int | The line number in the preprocessed shader. |