Add double precision support check to DX12 generator

このコミットが含まれているのは:
Sergio Pedri committed 2023-12-17 12:18:41 +01:00
1 親 35bc8ce649
コミット 9bad2e99db
7ファイル変更
+39 -15

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

+6 -1
ファイルの表示
@@ -62,6 +62,11 @@ partial class ComputeShaderDescriptorGenerator
token.ThrowIfCancellationRequested();
// Check whether double precision operations are required
bool requiresDoublePrecisionSupport = DxcShaderCompiler.Instance.IsDoublePrecisionSupportRequired(dxcBlob.Get());
token.ThrowIfCancellationRequested();
byte* buffer = (byte*)dxcBlob.Get()->GetBufferPointer();
int length = checked((int)dxcBlob.Get()->GetBufferSize());
@@ -69,7 +74,7 @@ partial class ComputeShaderDescriptorGenerator
ImmutableArray<byte> bytecode = Unsafe.As<byte[], ImmutableArray<byte>>(ref array);
return new HlslBytecodeInfo.Success(bytecode);
return new HlslBytecodeInfo.Success(bytecode, requiresDoublePrecisionSupport);
}
catch (Win32Exception e)
{