d3dcoder / d3d12book

Sample code for the book "Introduction to 3D Game Programming with DirectX 12"
1.47k stars 571 forks source link

all of the samples give me an HR failed error #25

Open diegohdezr opened 4 years ago

diegohdezr commented 4 years ago

imagen I tried to run all of the code examples here but they all give me the same error in VS 2019, is there a way to solve this?

njsand commented 3 years ago

I just ran the box demo in chapter 6 ok in VS 2019. Are you still getting an error?

diegohdezr commented 3 years ago

I only run into this error in debug mode, somehow in release it works fine, is there a config I am missing for debug?

JoeSwindell commented 3 years ago

I only run into this error in debug mode, somehow in release it works fine, is there a config I am missing for debug?

You probably are missing the debug layer. Check out this Stack overflow article for the fix

https://stackoverflow.com/questions/34434423/initializing-d3d12-debug-interfaces-failing-on-laptop-with-geforce-960m