summaryrefslogtreecommitdiffstats
path: root/unityplugin/UnityEmulator
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-11-11 04:28:55 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-11-11 04:28:55 +0000
commit44fed82c44b6dc9e4759d00bbfb7806779f761ba (patch)
treeaf38d71b0c96482be473c913b3ed4a8b445eaf9c /unityplugin/UnityEmulator
parentUpdated submodules and readme (diff)
downloadDiligentEngine-44fed82c44b6dc9e4759d00bbfb7806779f761ba.tar.gz
DiligentEngine-44fed82c44b6dc9e4759d00bbfb7806779f761ba.zip
Updated submodules + added tutorial 17
Diffstat (limited to 'unityplugin/UnityEmulator')
-rw-r--r--unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D11.cpp3
-rw-r--r--unityplugin/UnityEmulator/src/DiligentGraphicsAdapterD3D12.cpp1
-rw-r--r--unityplugin/UnityEmulator/src/DiligentGraphicsAdapterGL.cpp3
3 files changed, 2 insertions, 5 deletions
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();