Add check for double precision in D2D1 generator

このコミットが含まれているのは:
Sergio Pedri committed 2023-12-16 17:34:20 +01:00
1 親 034eeb3610
コミット f16dcab8fd
8ファイル変更
+92 -5

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

+11 -1
ファイルの表示
@@ -11,7 +11,17 @@ internal abstract record HlslBytecodeInfo
/// A successfully compiled HLSL shader.
/// </summary>
/// <param name="Bytecode">The resulting HLSL bytecode.</param>
public sealed record Success(EquatableArray<byte> Bytecode) : HlslBytecodeInfo;
public sealed record Success(
#if D3D12_GENERATOR
EquatableArray<byte> Bytecode)
#else
#pragma warning disable CS1573
EquatableArray<byte> Bytecode,
bool RequiresDoublePrecisionSupport) // Whether the shader requires support for double precision operations.
#pragma warning restore CS1573
#endif
: HlslBytecodeInfo;
/// <summary>
/// An HLSL shader that failed to compile due to a Win32 error.