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

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

+1
ファイルの表示
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<DefineConstants>$(DefineConstants);D2D1_GENERATOR</DefineConstants>
</PropertyGroup>
<PropertyGroup>
@@ -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)
{
+4
ファイルの表示
@@ -1,4 +1,5 @@
D3DCompile
D3DReflect
D3DSetBlobPart
D3DStripShader
D2D1_BUFFER_PRECISION
@@ -21,6 +22,9 @@ D3DCOMPILE_OPTIMIZATION_LEVEL2
D3DCOMPILE_OPTIMIZATION_LEVEL3
D3DCOMPILE_WARNINGS_ARE_ERRORS
D3DCOMPILER_STRIP_FLAGS
D3D_SHADER_REQUIRES_DOUBLES
D3D_SHADER_REQUIRES_11_1_DOUBLE_EXTENSIONS
ID3D11ShaderReflection
IUnknown
S_OK
S_FALSE