Disable shader compilation if any errors are present
このコミットが含まれているのは:
1 親
5390d8b27c
コミット
fd9d8a6f65
5ファイル変更
+18
-5
検索条件に一致するファイルはありません
@@ -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),
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする