Add ability to create shader panels for target devices

このコミットが含まれているのは:
Sergio Pedri committed 2022-07-31 23:26:14 +02:00
1 親 a86775f550
コミット b0709526ef
3ファイル変更
+25 -6

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

+3 -2
ファイルの表示
@@ -231,10 +231,11 @@ internal sealed unsafe partial class SwapChainManager<TOwner> : NativeObject
/// Initializes a new instance of the <see cref="SwapChainManager{TOwner}"/> type.
/// </summary>
/// <param name="owner">The input swap chain instance being used.</param>
public SwapChainManager(TOwner owner)
/// <param name="device">The <see cref="GraphicsDevice"/> instance to use to render frames.</param>
public SwapChainManager(TOwner owner, GraphicsDevice device)
{
this.owner = owner;
this.device = GraphicsDevice.GetDefault();
this.device = device;
// Extract the ISwapChainPanelNative reference from the current panel, then query the
// IDXGISwapChain reference just created and set that as the swap chain panel to use.