Make ID2D1Shader.GetInputType branchless
このコミットが含まれているのは:
1 親
e7c4288adf
コミット
245c308ad1
5ファイル変更
+29
-29
検索条件に一致するファイルはありません
@@ -110,7 +110,7 @@ public static unsafe class D2D1InteropServices
|
||||
ThrowHelper.ThrowArgumentOutOfRangeException(nameof(index), "The input index is outside of range for the target pixel shader type.");
|
||||
}
|
||||
|
||||
return (D2D1PixelShaderInputType)shader.GetInputType((byte)index);
|
||||
return (D2D1PixelShaderInputType)shader.GetInputType(index);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/// <summary>
|
||||
/// Indicates the type of a given input for a D2D1 pixel shader.
|
||||
/// </summary>
|
||||
public enum D2D1PixelShaderInputType : byte
|
||||
public enum D2D1PixelShaderInputType
|
||||
{
|
||||
/// <summary>
|
||||
/// The input is of simple type.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする