File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
docs/1-introduction/1-1-getting-started Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -234,16 +234,16 @@ DXGI 1.0 up to 1.6 More information can be found [here](https://docs.microsoft.c
234234``` cpp
235235constexpr D3D_FEATURE_LEVEL deviceFeatureLevel = D3D_FEATURE_LEVEL::D3D_FEATURE_LEVEL_11_0;
236236if (FAILED(D3D11CreateDevice(
237- nullptr ,
238- D3D_DRIVER_TYPE::D3D_DRIVER_TYPE_HARDWARE,
239- nullptr ,
240- 0 ,
241- &deviceFeatureLevel,
242- 1 ,
243- D3D11_SDK_VERSION,
244- &_device,
245- nullptr ,
246- &_deviceContext)))
237+ nullptr ,
238+ D3D_DRIVER_TYPE::D3D_DRIVER_TYPE_HARDWARE,
239+ nullptr ,
240+ 0 ,
241+ &deviceFeatureLevel,
242+ 1 ,
243+ D3D11_SDK_VERSION,
244+ &_device,
245+ nullptr ,
246+ &_deviceContext)))
247247{
248248 std::cout << "D3D11: Failed to create device and device Context\n";
249249 return false;
@@ -274,12 +274,12 @@ DXGI_SWAP_CHAIN_FULLSCREEN_DESC swapChainFullscreenDescriptor = {};
274274swapChainFullscreenDescriptor.Windowed = true ;
275275
276276if (FAILED(_dxgiFactory->CreateSwapChainForHwnd (
277- _device.Get(),
278- glfwGetWin32Window(GetWindow()),
279- &swapChainDescriptor,
280- &swapChainFullscreenDescriptor,
281- nullptr,
282- &_swapChain)))
277+ _device.Get(),
278+ glfwGetWin32Window(GetWindow()),
279+ &swapChainDescriptor,
280+ &swapChainFullscreenDescriptor,
281+ nullptr,
282+ &_swapChain)))
283283{
284284 std::cout << "DXGI: Failed to create swapchain\n";
285285 return false;
You can’t perform that action at this time.
0 commit comments