Skip to content

Commit

Permalink
Merge pull request #24 from Microsoft/develop
Browse files Browse the repository at this point in the history
Explicitly disable fullscreen transitions in API samples that don't support it. Issue #21
  • Loading branch information
bobbrow committed Sep 11, 2015
2 parents cf5952d + 1dfa736 commit 8f64a67
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Samples/D3D1211On12/src/D3D1211On12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ void D3D1211on12::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create an 11 device wrapped around the 12 device and share
Expand Down
3 changes: 3 additions & 0 deletions Samples/D3D12Bundles/src/D3D12Bundles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ void D3D12Bundles::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
3 changes: 3 additions & 0 deletions Samples/D3D12DynamicIndexing/src/D3D12DynamicIndexing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ void D3D12DynamicIndexing::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
3 changes: 3 additions & 0 deletions Samples/D3D12ExecuteIndirect/src/D3D12ExecuteIndirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ void D3D12ExecuteIndirect::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ void D3D12HelloBundles::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ void D3D12HelloConstBuffers::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ void D3D12HelloTexture::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ void D3D12HelloTriangle::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
3 changes: 3 additions & 0 deletions Samples/D3D12HelloWorld/src/HelloWindow/D3D12HelloWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ void D3D12HelloWindow::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
3 changes: 3 additions & 0 deletions Samples/D3D12Multithreading/src/D3D12Multithreading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ void D3D12Multithreading::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ void D3D12PipelineStateCache::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();
m_swapChainEvent = m_swapChain->GetFrameLatencyWaitableObject();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ void D3D12PredicationQueries::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

// Create descriptor heaps.
Expand Down
3 changes: 3 additions & 0 deletions Samples/D3D12nBodyGravity/src/D3D12nBodyGravity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ void D3D12nBodyGravity::LoadPipeline()

ThrowIfFailed(swapChain.As(&m_swapChain));

// This sample does not support fullscreen transitions.
ThrowIfFailed(factory->MakeWindowAssociation(m_hwnd, DXGI_MWA_NO_ALT_ENTER));

m_frameIndex = m_swapChain->GetCurrentBackBufferIndex();

m_swapChainEvent = m_swapChain->GetFrameLatencyWaitableObject();
Expand Down

0 comments on commit 8f64a67

Please sign in to comment.