Add double support requirement to reflection info

このコミットが含まれているのは:
Sergio Pedri committed 2021-12-07 16:57:50 +01:00
1 親 0af525f2d0
コミット a1b606741f
5ファイル変更
+36

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

+1
ファイルの表示
@@ -168,6 +168,7 @@ public static class ReflectionServices
Unsafe.AsRef(shaderInfo.MovcInstructionCount) = d3D12ShaderReflection.Get()->GetMovcInstructionCount();
Unsafe.AsRef(shaderInfo.MovInstructionCount) = d3D12ShaderReflection.Get()->GetMovInstructionCount();
Unsafe.AsRef(shaderInfo.InterfaceSlotCount) = d3D12ShaderReflection.Get()->GetNumInterfaceSlots();
Unsafe.AsRef(shaderInfo.RequiresDoublePrecisionSupport) = (d3D12ShaderReflection.Get()->GetRequiresFlags() & (D3D.D3D_SHADER_REQUIRES_DOUBLES | D3D.D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS)) != 0;
#endif
}
}
+5
ファイルの表示
@@ -124,4 +124,9 @@ public readonly struct ShaderInfo
/// The number of interface slots used.
/// </summary>
public readonly uint InterfaceSlotCount;
/// <summary>
/// Indicates whether support for double precision floating point numbers is required.
/// </summary>
public readonly bool RequiresDoublePrecisionSupport;
}
+16
ファイルの表示
@@ -0,0 +1,16 @@
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
// Ported from um/d3d11shader.h in the Windows SDK for Windows 10.0.20348.0
// Original source is Copyright © Microsoft. All rights reserved.
namespace TerraFX.Interop.DirectX
{
public static partial class D3D
{
[NativeTypeName("#define D3D_SHADER_REQUIRES_DOUBLES 0x00000001")]
public const int D3D_SHADER_REQUIRES_DOUBLES = 0x00000001;
[NativeTypeName("#define D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS 0x00000020")]
public const int D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS = 0x00000020;
}
}
+1
ファイルの表示
@@ -53,6 +53,7 @@
<Compile Include="$(MSBuildThisFileDirectory)DirectX\shared\dxgi\IDXGIOutput.cs" />
<Compile Include="$(MSBuildThisFileDirectory)DirectX\shared\dxgi\IDXGISwapChain.cs" />
<Compile Include="$(MSBuildThisFileDirectory)DirectX\um\d2d1\D2D1_FEATURE_LEVEL.cs" />
<Compile Include="$(MSBuildThisFileDirectory)DirectX\um\d3d11shader\D3D.cs" />
<Compile Include="$(MSBuildThisFileDirectory)DirectX\um\d3d11\D3D11.cs" />
<Compile Include="$(MSBuildThisFileDirectory)DirectX\um\d3d12sdklayers\D3D12_INFO_QUEUE_FILTER.cs" />
<Compile Include="$(MSBuildThisFileDirectory)DirectX\um\d3d12sdklayers\D3D12_INFO_QUEUE_FILTER_DESC.cs" />