Exemple #1
0
 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;
 }
Exemple #2
0
        public SwapChainBase(DeviceBase device, SwapChainType type)
        {
            this.device = device;

            if (type == SwapChainType.MultiGPU_AFR && device.nodeCount == 1)
            {
                type = SwapChainType.SingleGPU_Standard;
            }
            this.type = type;
        }
Exemple #3
0
 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);
Exemple #7
0
 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));
 }