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

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

@@ -205,7 +205,8 @@ partial class D2DPixelShaderDescriptorGenerator
using ComPtr<ID3DBlob> dxcBlobBytecode = D3DCompiler.Compile(
key.HlslSource.AsSpan(),
key.ShaderProfile,
key.CompileOptions);
key.CompileOptions,
out bool requiresDoublePrecisionSupport);
token.ThrowIfCancellationRequested();
@@ -216,7 +217,7 @@ partial class D2DPixelShaderDescriptorGenerator
ImmutableArray<byte> bytecode = Unsafe.As<byte[], ImmutableArray<byte>>(ref array);
return new HlslBytecodeInfo.Success(bytecode);
return new HlslBytecodeInfo.Success(bytecode, requiresDoublePrecisionSupport);
}
catch (Win32Exception e)
{