Giter Site home page Giter Site logo

Comments (7)

jenatali avatar jenatali commented on August 25, 2024

This likely means that you're including <d3d12.h> before or instead of <directx/d3d12.h>.

from directx-headers.

walbourn avatar walbourn commented on August 25, 2024

I.e. you are using the old version of d3d12.h (Window 10 SDK 19041 or earlier).

from directx-headers.

r2com avatar r2com commented on August 25, 2024

Alright, so updated today to a completely new MSVC, now I am running latest 2022 community and during setup I did install latest SDK's.

Now, during compile I do NOT get such error, i.e. it compiles without any issues. however, once I try to start executable, it fails with the following printout:
DX ERROR: D3D12CreateDevice: Unrecognized D3D_FEATURE_LEVEL (0xc200) for MinimumFeatureLevel. [ INITIALIZATION ERROR #506: ]
'dxtest5.exe' (Win32): Unloaded 'C:\Windows\System32\DXGIDebug.dll'

why is it still not recognizing feature of 12_2 with latest SDKs and even after successful compile?

from directx-headers.

jenatali avatar jenatali commented on August 25, 2024

What Windows version are you running? You'll need to be on Win11 or using the Agility SDK for FL12.2 to be recognized.

from directx-headers.

r2com avatar r2com commented on August 25, 2024

well, here is a thing, I went to "Modify" section of MSVC installer, and it shows to me that I have Windows SDK 10.0.20348.0 installed.

For 12_2 I read that year ago, one needed 20170 or higher, it is obvious that my version is HIGHER than 20170 (20348), so it means it should have worked?

as per which windows, well, I am running Windows 10 Pro with above shown SDK.

is that problem? are you saying that on top of version higher than 20170 I must also run Win11??

from directx-headers.

walbourn avatar walbourn commented on August 25, 2024

You are building with the latest headers which define the D3D_FEATURE_LEVEL_12_2 compiler symbol.

To actually use Feature Level 12.2, you need two things:

  1. The DirectX 12 Runtime that supports Feature Level 12.2
  2. A video driver & card combination that supports it.

The version of the DirectX 12 Runtime in Windows 11 supports Feature level 12.2.

For Windows 10 (18363) or later, you can use the DirectX12 Agility SDK and it provides an application local DLL version of the DirectX 12 Runtime that supports Feature Level 12.2 on your system.

from directx-headers.

elderkeltir avatar elderkeltir commented on August 25, 2024

I had the same issue with one object file where I compile shaders using dxc.
to resolve it I had to put #include <directx/d3dx12.h> above

#include <dxc/dxcapi.h>
#include <dxc/d3d12shader.h>

Might be helpful for someone.
Cheers!

from directx-headers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.