Browse Source

Merge pull request #183 from MikePopoloski/master

Updating README and fixing device issue
Branimir Karadžić 11 years ago
parent
commit
9d0f823e9f
2 changed files with 15 additions and 1 deletions
  1. 6 0
      README.md
  2. 9 1
      src/renderer_d3d11.cpp

+ 6 - 0
README.md

@@ -371,6 +371,12 @@ Linux 64-bit:
 
 	make linux-release64
 
+WinRT / Windows Phone 8.1:
+
+	../bx/tools/bin/windows/genie --vs=winphone81 vs2013
+Build the resulting solution and deploy to device. Note that
+shaders will need to be compiled with the appropriate target profile for your platform.
+
 Other platforms:
 
 	make <configuration>

+ 9 - 1
src/renderer_d3d11.cpp

@@ -663,9 +663,13 @@ RENDERDOC_IMPORT
 
 			D3D_FEATURE_LEVEL features[] =
 			{
+				D3D_FEATURE_LEVEL_11_1,
 				D3D_FEATURE_LEVEL_11_0,
 				D3D_FEATURE_LEVEL_10_1,
 				D3D_FEATURE_LEVEL_10_0,
+				D3D_FEATURE_LEVEL_9_3,
+				D3D_FEATURE_LEVEL_9_2,
+				D3D_FEATURE_LEVEL_9_1
 			};
 
 			uint32_t flags = D3D11_CREATE_DEVICE_SINGLETHREADED
@@ -679,7 +683,7 @@ RENDERDOC_IMPORT
 				, NULL
 				, flags
 				, features
-				, 1
+				, ARRAYSIZE(features)
 				, D3D11_SDK_VERSION
 				, &m_device
 				, &featureLevel
@@ -1253,6 +1257,10 @@ RENDERDOC_IMPORT
 			{
 				HRESULT hr = S_OK;
 				uint32_t syncInterval = !!(m_flags & BGFX_RESET_VSYNC);
+#if BX_PLATFORM_WINRT
+				syncInterval = 1;   // sync interval of 0 is not supported on WinRT
+#endif
+
 				for (uint32_t ii = 1, num = m_numWindows; ii < num && SUCCEEDED(hr); ++ii)
 				{
 					hr = m_frameBuffers[m_windows[ii].idx].m_swapChain->Present(syncInterval, 0);