Removed unnecessary shader method attributes

このコミットが含まれているのは:
Sergio Pedri committed 2019-08-11 14:24:09 +02:00
1 親 0957d6eaa3
コミット 5899b4769b
2ファイル変更
+3 -28

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

+3 -4
ファイルの表示
@@ -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)
-24
ファイルの表示
@@ -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; }
}
}