Merge pull request #56 from Sergio0694/bugfix_invalid-memberSymbol

Fixed invalid member symbol
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2019-09-17 01:13:53 +02:00
コミット eb2c9d6141
2ファイル変更
+16 -2

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -150,8 +150,8 @@ namespace ComputeSharp.Shaders.Translation
rootNode = syntaxTree.GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().First(node => node.GetLeadingTrivia().ToFullString().Contains(methodInfo.Name));
// Update the incremental compilation and retrieve the syntax tree for the method
_Compilation = _Compilation.AddSyntaxTrees(syntaxTree);
semanticModel = _Compilation.GetSemanticModel(syntaxTree);
Compilation compilation = _Compilation.AddSyntaxTrees(syntaxTree);
semanticModel = compilation.GetSemanticModel(syntaxTree);
}
/// <summary>
+14
ファイルの表示
@@ -7,6 +7,20 @@ namespace ComputeSharp.Tests
[TestCategory("HlslVectorTypes")]
public class HlslVectorTypesTests
{
[TestMethod]
public void SequentialCompilation()
{
Float2 f2 = new Float2(1, 2);
using ReadWriteBuffer<Float2> buffer = Gpu.Default.AllocateReadWriteBuffer<Float2>(2);
Action<ThreadIds> action1 = id => buffer[0] = f2.YX;
Action<ThreadIds> action2 = id => buffer[1] = f2.YX;
Gpu.Default.For(1, action1);
Gpu.Default.For(1, action2);
}
[TestMethod]
public void LocalFloatAssignToFloat2Buffer()
{