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

Commit 4fabace

Browse files
authored
Merge pull request #907 from mrvux/flg_extra
Small overload to GenerateHlsl method
2 parents 8b0e1a8 + ecae6ae commit 4fabace

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Source/SharpDX.D3DCompiler/FunctionLinkingGraph.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,19 @@ public void PassValue(LinkingNode sourceNode, LinkingNode destinationNode, int d
140140
{
141141
PassValue(sourceNode, ReturnParameterIndex, destinationNode, destinationParameterIndex);
142142
}
143+
144+
/// <summary>
145+
/// Generates hlsl code for function linking grpah
146+
/// </summary>
147+
/// <param name="uFlags">Flags (unused by the runtime for now)</param>
148+
/// <returns>Hlsl code as string</returns>
149+
public string GenerateHlsl(int uFlags)
150+
{
151+
SharpDX.Direct3D.Blob blob;
152+
GenerateHlsl(0, out blob);
153+
string result = SharpDX.Utilities.BlobToString(blob);
154+
blob.Dispose();
155+
return result;
156+
}
143157
}
144158
}

0 commit comments

Comments
 (0)