Direct3D12 Device creation fails with DXGI_ERROR_UNSUPPORTED - direct3d

i'm trying to start d3d12 developement with the windows 10 preview Build 10074 and the Visual Studio 2015 RC Pro
But i'm getting DXGI_ERROR_UNSUPPORTED "The specified device or feature level is not supported on this system" when I try to create the ID3D12Device
HRESULT hr = D3D12CreateDevice(0, D3D_FEATURE_LEVEL_11_0, __uuidof(ID3D12Devie), (void**)&device);
I'm working on a Laptop with 2 Gpus:
Intel Hd Graphics 4600, WDDM 1.3(dxdiag)
Nvidia 765M GTX, WDDM 2.0(dxdiag)
Well the intel gpu has the wrong driver model, but the nvidia gpu should match the d3d12 requirements at least for feature level 11.
I have tried to start visual studio with with Rightclick->Graphicprocessor->NVIDIA and to start the exe directly but it makes no difference.
Did I miss something?

Now it works, I needed the newest NVIDIA Driver (352.84) released few days ago.
Well Windows 10 has updated my intel driver as well so it works with both GPUs now.
Both use WDDM 2.0 now.

Related

I can't install HAXM even after trying everything

I initially tried to install haxm though android studio. Not working.
I downloaded the installer for haxm though intel. Not working because: VT-x is not supported by this computer or it is being exclusively used by Hyper-V.
But vt is supported and it's not used by hyper-v.
I checked windows feautures and all hyper-v options/suboptions are off. I checked windows defender -> core isolation -> memory integrity and it's off. I have no other antivirus software that could possible block hyper-v, I have only windows defender.
I tried turning off, in case it's on, with command line and then rebooted and tried installing again.
I checked the bios/uefi and vt is enabled, mts (multithreading) is enabled.
I checked windows services and there was no service, relative to hyper-v, running.
I don't believe that there might be another software running in the same time which causes this problem (like amd driver (andrenaline), asrock rgb, or I don't know what). 
Any idea? 
CPU : ryzen 5 2600. MOBO: Asrock Fatal1ty B450 Gaming K4. OS: Windows 10 Education (latest version)
(I am not sure if this post fits here but I have seen a couple of posts regarding installation problems of HAXM. I read them. Still, they're not helpful for my problem as it seems)
Do check the following things
go to BIOS of your system, if your system (laptop/desktop) have intel processor then enable the VT-X (virtualization technology).
if your laptop/desktop have AMD processor then enable HYPER-V form your BIOS.
This will fix your problem for sure. If not then try to update your BIOS.
Fixed it having the following settings:
Under advanced/cpu settings:
SVM enabled. MTS enabled.
Under advanced/northbridge:
SR-IOV enabled.
On windows:
Hyper-V off. Windows Hypervisor on.
On windows defender:
Core Isolation -> Memory Integrity: off
On android studio:
Settings/System Settings/Android SDK:
Android Emulator On
Android Emulator Hypervisor Driver for AMD Processors On
(Check running services for related tasks. Check 3rd party software)
Reboot.
Don't try to install Intel x86 Emulator Accelator(HAXM) with AMD. There is no way to do it with AMD.

This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V error

I'm using Android Studio on windows 10 currently. However, as I try to install HAXM via android studio, there is an error which always pops up "This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V. HAXM cannot be installed".
The weird thing is that when I checked my installed programs, HAXM is already installed by default. I have no idea why I am not able to upgrade. I'm using a decent gaming laptop with an 8th Gen Intel Core i7 processor.
Things I have tried :
I have already went into my bios and made sure all virtualization options were enabled and went to "Windows Features"and unchecked Windows Hyper-visor Platform but to no avail as the problem still persists
I recently had the same issue, and even though Intel virtualization was enabled in the BIOS and my Windows 10 doesn't have the Hyper-V option because it's the home edition, I wasn't able to use Android Studio emulators/virtual machines or upgrade/reinstall Intel HAXM. I then found out that an enabled feature on Windows Defender was the cause of the problem. Try the following steps (sorry, my device is in portuguese so the options might have another naming other than the direct translation to english):
In Windows Defender, go to Device Security (The one with a laptop icon).
Choose Kernel Isolation Details (first option).
And disable the Memory Integrity option if it isn't disabled already (in case it is, I'm sorry but this solution won't help you out).
If you have to change the option to disabled, restart your computer and try upgrading HAXM via Android Studio again.
I hope this helps. :)
In my case, after disabling Hyper-V in Windows Features I had to turn the antivirus (Kaspersky) off to install Intel x86 Emulator Accelerator (HAXM) 7.5.6 on Windows 10 Pro (1909).
IF u have AMD CPU you have to install Driver for AMD processor Check img

Intel HAXM is required to run this avd android studio

I am using Android Studio 2.2 (to appropriately follow along an online class). I am using a mac OS High Sierra v 10.13.3, Intel HD Graphics 6000 1536 MB graphics. However, I am receiving the following error:
"Troubleshoot
Intel HAXM is required to run this AVD.
/dev/kvm is not found
Enable VT-x in your BIOS security settings, ensure that your Linux distro has working KVM module."
The solutions I found on this site are mostly on Windows, and the mac solutions did not help.
I appreciate any help in this matter as I am desperate to continue.
you needs to turn on Virtualization in your BIOS setting.
this link will be helpful https://stackoverflow.com/a/35027378/8358956

Android Studio Emulator GPU driver issue

Since i began using android studio emulator i keep running into several issues for instance when i start the emulator i get a pop up that says
" GPU Driver Issue:
GPU #1
Make: 8086
Model: Intel(R) HD Graphics Family
Device ID: 0b19
Some users have experienced
stability issues with this driver version.
As a result, we're selecting a compability
renderer. Please check with your manufacturer to see if there i an updated driver available "
and it gets so slow what can i do ?

Android Studio emulator and AMD CPU

I can't run my app on standard Nexus 5 emulator. It seems it requires Intel HAXM but i have an AMD processor. So how can i use the emulator without buying an Intel processor (or installing Linux)?
If you have an AMD processor, you can download an ARM image, but it is super slow on x86 platforms.
The x86 image does not work with AMD CPUs, because the x86 image needs HAXM installed which needs VT-X support, and only Intel CPUs support it.
So you can download the Genymotion emulator, which supports both VT-X & AMD-V technology.
Genymotion is super fast. Other than hooking your physical device up to test, it's the next best thing. Android Studio emulator is not efficient for testing. I am using the personal version of Genymotion.
With the latest API 30, even x86 emulators are very fast in AMD processors. For this in Windows, you follow this below.
You absolutely don't need Intel HAXM (Hardware Accelerated Execution Mode) in AMD processors, because they are AMD processors.
Just enable (check) Windows Hypervisor Platform in Windows features as shown below.
Now, you can start emulators. No need of Intel HAXM.
Here is official link: https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
You can run the ARM (non Intel) emulator image. From your list, just choose a non Intel emulation.
You should give ARC Welder a try if all you just want to do is test an app, without all the distractions from an emulator. It works with the Google App Runtime For Chrome
You simply feed it your app's apk file and it generates a folder containing your app's resources then it launches the app. Its still in heavy development, so not all apps work yet, but its really worth giving a try.

Resources