Class PrecompiledCombination
Combination of a compiled shader.
Inherited Members
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 | Graphics Resource Usage. |
Fields
ComputeFileInfoPartIndex
The compute shader FileInfoPart 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 FileInfoPart index.
Declaration
public int GeometryFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
GraphicsResourcesUsage
The graphics resources information.
Declaration
public GraphicsResourceUsage[] GraphicsResourcesUsage
Field Value
Type | Description |
---|---|
GraphicsResourceUsage[] |
Hash
Hash passName + directives.
Declaration
public readonly int Hash
Field Value
Type | Description |
---|---|
int |
HullFileInfoPartIndex
Hull Shader FileInfoPart index.
Declaration
public int HullFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
InputLayouts
The input layouts.
Declaration
public InputLayouts InputLayouts
Field Value
Type | Description |
---|---|
InputLayouts |
PixelFileInfoPartIndex
Pixel shader FileInfoPart index.
Declaration
public int PixelFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
VertexFileInfoPartIndex
Vertex Shader FileInfoPart index.
Declaration
public int VertexFileInfoPartIndex
Field Value
Type | Description |
---|---|
int |
Methods
GetFileInfoPartIndex(ShaderStages)
Gets the compiled byte code of a stage.
Declaration
public int GetFileInfoPartIndex(ShaderStages stage)
Parameters
Type | Name | Description |
---|---|---|
ShaderStages | stage | Shader stage. |
Returns
Type | Description |
---|---|
int | Shader byte code. |
Read(string, BinaryReader)
Read 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 readed compiledCombination. |
SetStageFilename(ShaderStages, int)
Added 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)
Write compiledCombination for EffectInfoPart.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |