Use raw multiline string literals in D2DPixelShaderSourceTests
このコミットが含まれているのは:
1 親
e35bfd830a
コミット
25ba356046
1ファイル変更
+3
-3
@@ -7,11 +7,11 @@ namespace ComputeSharp.D2D1.Tests;
|
||||
[TestCategory("D2DPixelShaderSource")]
|
||||
public partial class D2DPixelShaderSourceTests
|
||||
{
|
||||
[D2DPixelShaderSource(@"
|
||||
[D2DPixelShaderSource("""
|
||||
#define D2D_INPUT_COUNT 1
|
||||
#define D2D_INPUT0_SIMPLE
|
||||
|
||||
#include ""d2d1effecthelpers.hlsli""
|
||||
#include "d2d1effecthelpers.hlsli"
|
||||
|
||||
D2D_PS_ENTRY(Execute)
|
||||
{
|
||||
@@ -19,7 +19,7 @@ public partial class D2DPixelShaderSourceTests
|
||||
float3 rgb = saturate(1.0 - color.rgb);
|
||||
return float4(rgb, 1);
|
||||
}
|
||||
")]
|
||||
""")]
|
||||
[D2DShaderProfile(D2D1ShaderProfile.PixelShader50)]
|
||||
[D2DCompileOptions(D2D1CompileOptions.OptimizationLevel0)]
|
||||
private static partial ReadOnlySpan<byte> InvertEffect();
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする