PBR icon indicating copy to clipboard operation
PBR copied to clipboard

Build is failing with VS2022

Open pixtur opened this issue 1 year ago • 3 comments

Thanks a lot of this awesome project! It really helped me a lot setting up a basic PBR rendering pipeline.

Sadly I wasn't able to build the executable with VS2022,

I get a list of compile errors like...

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2102	'&' requires l-value	PBR	C:\Users\pixtur\dev\__research\PBR\src\d3d12.cpp	377	

I already installed Vulcan. Does this error indicate that I also need a special version of DX12?

I there by any chance a prebuilt windows executable available?

pixtur avatar Oct 28 '23 18:10 pixtur

您好!您的邮件已收到,我会尽快处理。祝您生活愉快!

cool-cola avatar Oct 28 '23 18:10 cool-cola

  • add #include <stdexcept> to mesh.cpp

  • remove the /std:c++latest compiler option from PBR property pages -> Configuration Properties -> C/C++ -> Command Line -> Additional Options

  • change from $(ProjectDir) to ..\..\data in PBR property pages -> Configuration Properties -> Debugging -> Working Directory


ps. if you still get C2102 errors, try setting No in PBR property pages -> Configuration Properties -> C/C++ -> Language -> Conformance Mode

PAMinerva avatar Feb 05 '24 09:02 PAMinerva

您好!您的邮件已收到,我会尽快处理。祝您生活愉快!

cool-cola avatar Feb 05 '24 09:02 cool-cola