From 44fed82c44b6dc9e4759d00bbfb7806779f761ba Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sun, 10 Nov 2019 20:28:55 -0800 Subject: Updated submodules + added tutorial 17 --- unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D11.cpp | 3 +-- unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D12.cpp | 1 - unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'unityplugin/UnityEmulator') diff --git a/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D11.cpp b/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D11.cpp index 5c5b253..c01ff0a 100644 --- a/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D11.cpp +++ b/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D11.cpp @@ -127,8 +127,7 @@ void DiligentGraphicsAdapterD3D11::InitProxySwapChain() SCDesc.DepthBufferFormat = DXGI_FormatToTexFormat(DSVDesc.Format); SCDesc.Width = GraphicsD3D11Impl->GetBackBufferWidth(); SCDesc.Height = GraphicsD3D11Impl->GetBackBufferHeight(); - // These fields are irrelevant - SCDesc.SamplesCount = 0; + // This field is irrelevant SCDesc.BufferCount = 0; auto &DefaultAllocator = DefaultRawMemoryAllocator::GetAllocator(); diff --git a/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D12.cpp b/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D12.cpp index 1495f5c..6c09f5c 100644 --- a/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D12.cpp +++ b/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D12.cpp @@ -145,7 +145,6 @@ public: DXGI_SWAP_CHAIN_DESC1 SwapChainDesc; pDXGISwapChain->GetDesc1(&SwapChainDesc); m_SwapChainDesc.BufferCount = SwapChainDesc.BufferCount; - m_SwapChainDesc.SamplesCount = SwapChainDesc.SampleDesc.Count; m_SwapChainDesc.Width = SwapChainDesc.Width; m_SwapChainDesc.Height = SwapChainDesc.Height; m_SwapChainDesc.ColorBufferFormat = DXGI_FormatToTexFormat(SwapChainDesc.Format); diff --git a/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp b/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp index 43cd75e..0e81625 100644 --- a/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp +++ b/unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp @@ -96,8 +96,7 @@ DiligentGraphicsAdapterGL::DiligentGraphicsAdapterGL(const UnityGraphicsGLCoreES SCDesc.Width = UnityGraphicsGLImpl->GetBackBufferWidth(); SCDesc.Height = UnityGraphicsGLImpl->GetBackBufferHeight(); - // These fields are irrelevant - SCDesc.SamplesCount = 0; + // This field is irrelevant SCDesc.BufferCount = 0; auto &DefaultAllocator = DefaultRawMemoryAllocator::GetAllocator(); -- cgit v1.2.3