Add double precision checks to DX12 pixel shader tests

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-15 20:35:18 +02:00
1 親 930f2d1f12
コミット 650e815616
3ファイル変更
+6 -2

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

+1 -1
ファイルの表示
@@ -117,7 +117,7 @@ internal readonly partial struct ContouredLayers : IPixelShader<float4>
float3 col;
col = (float3)1.0 * (1.0f - (0.75f / (1.0f + (sh * sh * 2.0f))));
col = (float3)1.0f * (1.0f - (0.75f / (1.0f + (sh * sh * 2.0f))));
col = Hlsl.Min(col * tx * 3.0f, 1.0f);
return col;
+1 -1
ファイルの表示
@@ -121,7 +121,7 @@ internal readonly partial struct ContouredLayers : IComputeShader
float3 col;
col = (float3)1.0 * (1.0f - 0.75f / (1.0f + sh * sh * 2.0f));
col = (float3)1.0f * (1.0f - 0.75f / (1.0f + sh * sh * 2.0f));
col = Hlsl.Min(col * tx * 3.0f, 1.0f);
return col;
+4
ファイルの表示
@@ -178,6 +178,10 @@ public class ShadersTests
static void RunPixelShader<T>(ReadWriteTexture2D<Rgba32, float4> texture)
where T : struct, IPixelShader<float4>
{
ShaderInfo info = ReflectionServices.GetShaderInfo<T, float4>();
Assert.IsFalse(info.RequiresDoublePrecisionSupport);
texture.GraphicsDevice.ForEach(texture, (T)Activator.CreateInstance(typeof(T), 0f)!);
}