Initial implementation of generator for shader methods

このコミットが含まれているのは:
Sergio Pedri committed 2022-08-18 14:26:09 +02:00
1 親 2fa5922c15
コミット 4e6f4f55d4
6ファイル変更
+351 -6

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

@@ -214,7 +214,7 @@ partial class ID2D1ShaderGenerator
/// </summary>
/// <param name="bytecode">The input shader bytecode to serialize.</param>
/// <returns>A formatted <see cref="string"/> with the serialized data.</returns>
private static string BuildShaderBytecodeExpressionString(ReadOnlySpan<byte> bytecode)
internal static string BuildShaderBytecodeExpressionString(ReadOnlySpan<byte> bytecode)
{
//The estimation is 4 characters per byte (up to "255" in hex), plus ", " to separate sequential values
using ArrayPoolStringBuilder builder = ArrayPoolStringBuilder.Create(bytecode.Length * 6);