Class PrecompiledCombination
Combination of a compiled shader.
Namespace: Evergine.Framework.Graphics.Effects.Models
Assembly: Evergine.Framework.dll
Syntax
public class PrecompiledCombination
Constructors
PrecompiledCombination(string, string[], InputLayouts, GraphicsResourceUsage[])
Initializes a new instance of the PrecompiledCombination class.
Declaration
public PrecompiledCombination(string passName, string[] directives, InputLayouts inputLayout, GraphicsResourceUsage[] resourceLayoutUsage)
Parameters
Type | Name | Description |
---|---|---|
string | passName | The pass name. |
string[] | directives | The directives array. |
InputLayouts | inputLayout | The input layout. |
GraphicsResourceUsage[] | resourceLayoutUsage | The graphics resource usage. |
Fields
ComputeFileInfoPartIndex
The compute shader FileInfo part index.
Declaration
public int ComputeFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
Directives
The directives.
Declaration
public string[] Directives
Field Value
Type | Description |
---|---|
string[] |
DomainFileInfoPartIndex
Domain shader FileInfoPart index.
Declaration
public int DomainFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
GeometryFileInfoPartIndex
Geometry shader FileInfo part index.
Declaration
public int GeometryFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
GraphicsResourcesUsage
The graphic resource information.
Declaration
public GraphicsResourceUsage[] GraphicsResourcesUsage
Field Value
Type | Description |
---|---|
GraphicsResourceUsage[] |
Hash
Hashes passName and directives.
Declaration
public readonly int Hash
Field Value
Type | Description |
---|---|
int |
HullFileInfoPartIndex
Index of the Hull Shader FileInfoPart.
Declaration
public int HullFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
InputLayouts
The input layout.
Declaration
public InputLayouts InputLayouts
Field Value
Type | Description |
---|---|
InputLayouts |
PixelFileInfoPartIndex
Pixel shader FileInfo part index.
Declaration
public int PixelFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
VertexFileInfoPartIndex
Vertex Shader FileInfo part index.
Declaration
public int VertexFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
Methods
GetFileInfoPartIndex(ShaderStages)
Gets the compiled bytecode of a stage.
Declaration
public int GetFileInfoPartIndex(ShaderStages stage)
Parameters
Type | Name | Description |
---|---|---|
ShaderStages | stage | Shader stage. |
Returns
Type | Description |
---|---|
int | Shader bytecode. |
Read(string, BinaryReader)
Reads compiledCombination from EffectInfoPart.
Declaration
public static PrecompiledCombination Read(string passName, BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
string | passName | Pass Name. |
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
PrecompiledCombination | The read compiledCombination. |
SetStageFilename(ShaderStages, int)
Adds a new shader binary filename by stage.
Declaration
public void SetStageFilename(ShaderStages stage, int fileInfoPartIndex)
Parameters
Type | Name | Description |
---|---|---|
ShaderStages | stage | Shader stage. |
int | fileInfoPartIndex | The FileInfoPart index. |
Write(BinaryWriter)
Writes the compiled combination for EffectInfoPart.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |