Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Commit

Permalink
[Direct3D11.Effects] Added HasSignature Property on EffectPassDescrip…
Browse files Browse the repository at this point in the history
…tion

[D3DCompiler] Added LastErrorString property on function linking graph
  • Loading branch information
mrvux authored and xoofx committed Jan 15, 2014
1 parent 0c3d93e commit 0b64658
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/SharpDX.D3DCompiler/FunctionLinkingGraph.cs
Expand Up @@ -104,6 +104,15 @@ public ModuleInstance CreateModuleInstance()
return module;
}

/// <summary>
/// Gets the error from the last function call of the function-linking-graph, as a string
/// </summary>
public string LastErrorString
{
get { return Utilities.BlobToString(this.LastError); }
}


/// <summary>
/// <p>[This documentation is preliminary and is subject to change.]</p><p>Creates a call-function linking node to use in the function-linking-graph.</p>
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions Source/SharpDX.Direct3D11.Effects/EffectPassDescription.cs
Expand Up @@ -34,6 +34,14 @@ public ShaderBytecode Signature
return new ShaderBytecode(this.PIAInputSignature, this.IAInputSignatureSize);
}
}

/// <summary>
/// Returns true if this Effect pass has a Signature (eg: if a VertexShader or Geometry Shader is present), false otherwise
/// </summary>
public bool HasSignature
{
get { return this.PIAInputSignature != System.IntPtr.Zero; }
}
}
}
#endif

0 comments on commit 0b64658

Please sign in to comment.