Disable shader compilation if any errors are present
このコミットが含まれているのは:
1 親
5390d8b27c
コミット
fd9d8a6f65
5ファイル変更
+18
-5
検索条件に一致するファイルはありません
@@ -78,11 +78,13 @@ public sealed partial class ID2D1ShaderGenerator : IIncrementalGenerator
|
||||
// Get the shader profile and linking info for LoadBytecode()
|
||||
D2D1ShaderProfile? shaderProfile = LoadBytecode.GetShaderProfile(item.Left.Symbol);
|
||||
bool isLinkingSupported = LoadBytecode.IsSimpleInputShader(item.Left.Symbol);
|
||||
bool hasErrors = !dispatchDataDiagnostics.IsDefaultOrEmpty || !hlslSourceDiagnostics.IsDefaultOrEmpty;
|
||||
|
||||
HlslShaderSourceInfo sourceInfo = new(
|
||||
hlslSource,
|
||||
shaderProfile,
|
||||
isLinkingSupported);
|
||||
isLinkingSupported,
|
||||
hasErrors);
|
||||
|
||||
token.ThrowIfCancellationRequested();
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする