Use raw string literal in ShaderCompilerTests

このコミットが含まれているのは:
Sergio Pedri committed 2022-09-16 10:38:38 -07:00
1 親 dc84a56b30
コミット 30c5b77ec1
1ファイル変更
+17 -16
+17 -16
ファイルの表示
@@ -11,24 +11,25 @@ namespace ComputeSharp.Tests.Internals;
[TestCategory("ShaderCompiler")]
public class ShaderCompilerTests
{
private const string ShaderSource = @"
cbuffer _ : register(b0)
{
uint __x;
uint __y;
uint __z;
}
RWStructuredBuffer<float> buffer : register(u0);
[NumThreads(32, 1, 1)]
void Execute(uint3 ids : SV_DispatchThreadId)
{
if (ids.x < __x && ids.y < __y && ids.z < __z)
private const string ShaderSource = """
cbuffer _ : register(b0)
{
buffer[ids.x] *= 2;
uint __x;
uint __y;
uint __z;
}
}";
RWStructuredBuffer<float> buffer : register(u0);
[NumThreads(32, 1, 1)]
void Execute(uint3 ids : SV_DispatchThreadId)
{
if (ids.x < __x && ids.y < __y && ids.z < __z)
{
buffer[ids.x] *= 2;
}
}
""";
[TestMethod]
public void CompileTest_Ok()