Add D2D1PixelShader.GetResourceTextureCount<T>() and tests
このコミットが含まれているのは:
1 親
ba732ac96a
コミット
a873fafdd4
2ファイル変更
+50
検索条件に一致するファイルはありません
@@ -295,6 +295,19 @@ public static class D2D1PixelShader
|
||||
return shader.InputCount;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the number of resource textures for a D2D1 pixel shader.
|
||||
/// </summary>
|
||||
/// <typeparam name="T">The type of D2D1 pixel shader to get the resource texture count for.</typeparam>
|
||||
/// <returns>The number of resource texture for the D2D1 pixel shader of type <typeparamref name="T"/>.</returns>
|
||||
public static int GetResourceTextureCount<T>()
|
||||
where T : unmanaged, ID2D1PixelShader
|
||||
{
|
||||
Unsafe.SkipInit(out T shader);
|
||||
|
||||
return shader.ResourceTextureCount;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the input types for a D2D1 pixel shader.
|
||||
/// </summary>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする