Fixed root signature initialization with root constant count
このコミットが含まれているのは:
1 親
1ed6a49210
コミット
47a5101d77
8ファイル変更
+78
-11
検索条件に一致するファイルはありません
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace ComputeSharp.__Internals
|
||||
{
|
||||
/// <summary>
|
||||
/// An attribute that contains info on the number of 32 bit constants for a given shader.
|
||||
/// </summary>
|
||||
/// <remarks>This attribute is not meant to be directly used by applications using ComputeSharp.</remarks>
|
||||
[AttributeUsage(AttributeTargets.ReturnValue, AllowMultiple = false)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[Obsolete("This attribute is not intended to be used directly by user code")]
|
||||
public sealed class ComputeRoot32BitConstantsAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ComputeRoot32BitConstantsAttribute"/> instance with the specified parameters.
|
||||
/// </summary>
|
||||
/// <param name="count">The number of 32 bit constants for the annotated method.</param>
|
||||
public ComputeRoot32BitConstantsAttribute(int count)
|
||||
{
|
||||
Count = count;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of 32 bit constants for the annotated method.
|
||||
/// </summary>
|
||||
internal int Count { get; }
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,7 @@ namespace ComputeSharp.__Internals
|
||||
/// <param name="executeMethod">The source code for the <see cref="IComputeShader.Execute"/> method.</param>
|
||||
/// <param name="methods">The collection of processed methods.</param>
|
||||
/// <param name="constants">The collection of discovered constants.</param>
|
||||
/// <param name="sharedBuffers">The collection of group shared buffers</param>
|
||||
/// <param name="sharedBuffers">The collection of group shared buffers.</param>
|
||||
public IComputeShaderSourceAttribute(
|
||||
string shaderTypeName,
|
||||
string[] types,
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする