In the “ System Information” window look for “ DirectX Version.”.In the search bar, type “ Dxdiag” and press Enter.The steps to see your current version are: Some PCs that use older GPUs will not support DirectX 12, so it is essential to know which generation of Dx12 to download beforehand. How to Check Your Current DirectX Versionīefore you update your DirectX, make sure which version is currently installed. It’s a relatively easy fix, so fasten your SATA connector cables and let us dive right in. This guide will show you how to check the current DirectX version on your PC and give you easy-to-follow steps o update your DirectX. _depthStencilView = new D3D11.Having an up-to-date DirectX is vital in running any multimedia, especially for gaming on Microsoft operating systems. ZeroMemory(&viewport, sizeof(D3D11_VIEWPORT)) ĭevice_context_->RSSetViewports(1, &viewport) įloat col = , If (device_->CreateTexture2D(&depth_stencil_desc, NULL, &depth_stencil_buffer_) CreateDepthStencilView(depth_stencil_buffer_, NULL, &depth_stencil_view_) OMSetRenderTargets(1, &backbuffer_, depth_stencil_view_) I don't know why I just have a blank cleared screen.ĭevice_->CreateRenderTargetView(pBackBuffer, NULL, &backbuffer_) ĭepth_stencil_desc.Format = DXGI_FORMAT_D24_UNORM_S8_UINT ĭepth_stencil_ = 0 ĭepth_stencil_desc.Usage = D3D11_USAGE_DEFAULT ĭepth_stencil_desc.BindFlags = D3D11_BIND_DEPTH_STENCIL Viewport min/max depth are 0/1, depth is attached, and cleared. In the debugger, the triangle is rendered at a depth of 0.5. It renders fine without a depth buffer view, but when I attach it, my triangle gets hidden and I see only a blank screen. I'm adding support for dx11 and I ran into some issues.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |