Removed unnecessary shader method attributes
このコミットが含まれているのは:
1 親
0957d6eaa3
コミット
5899b4769b
2ファイル変更
+3
-28
検索条件に一致するファイルはありません
@@ -200,7 +200,7 @@ namespace DirectX12GameEngine.Shaders
|
||||
|
||||
if (memberInfo is MethodInfo methodInfo)
|
||||
{
|
||||
if (type.IsInterface || resourceType is ShaderMethodAttribute)
|
||||
if (type.IsInterface)
|
||||
{
|
||||
CollectMethod(methodInfo);
|
||||
}
|
||||
@@ -269,7 +269,7 @@ namespace DirectX12GameEngine.Shaders
|
||||
|
||||
if (memberInfo is MethodInfo methodInfo)
|
||||
{
|
||||
if (type.IsInterface || resourceType is ShaderMethodAttribute)
|
||||
if (type.IsInterface)
|
||||
{
|
||||
WriteMethod(methodInfo);
|
||||
}
|
||||
@@ -576,8 +576,7 @@ namespace DirectX12GameEngine.Shaders
|
||||
{
|
||||
private static readonly HashSet<string> allowedAttributes = new HashSet<string>()
|
||||
{
|
||||
typeof(NumThreadsAttribute).FullName,
|
||||
typeof(ShaderAttribute).FullName
|
||||
typeof(NumThreadsAttribute).FullName
|
||||
};
|
||||
|
||||
public static bool Contains(string name)
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
using System;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace DirectX12GameEngine.Shaders
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
public class ShaderMethodAttribute : ShaderResourceAttribute
|
||||
{
|
||||
public ShaderMethodAttribute([CallerLineNumber] int order = 0) : base(order)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
||||
public class ShaderAttribute : Attribute
|
||||
{
|
||||
public ShaderAttribute(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public string Name { get; }
|
||||
}
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする