Added missing dots
このコミットが含まれているのは:
1 親
e45b712000
コミット
33870886b6
51ファイル変更
+5686
-5686
検索条件に一致するファイルはありません
@@ -4,37 +4,37 @@ using System.Runtime.CompilerServices;
|
||||
namespace ComputeSharp.Shaders.Translation.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="struct"/> representing a key for a given shader
|
||||
/// A <see langword="struct"/> representing a key for a given shader.
|
||||
/// </summary>
|
||||
internal readonly struct ShaderKey : IEquatable<ShaderKey>
|
||||
{
|
||||
/// <summary>
|
||||
/// The hashcode of the current shader type
|
||||
/// The hashcode of the current shader type.
|
||||
/// </summary>
|
||||
private readonly int Id;
|
||||
|
||||
/// <summary>
|
||||
/// The number of iterations to run on the X axis
|
||||
/// The number of iterations to run on the X axis.
|
||||
/// </summary>
|
||||
private readonly int ThreadsX;
|
||||
|
||||
/// <summary>
|
||||
/// The number of iterations to run on the Y axis
|
||||
/// The number of iterations to run on the Y axis.
|
||||
/// </summary>
|
||||
private readonly int ThreadsY;
|
||||
|
||||
/// <summary>
|
||||
/// The number of iterations to run on the Z axis
|
||||
/// The number of iterations to run on the Z axis.
|
||||
/// </summary>
|
||||
private readonly int ThreadsZ;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ShaderKey"/> instance with the specified parameters
|
||||
/// Creates a new <see cref="ShaderKey"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="id">The hashcode of the current shader type</param>
|
||||
/// <param name="threadsX">The number of iterations to run on the X axis</param>
|
||||
/// <param name="threadsY">The number of iterations to run on the Y axis</param>
|
||||
/// <param name="threadsZ">The number of iterations to run on the Z axis</param>
|
||||
/// <param name="id">The hashcode of the current shader type.</param>
|
||||
/// <param name="threadsX">The number of iterations to run on the X axis.</param>
|
||||
/// <param name="threadsY">The number of iterations to run on the Y axis.</param>
|
||||
/// <param name="threadsZ">The number of iterations to run on the Z axis.</param>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public ShaderKey(int id, int threadsX, int threadsY, int threadsZ)
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace ComputeSharp.Shaders.Translation
|
||||
private static readonly ComPtr<IDxcIncludeHandler> DxcIncludeHandler;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes <see cref="DxcCompiler"/>, <see cref="DxcLibrary"/> and <see cref="DxcIncludeHandler"/>
|
||||
/// Initializes <see cref="DxcCompiler"/>, <see cref="DxcLibrary"/> and <see cref="DxcIncludeHandler"/>.
|
||||
/// </summary>
|
||||
static ShaderCompiler()
|
||||
{
|
||||
|
||||
@@ -10,29 +10,29 @@ using ComputeSharp.Shaders.Extensions;
|
||||
namespace ComputeSharp.Shaders.Translation
|
||||
{
|
||||
/// <summary>
|
||||
/// A <see langword="static"/> <see langword="class"/> that handles the cache system for the generated shaders
|
||||
/// A <see langword="static"/> <see langword="class"/> that handles the cache system for the generated shaders.
|
||||
/// </summary>
|
||||
internal static class ShaderHashCodeProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// A type containing static info for a given shader type <typeparamref name="T"/>
|
||||
/// A type containing static info for a given shader type <typeparamref name="T"/>.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of compute shader currently in use</typeparam>
|
||||
/// <typeparam name="T">The type of compute shader currently in use.</typeparam>
|
||||
private static class TypeInfo<T>
|
||||
where T : struct, IComputeShader
|
||||
{
|
||||
/// <summary>
|
||||
/// The id of the compute shader type in use
|
||||
/// The id of the compute shader type in use.
|
||||
/// </summary>
|
||||
public static readonly int Id;
|
||||
|
||||
/// <summary>
|
||||
/// The optional <see cref="Hasher{T}"/> instance, if needed
|
||||
/// The optional <see cref="Hasher{T}"/> instance, if needed.
|
||||
/// </summary>
|
||||
public static readonly Hasher<T>? Hasher;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the static members of the <see cref="TypeInfo{T}"/> type
|
||||
/// Initializes the static members of the <see cref="TypeInfo{T}"/> type.
|
||||
/// </summary>
|
||||
static TypeInfo()
|
||||
{
|
||||
@@ -53,10 +53,10 @@ namespace ComputeSharp.Shaders.Translation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a unique hashcode for the input compute shader instance
|
||||
/// Gets a unique hashcode for the input compute shader instance.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of compute shader currently in use</typeparam>
|
||||
/// <param name="shader">The input <typeparamref name="T"/> instance representing the shader to run</param>
|
||||
/// <typeparam name="T">The type of compute shader currently in use.</typeparam>
|
||||
/// <param name="shader">The input <typeparamref name="T"/> instance representing the shader to run.</param>
|
||||
[Pure]
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static int GetHashCode<T>(in T shader)
|
||||
@@ -72,20 +72,20 @@ namespace ComputeSharp.Shaders.Translation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A <see langword="delegate"/> that represents an aggregate hash function for a given <typeparamref name="T"/> instance
|
||||
/// A <see langword="delegate"/> that represents an aggregate hash function for a given <typeparamref name="T"/> instance.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of compute shader currently in use</typeparam>
|
||||
/// <param name="hash">The initial hash value</param>
|
||||
/// <param name="shader">The compute shader instance to use to compute the final hash value</param>
|
||||
/// <returns>The final hash value for the input closure</returns>
|
||||
/// <typeparam name="T">The type of compute shader currently in use.</typeparam>
|
||||
/// <param name="hash">The initial hash value.</param>
|
||||
/// <param name="shader">The compute shader instance to use to compute the final hash value.</param>
|
||||
/// <returns>The final hash value for the input closure.</returns>
|
||||
private delegate int Hasher<T>(int hash, in T shader)
|
||||
where T : struct, IComputeShader;
|
||||
|
||||
/// <summary>
|
||||
/// Builds a new <see cref="Hasher{T}"/> instance for the target <see cref="Type"/> and sequence of <see cref="FieldInfo"/> values
|
||||
/// Builds a new <see cref="Hasher{T}"/> instance for the target <see cref="Type"/> and sequence of <see cref="FieldInfo"/> values.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of compute shader currently in use</typeparam>
|
||||
/// <param name="fieldInfos">The list of captured fields to inspect</param>
|
||||
/// <typeparam name="T">The type of compute shader currently in use.</typeparam>
|
||||
/// <param name="fieldInfos">The list of captured fields to inspect.</param>
|
||||
[Pure]
|
||||
private static Hasher<T> BuildDynamicHasher<T>(IReadOnlyCollection<FieldInfo> fieldInfos)
|
||||
where T : struct, IComputeShader
|
||||
|
||||
@@ -97,10 +97,10 @@ namespace ComputeSharp.Shaders.Translation
|
||||
public IReadOnlyCollection<string> DeclaredTypes => this.declaredTypes;
|
||||
|
||||
/// <summary>
|
||||
/// Loads and processes an input<typeparamref name="T"/> shadeer
|
||||
/// Loads and processes an input<typeparamref name="T"/> shadeer.
|
||||
/// </summary>
|
||||
/// <param name="shader">The <typeparamref name="T"/> instance to use to build the shader</param>
|
||||
/// <returns>A new <see cref="ShaderLoader"/> instance representing the input shader</returns>
|
||||
/// <param name="shader">The <typeparamref name="T"/> instance to use to build the shader.</param>
|
||||
/// <returns>A new <see cref="ShaderLoader"/> instance representing the input shader.</returns>
|
||||
[Pure]
|
||||
public static ShaderLoader<T> Load(in T shader)
|
||||
{
|
||||
@@ -119,9 +119,9 @@ namespace ComputeSharp.Shaders.Translation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads the fields info for the current shader being loaded
|
||||
/// Loads the fields info for the current shader being loaded.
|
||||
/// </summary>
|
||||
/// <param name="shader">The boxed <typeparamref name="T"/> instance to use to build the shader</param>
|
||||
/// <param name="shader">The boxed <typeparamref name="T"/> instance to use to build the shader.</param>
|
||||
private void LoadFieldsInfo(object shader)
|
||||
{
|
||||
IReadOnlyList<FieldInfo> shaderFields = typeof(T).GetFields(
|
||||
@@ -147,10 +147,10 @@ namespace ComputeSharp.Shaders.Translation
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Loads a specified <see cref="ReadableMember"/> and adds it to the shader model
|
||||
/// Loads a specified <see cref="ReadableMember"/> and adds it to the shader model.
|
||||
/// </summary>
|
||||
/// <param name="shader">The boxed <typeparamref name="T"/> instance to use to build the shader</param>
|
||||
/// <param name="memberInfo">The target <see cref="FieldInfo"/> to load</param>
|
||||
/// <param name="shader">The boxed <typeparamref name="T"/> instance to use to build the shader.</param>
|
||||
/// <param name="memberInfo">The target <see cref="FieldInfo"/> to load.</param>
|
||||
private void LoadFieldInfo(object shader, FieldInfo fieldInfo)
|
||||
{
|
||||
Type fieldType = fieldInfo.FieldType;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする