Disable shader compilation if any errors are present

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-24 21:04:30 +02:00
1 親 5390d8b27c
コミット fd9d8a6f65
5ファイル変更
+18 -5

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

+7
ファイルの表示
@@ -119,6 +119,13 @@ public sealed partial class IShaderGenerator : IIncrementalGenerator
token.ThrowIfCancellationRequested();
// Ensure the bytecode generation is disabled if any errors are present
if (!dispatchDataDiagnostics.IsDefaultOrEmpty ||
!hlslSourceDiagnostics.IsDefaultOrEmpty)
{
threadIds = new ThreadIdsInfo(true, 0, 0, 0);
}
return (
new Result<DispatchDataInfo>(dispatchDataInfo, dispatchDataDiagnostics),
new Result<HlslShaderSourceInfo>(hlslSourceInfo, hlslSourceDiagnostics),
+1 -1
ファイルの表示
@@ -3,7 +3,7 @@
/// <summary>
/// A model representing gathered info on a embedded thread ids.
/// </summary>
/// <param name="IsDefault">Whether the values are diascarded.</param>
/// <param name="IsDefault">Whether the values are discarded.</param>
/// <param name="X">The thread ids value for the X axis.</param>
/// <param name="Y">The thread ids value for the Y axis.</param>
/// <param name="Z">The thread ids value for the Z axis.</param>