public SwapChain(Device device, bool ensureSizeMatchesWindowSize, SwapChainType type) : base(device, type) { deviceD3D12 = device; handle = Orbital_Video_D3D12_SwapChain_Create(device.handle, this.type); this.ensureSizeMatchesWindowSize = ensureSizeMatchesWindowSize; }
public SwapChainBase(DeviceBase device, SwapChainType type) { this.device = device; if (type == SwapChainType.MultiGPU_AFR && device.nodeCount == 1) { type = SwapChainType.SingleGPU_Standard; } this.type = type; }
private static extern IntPtr Orbital_Video_D3D12_SwapChain_Create(IntPtr device, SwapChainType type);
public override SwapChainBase CreateSwapChain(WindowBase window, int bufferCount, bool fullscreen, bool ensureSizeMatchesWindowSize, SwapChainFormat format, SwapChainType type, StencilUsage stencilUsage, DepthStencilFormat depthStencilFormat, DepthStencilMode depthStencilMode, SwapChainVSyncMode vSyncMode) { throw new NotImplementedException(); }
public override SwapChainBase CreateSwapChain(WindowBase window, int bufferCount, bool fullscreen, bool ensureSizeMatchesWindowSize, SwapChainFormat format, SwapChainType type, SwapChainVSyncMode vSyncMode) { var abstraction = new SwapChain(this, ensureSizeMatchesWindowSize, type); if (!abstraction.Init(window, bufferCount, fullscreen)) { abstraction.Dispose(); throw new Exception("Failed to create SwapChain"); } return(abstraction); }
public abstract SwapChainBase CreateSwapChain(WindowBase window, int bufferCount, bool fullscreen, bool ensureSizeMatchesWindowSize, SwapChainFormat format, SwapChainType type, StencilUsage stencilUsage, DepthStencilFormat depthStencilFormat, DepthStencilMode depthStencilMode, SwapChainVSyncMode vSyncMode);
public override SwapChainBase CreateSwapChain(WindowBase window, int bufferCount, bool fullscreen, bool ensureSizeMatchesWindowSize, SwapChainFormat format, SwapChainType type, StencilUsage stencilUsage, DepthStencilFormat depthStencilFormat, DepthStencilMode depthStencilMode, SwapChainVSyncMode vSyncMode) { return(primaryDevice.CreateSwapChain(window, bufferCount, fullscreen, ensureSizeMatchesWindowSize, format, type, stencilUsage, depthStencilFormat, depthStencilMode, vSyncMode)); }