d3dcoder / d3d12book

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

Introduction Project error... #5

Open plasmasnakeneo opened 8 years ago

plasmasnakeneo commented 8 years ago

Started the introduction project involving "Box" demo from the book (pages xxx - xxxiii) and get the following error when trying to debug:

hr failed in c:\d3d12book\common\d3dutil.cpp; line 111; error: The system cannot find the path specified.

Not getting off to a great start so far. Perhaps there is a problem with my VS configuration. Running VS Community.

JoeSwindell commented 7 years ago

The shader file is not being created in the build directory. If you copy the Shader folder and the shader to the Debug build directory and run the compiled exe, it will run fine.

yangfengzzz commented 5 years ago

change the directory of shaders as L"../Shaders\color.hlsl" and put shaders folder in the project folders

ganadara135 commented 3 years ago

I put Shaders folder in the projects folder(MyD3D12Project) like below and this problem had gone

image