Remove Type.GetCustomAttributes use from PixelShaderEffect
このコミットが含まれているのは:
1 親
b156b3c98a
コミット
d220c2eeb1
1ファイル変更
+1
-1
@@ -89,7 +89,7 @@ internal unsafe partial struct PixelShaderEffect
|
||||
{
|
||||
// Load all shader properties
|
||||
Guid guid = typeof(T).GUID;
|
||||
int inputCount = ((D2DInputCountAttribute[])typeof(T).GetCustomAttributes(typeof(D2DInputCountAttribute), false))[0].Count;
|
||||
int inputCount = (int)D2D1InteropServices.GetPixelShaderInputCount<T>();
|
||||
ReadOnlyMemory<byte> buffer = D2D1InteropServices.LoadShaderBytecode<T>();
|
||||
byte* typeAssociatedMemory = (byte*)RuntimeHelpers.AllocateTypeAssociatedMemory(typeof(For<T>), buffer.Length);
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする