Added missing dots
このコミットが含まれているのは:
1 親
e45b712000
コミット
33870886b6
51ファイル変更
+5686
-5686
検索条件に一致するファイルはありません
@@ -12,18 +12,18 @@ using static TerraFX.Interop.D3D12_COMMAND_LIST_TYPE;
|
||||
namespace ComputeSharp.Graphics.Buffers.Abstract
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> representing a typed structured buffer stored on GPU memory
|
||||
/// A <see langword="class"/> representing a typed structured buffer stored on GPU memory.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of items stored on the buffer</typeparam>
|
||||
/// <typeparam name="T">The type of items stored on the buffer.</typeparam>
|
||||
public abstract class StructuredBuffer<T> : Buffer<T>
|
||||
where T : unmanaged
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="StructuredBuffer{T}"/> instance with the specified parameters
|
||||
/// Creates a new <see cref="StructuredBuffer{T}"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance</param>
|
||||
/// <param name="length">The number of items to store in the current buffer</param>
|
||||
/// <param name="bufferType">The buffer type for the current buffer</param>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance.</param>
|
||||
/// <param name="length">The number of items to store in the current buffer.</param>
|
||||
/// <param name="bufferType">The buffer type for the current buffer.</param>
|
||||
internal StructuredBuffer(GraphicsDevice device, int length, BufferType bufferType)
|
||||
: base(device, length, (uint)Unsafe.SizeOf<T>(), bufferType)
|
||||
{
|
||||
|
||||
@@ -18,33 +18,33 @@ using static TerraFX.Interop.D3D12_COMMAND_LIST_TYPE;
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> representing a typed read write buffer stored on GPU memory
|
||||
/// A <see langword="class"/> representing a typed read write buffer stored on GPU memory.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of items stored on the buffer</typeparam>
|
||||
/// <typeparam name="T">The type of items stored on the buffer.</typeparam>
|
||||
[DebuggerTypeProxy(typeof(BufferDebugView<>))]
|
||||
[DebuggerDisplay("{ToString(),raw}")]
|
||||
public sealed class ConstantBuffer<T> : Buffer<T>
|
||||
where T : unmanaged
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ConstantBuffer{T}"/> instance with the specified parameters
|
||||
/// Creates a new <see cref="ConstantBuffer{T}"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance</param>
|
||||
/// <param name="length">The number of items to store in the current buffer</param>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance.</param>
|
||||
/// <param name="length">The number of items to store in the current buffer.</param>
|
||||
internal ConstantBuffer(GraphicsDevice device, int length)
|
||||
: base(device, length, (uint)GetPaddedSize(), BufferType.Constant)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single <typeparamref name="T"/> value from the current constant buffer
|
||||
/// Gets a single <typeparamref name="T"/> value from the current constant buffer.
|
||||
/// </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>
|
||||
/// <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]");
|
||||
|
||||
/// <summary>
|
||||
/// Gets the right padded size for <typeparamref name="T"/> elements to store in the current instance
|
||||
/// Gets the right padded size for <typeparamref name="T"/> elements to store in the current instance.
|
||||
/// </summary>
|
||||
[Pure]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
|
||||
@@ -8,29 +8,29 @@ using ComputeSharp.Graphics.Buffers.Views;
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> representing a typed readonly buffer stored on GPU memory
|
||||
/// A <see langword="class"/> representing a typed readonly buffer stored on GPU memory.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of items stored on the buffer</typeparam>
|
||||
/// <typeparam name="T">The type of items stored on the buffer.</typeparam>
|
||||
[DebuggerTypeProxy(typeof(BufferDebugView<>))]
|
||||
[DebuggerDisplay("{ToString(),raw}")]
|
||||
public sealed class ReadOnlyBuffer<T> : StructuredBuffer<T>
|
||||
where T : unmanaged
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ReadOnlyBuffer{T}"/> instance with the specified parameters
|
||||
/// Creates a new <see cref="ReadOnlyBuffer{T}"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance</param>
|
||||
/// <param name="length">The number of items to store in the current buffer</param>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance.</param>
|
||||
/// <param name="length">The number of items to store in the current buffer.</param>
|
||||
internal ReadOnlyBuffer(GraphicsDevice device, int length)
|
||||
: base(device, length, BufferType.ReadOnly)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a single <typeparamref name="T"/> value from the current read write buffer
|
||||
/// Gets a single <typeparamref name="T"/> value from the current read write buffer.
|
||||
/// </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>
|
||||
/// <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]");
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
@@ -8,29 +8,29 @@ using ComputeSharp.Graphics.Buffers.Views;
|
||||
namespace ComputeSharp
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> representing a typed read write buffer stored on GPU memory
|
||||
/// A <see langword="class"/> representing a typed read write buffer stored on GPU memory.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of items stored on the buffer</typeparam>
|
||||
/// <typeparam name="T">The type of items stored on the buffer.</typeparam>
|
||||
[DebuggerTypeProxy(typeof(BufferDebugView<>))]
|
||||
[DebuggerDisplay("{ToString(),raw}")]
|
||||
public sealed class ReadWriteBuffer<T> : StructuredBuffer<T>
|
||||
where T : unmanaged
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ReadWriteBuffer{T}"/> instance with the specified parameters
|
||||
/// Creates a new <see cref="ReadWriteBuffer{T}"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance</param>
|
||||
/// <param name="length">The number of items to store in the current buffer</param>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> associated with the current instance.</param>
|
||||
/// <param name="length">The number of items to store in the current buffer.</param>
|
||||
internal ReadWriteBuffer(GraphicsDevice device, int length)
|
||||
: base(device, length, BufferType.ReadWrite)
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a single <typeparamref name="T"/> value from the current read write buffer
|
||||
/// Gets or sets a single <typeparamref name="T"/> value from the current read write buffer.
|
||||
/// </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>
|
||||
/// <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]");
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace ComputeSharp.Graphics.Buffers.Views
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the items to display for the current instance
|
||||
/// Gets the items to display for the current instance.
|
||||
/// </summary>
|
||||
[DebuggerBrowsable(DebuggerBrowsableState.Collapsed)]
|
||||
public T[]? Items { get; }
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace ComputeSharp.Graphics
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ID3D12DescriptorHandleAllocator"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="device">The <see cref="ID3D12Device"/> instance to use</param>
|
||||
/// <param name="device">The <see cref="ID3D12Device"/> instance to use.</param>
|
||||
public ID3D12DescriptorHandleAllocator(ID3D12Device* device)
|
||||
{
|
||||
this.d3D12DescriptorHeap = device->CreateDescriptorHeap(DescriptorsPerHeap);
|
||||
@@ -65,7 +65,7 @@ namespace ComputeSharp.Graphics
|
||||
public ID3D12DescriptorHeap* D3D12DescriptorHeap => this.d3D12DescriptorHeap;
|
||||
|
||||
/// <summary>
|
||||
/// Allocates a new CPU and GPU handle pair to use in a memory buffer
|
||||
/// Allocates a new CPU and GPU handle pair to use in a memory buffer.
|
||||
/// </summary>
|
||||
/// <param name="d3d12CpuDescriptorHandle">The resulting <see cref="D3D12_CPU_DESCRIPTOR_HANDLE"/> value.</param>
|
||||
/// <param name="d3d12CpuDescriptorHandle">The resulting <see cref="D3D12_GPU_DESCRIPTOR_HANDLE"/> value.</param>
|
||||
|
||||
@@ -19,11 +19,11 @@ namespace ComputeSharp.Graphics.Commands
|
||||
private ComPtr<ID3D12PipelineState> d3D12PipelineState;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="PipelineState"/> instance with the specified parameters
|
||||
/// Creates a new <see cref="PipelineState"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> to use</param>
|
||||
/// <param name="rootSignature">The <see cref="ID3D12RootSignature"/> value for the current shader</param>
|
||||
/// <param name="computeShader">The bytecode for the compute shader to run</param>
|
||||
/// <param name="device">The <see cref="GraphicsDevice"/> to use.</param>
|
||||
/// <param name="rootSignature">The <see cref="ID3D12RootSignature"/> value for the current shader.</param>
|
||||
/// <param name="computeShader">The bytecode for the compute shader to run.</param>
|
||||
public PipelineData(ComPtr<ID3D12RootSignature> d3D12RootSignature, ComPtr<ID3D12PipelineState> d3D12PipelineState)
|
||||
{
|
||||
this.d3D12RootSignature = d3D12RootSignature;
|
||||
|
||||
@@ -6,12 +6,12 @@ using System.Linq;
|
||||
namespace ComputeSharp.Graphics.Extensions
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="class"/> that provides extension methods for the <see cref="Type"/> type
|
||||
/// A <see langword="class"/> that provides extension methods for the <see cref="Type"/> type.
|
||||
/// </summary>
|
||||
internal static class TypeExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// The mapping of supported known types to display string
|
||||
/// The mapping of supported known types to display string.
|
||||
/// </summary>
|
||||
private static readonly IReadOnlyDictionary<Type, string> KnownTypes = new Dictionary<Type, string>
|
||||
{
|
||||
@@ -23,9 +23,9 @@ namespace ComputeSharp.Graphics.Extensions
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Gets a friendly display <see langword="string"/> for the input type
|
||||
/// Gets a friendly display <see langword="string"/> for the input type.
|
||||
/// </summary>
|
||||
/// <param name="type">The input type to analyze</param>
|
||||
/// <param name="type">The input type to analyze.</param>
|
||||
[Pure]
|
||||
public static string ToFriendlyString(this Type type)
|
||||
{
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする