Merge pull request #665 from Sergio0694/dev/generator-tweaks

Fix XML docs in generated unsafe accessors
このコミットが含まれているのは:
Sergio Pedri authored and GitHub committed 2023-11-23 02:23:42 +01:00
コミット 0cfb4a68dd
2ファイル変更
+4 -4

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

@@ -284,7 +284,7 @@ partial class ConstantBufferSyntaxProcessor
{
writer.WriteLine($"""
/// <inheritdoc cref="{containingTypeName}.{pathPart.Name}"/>
/// <param name="shader">The input <see cref="{containingTypeName}"/> value.</param>
/// <param name="value">The input <see cref="{containingTypeName}"/> value.</param>
/// <returns>A mutable reference to <see cref="{containingTypeName}.{pathPart.Name}"/>.</returns>
[UnsafeAccessor(UnsafeAccessorKind.Field)]
private static extern ref {typeName} {pathPart.Name}(this ref readonly {containingTypeName} value);
@@ -294,7 +294,7 @@ partial class ConstantBufferSyntaxProcessor
{
writer.WriteLine($"""
/// <summary>Gets a reference to the unspeakable field "{pathPart.Name}" of type <see cref="{containingTypeName}"/>.</summary>
/// <param name="shader">The input <see cref="{containingTypeName}"/> value.</param>
/// <param name="value">The input <see cref="{containingTypeName}"/> value.</param>
/// <returns>A mutable reference to the unspeakable field "{pathPart.Name}".</returns>
[UnsafeAccessor(UnsafeAccessorKind.Field, Name = "{pathPart.UnspeakableName}")]
private static extern ref {typeName} {pathPart.Name}(this ref readonly {containingTypeName} value);
+2 -2
ファイルの表示
@@ -98,7 +98,7 @@ partial class ComputeShaderDescriptorGenerator
{
writer.WriteLine($"""
/// <inheritdoc cref="{fullyQualifiedTypeName}.{resourceInfo.FieldName}"/>
/// <param name="shader">The input <see cref="{fullyQualifiedTypeName}"/> value.</param>
/// <param name="value">The input <see cref="{fullyQualifiedTypeName}"/> value.</param>
/// <returns>A reference to <see cref="{fullyQualifiedTypeName}.{resourceInfo.FieldName}"/>.</returns>
[UnsafeAccessor(UnsafeAccessorKind.Field)]
private static extern ref readonly {resourceInfo.FieldType} {resourceInfo.FieldName}(this ref readonly {fullyQualifiedTypeName} value);
@@ -108,7 +108,7 @@ partial class ComputeShaderDescriptorGenerator
{
writer.WriteLine($"""
/// <summary>Gets a reference to the unspeakable field "{resourceInfo.FieldName}" of type <see cref="{fullyQualifiedTypeName}"/>.</summary>
/// <param name="shader">The input <see cref="{fullyQualifiedTypeName}"/> value.</param>
/// <param name="value">The input <see cref="{fullyQualifiedTypeName}"/> value.</param>
/// <returns>A reference to the unspeakable field "{resourceInfo.FieldName}".</returns>
[UnsafeAccessor(UnsafeAccessorKind.Field, Name = "{resourceInfo.UnspeakableName}")]
private static extern ref readonly {resourceInfo.FieldType} {resourceInfo.FieldName}(this ref readonly {fullyQualifiedTypeName} value);