Initial implementation of generator for shader methods
このコミットが含まれているのは:
1 親
2fa5922c15
コミット
4e6f4f55d4
6ファイル変更
+351
-6
検索条件に一致するファイルはありません
+3
-5
@@ -11,8 +11,6 @@ using ComputeSharp.D2D1.SourceGenerators.Models;
|
||||
using ComputeSharp.SourceGeneration.Extensions;
|
||||
using ComputeSharp.SourceGeneration.Models;
|
||||
using Microsoft.CodeAnalysis;
|
||||
using Microsoft.CodeAnalysis.CSharp;
|
||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
using TerraFX.Interop.DirectX;
|
||||
using TerraFX.Interop.Windows;
|
||||
using static ComputeSharp.SourceGeneration.Diagnostics.DiagnosticDescriptors;
|
||||
@@ -25,7 +23,7 @@ partial class ID2D1ShaderGenerator
|
||||
/// <summary>
|
||||
/// A helper with all logic to generate the <c>LoadBytecode</c> method.
|
||||
/// </summary>
|
||||
private static partial class LoadBytecode
|
||||
internal static partial class LoadBytecode
|
||||
{
|
||||
/// <summary>
|
||||
/// Extracts the shader profile for the current shader.
|
||||
@@ -142,7 +140,7 @@ partial class ID2D1ShaderGenerator
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a <see cref="BlockSyntax"/> instance with the logic to try to get a compiled shader bytecode.
|
||||
/// Gets an <see cref="ImmutableArray{T}"/> instance with the compiled bytecode for the current shader.
|
||||
/// </summary>
|
||||
/// <param name="sourceInfo">The source info for the shader to compile.</param>
|
||||
/// <param name="token">The <see cref="CancellationToken"/> used to cancel the operation, if needed.</param>
|
||||
@@ -212,7 +210,7 @@ partial class ID2D1ShaderGenerator
|
||||
/// </summary>
|
||||
/// <param name="message">The input exception message.</param>
|
||||
/// <returns>The updated exception message.</returns>
|
||||
private static string FixupExceptionMessage(string message)
|
||||
internal static string FixupExceptionMessage(string message)
|
||||
{
|
||||
// Add square brackets around error headers
|
||||
message = Regex.Replace(message, @"((?:error|warning) \w+):", static m => $"[{m.Groups[1].Value}]:");
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする