Tweaked some error messages

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-25 23:00:25 +02:00
1 親 d9ef5c9742
コミット bbb7d3cd6e
3ファイル変更
+3 -3

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

+1 -1
ファイルの表示
@@ -39,7 +39,7 @@ namespace ComputeSharp.Graphics.Buffers
/// </summary>
/// <param name="i">The index of the value to get</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else</remarks>
public T this[int i] => throw new InvalidExecutionContextException($"{nameof(ConstantBuffer<T>)}<T>[int i]");
public T this[int i] => throw new InvalidExecutionContextException($"{nameof(ConstantBuffer<T>)}<T>[int]");
/// <inheritdoc/>
public override void GetData(Span<T> span, int offset, int count)
+1 -1
ファイルの表示
@@ -22,6 +22,6 @@ namespace ComputeSharp.Graphics.Buffers
/// </summary>
/// <param name="i">The index of the value to get</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else</remarks>
public T this[int i] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyBuffer<T>)}<T>[int i]");
public T this[int i] => throw new InvalidExecutionContextException($"{nameof(ReadOnlyBuffer<T>)}<T>[int]");
}
}
+1 -1
ファイルの表示
@@ -22,6 +22,6 @@ namespace ComputeSharp.Graphics.Buffers
/// </summary>
/// <param name="i">The index of the value to get or set</param>
/// <remarks>This API can only be used from a compute shader, and will always throw if used anywhere else</remarks>
public ref T this[int i] => throw new InvalidExecutionContextException($"{nameof(ReadWriteBuffer<T>)}<T>[int i]");
public ref T this[int i] => throw new InvalidExecutionContextException($"{nameof(ReadWriteBuffer<T>)}<T>[int]");
}
}