From 960db097e191b3c2c932e72592509d08ca4a3385 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 19 Oct 2022 00:31:40 +0200 Subject: [PATCH] Rename D2D1ShaderInfo.FeatureLevel to match D3D name --- .../Shaders/Interop/D2D1ReflectionServices.cs | 2 +- src/ComputeSharp.D2D1/Shaders/Interop/D2D1ShaderInfo.cs | 4 ++-- tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ReflectionServices.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ReflectionServices.cs index 4fb83784..64c066df 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ReflectionServices.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ReflectionServices.cs @@ -97,6 +97,6 @@ public static class D2D1ReflectionServices MovInstructionCount: d3D11ShaderReflection.Get()->GetMovInstructionCount(), InterfaceSlotCount: d3D11ShaderReflection.Get()->GetNumInterfaceSlots(), RequiresDoublePrecisionSupport: (d3D11ShaderReflection.Get()->GetRequiresFlags() & (D3D.D3D_SHADER_REQUIRES_DOUBLES | D3D.D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS)) != 0, - FeatureLevel: (D3DFeatureLevel)d3DFeatureLevel); + MinimumFeatureLevel: (D3DFeatureLevel)d3DFeatureLevel); } } \ No newline at end of file diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ShaderInfo.cs b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ShaderInfo.cs index 0c0f0d0c..b909aa39 100644 --- a/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ShaderInfo.cs +++ b/src/ComputeSharp.D2D1/Shaders/Interop/D2D1ShaderInfo.cs @@ -28,7 +28,7 @@ namespace ComputeSharp.D2D1.Interop; /// The number of mov instructions used. /// The number of interface slots used. /// Indicates whether support for double precision floating point numbers is required. -/// The feature level for the shader. +/// The minimum feature level for the shader. public sealed record D2D1ShaderInfo( string CompilerVersion, string HlslSource, @@ -55,4 +55,4 @@ public sealed record D2D1ShaderInfo( uint MovInstructionCount, uint InterfaceSlotCount, bool RequiresDoublePrecisionSupport, - D3DFeatureLevel FeatureLevel); \ No newline at end of file + D3DFeatureLevel MinimumFeatureLevel); \ No newline at end of file diff --git a/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs b/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs index 22af1854..fdafabd9 100644 --- a/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs +++ b/tests/ComputeSharp.D2D1.Tests/D2D1ReflectionServicesTests.cs @@ -16,7 +16,7 @@ public partial class D2D1ReflectionServicesTests Assert.AreEqual(10u, shaderInfo.BoundResourceCount); Assert.AreEqual(5u, shaderInfo.DeclarationCount); Assert.IsFalse(shaderInfo.RequiresDoublePrecisionSupport); - Assert.AreEqual(D3DFeatureLevel.FeatureLevel10_1, shaderInfo.FeatureLevel); + Assert.AreEqual(D3DFeatureLevel.FeatureLevel10_1, shaderInfo.MinimumFeatureLevel); Assert.IsNotNull(shaderInfo.CompilerVersion); Assert.AreEqual(""" // ================================================ @@ -95,7 +95,7 @@ public partial class D2D1ReflectionServicesTests Assert.AreEqual(1u, shaderInfo.ConstantBufferCount); Assert.AreEqual(2u, shaderInfo.DeclarationCount); Assert.IsTrue(shaderInfo.RequiresDoublePrecisionSupport); - Assert.AreEqual(D3DFeatureLevel.FeatureLevel11_0, shaderInfo.FeatureLevel); + Assert.AreEqual(D3DFeatureLevel.FeatureLevel11_0, shaderInfo.MinimumFeatureLevel); Assert.IsNotNull(shaderInfo.CompilerVersion); Assert.AreEqual(""" // ================================================