nvidiagameworks / donut_examples Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hello,
My configuration:
Everything compile fine, except shaders, I have the same messages for every shaders:
1>------ Build started: Project: basic_triangle_shaders, Configuration: Debug x64 ------ 1>[ 50.0%] DXIL FAIL shaders.hlsl:main_ps 1>ERRORS for shaders.hlsl:main_ps : 1> 1> 1>[100.0%] DXIL FAIL shaders.hlsl:main_vs 1>ERRORS for shaders.hlsl:main_vs : 1> 1> 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: The command "setlocal 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\..\bin\nvrhi-scomp.exe --infile "C:/Dev/donut/donut_examples/examples/basic_triangle/shaders.cfg" --parallel --out "C:/Dev/donut/donut_examples/bin/shaders/basic_triangle/dxil" --platform dxil --cflags "-Zi -Qembed_debug -O3 -WX -Zpr" -I "C:/Dev/donut/donut_examples/donut/include" --compiler "C:/Users/myusername/Downloads/dxc_2022_07_18 (1)/bin/x64/dxc.exe" 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmErrorLevel 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: exit /b %1 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmDone 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: setlocal 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\..\bin\nvrhi-scomp.exe --infile "C:/Dev/donut/donut_examples/examples/basic_triangle/shaders.cfg" --parallel --out "C:/Dev/donut/donut_examples/bin/shaders/basic_triangle/dxbc" --platform dxbc --cflags "-Zi -O3 -WX -Zpr" -I "C:/Dev/donut/donut_examples/donut/include" --compiler "C:/Program Files (x86)/Windows Kits/10/bin/10.0.22621.0/x64/fxc.exe" 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmErrorLevel 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: exit /b %1 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmDone 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: setlocal 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\..\bin\nvrhi-scomp.exe --infile "C:/Dev/donut/donut_examples/examples/basic_triangle/shaders.cfg" --parallel --out "C:/Dev/donut/donut_examples/bin/shaders/basic_triangle/spirv" --platform spirv -I "C:/Dev/donut/donut_examples/donut/include" -D SPIRV --cflags "-Zi -fspv-target-env=vulkan1.2 -O3 -WX -Zpr" --compiler "C:/Users/myusername/Downloads/dxc_2022_07_18 (1)/bin/x64/dxc.exe" 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmErrorLevel 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: exit /b %1 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmDone 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :VCEnd" exited with code 1. 1>Done building project "basic_triangle_shaders.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It show no error, but fail anyway.
I have the same errors for SPIR-V:
Build started... 1>------ Build started: Project: basic_triangle_shaders, Configuration: Debug x64 ------ 1>[ 50.0%] SPIR-V FAIL shaders.hlsl:main_ps 1>ERRORS for shaders.hlsl:main_ps : 1> 1> 1>[100.0%] SPIR-V FAIL shaders.hlsl:main_vs 1>ERRORS for shaders.hlsl:main_vs : 1> 1> 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: The command " 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: setlocal 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: ..\..\..\bin\nvrhi-scomp.exe --infile "C:/Dev/donut/donut_examples/examples/basic_triangle/shaders.cfg" --parallel --out "C:/Dev/donut/donut_examples/bin/shaders/basic_triangle/spirv" --platform spirv -I "C:/Dev/donut/donut_examples/donut/include" -D SPIRV --cflags "-Zi -fspv-target-env=vulkan1.2 -O3 -WX -Zpr" --compiler "C:/Users/myusername/Downloads/dxc_2022_07_18 (1)/bin/x64/dxc.exe" 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmErrorLevel 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: exit /b %1 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :cmDone 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd 1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(147,5): error MSB3073: :VCEnd" exited with code 1. 1>Done building project "basic_triangle_shaders.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
What I already tried :
Could you help me please? I don't know what to do
Are more modern graphics rendering pipeline examples planned? For example:
CMake invocation:
$ cmake .. -DDONUT_WITH_VULKAN=OFF -DDONUT_WITH_DX11=OFF -DDONUT_WITH_DX12=ON -G "Visual Studio 16 2019" -A x64
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.29.30037.0
-- The CXX compiler identification is MSVC 19.29.30037.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30037/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- JsonCpp Version: 1.9.4
-- Looking for C++ include clocale
-- Looking for C++ include clocale - found
-- Looking for localeconv
-- Looking for localeconv - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of lconv
-- Check size of lconv - done
-- Performing Test HAVE_DECIMAL_POINT
-- Performing Test HAVE_DECIMAL_POINT - Success
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Using Win32 for window creation
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Success
-- cxxopts version 2.2.0
-- Found DXCdxil: C:/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64/dxc.exe (found version "10.0.18362.0")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/msys64/home/post/git/donut_examples/build
Severity Code Description Project File Line Suppression State
Error C2065 'D3D12_FEATURE_D3D12_OPTIONS7': undeclared identifier nvrhi_d3d12 C:\msys64\home\post\git\donut_examples\donut\nvrhi\src\d3d12\d3d12-device.cpp 107
Error C2065 'D3D12_MESH_SHADER_TIER_1': undeclared identifier nvrhi_d3d12 C:\msys64\home\post\git\donut_examples\donut\nvrhi\src\d3d12\d3d12-device.cpp 127
Error C2065 'D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_AS': undeclared identifier nvrhi_d3d12 C:\msys64\home\post\git\donut_examples\donut\nvrhi\src\d3d12\d3d12-meshlets.cpp 70
Error C2065 'D3D12_PIPELINE_STATE_SUBOBJECT_TYPE_MS': undeclared identifier nvrhi_d3d12 C:\msys64\home\post\git\donut_examples\donut\nvrhi\src\d3d12\d3d12-meshlets.cpp 71
Error C2065 'D3D12_RAYTRACING_TIER_1_1': undeclared identifier nvrhi_d3d12 C:\msys64\home\post\git\donut_examples\donut\nvrhi\src\d3d12\d3d12-device.cpp 112
Error C2065 'D3D12_SHADER_VISIBILITY_AMPLIFICATION': undeclared identifier nvrhi_d3d12 C:\msys64\home\post\git\donut_examples\donut\nvrhi\src\d3d12\d3d12-constants.cpp 47
Error C2065 'D3D12_SHADER_VISIBILITY_MESH': undeclared identifier nvrhi_d3d12 C:\msys64\home\post\git\donut_examples\donut\nvrhi\src\d3d12\d3d12-constants.cpp 49
Error C2039 'DispatchMesh': is not a member of 'nvrhi::RefCountPtr' nvrhi_d3d12 C:\msys64\home\post\git\donut_examples\donut\nvrhi\src\d3d12\d3d12-meshlets.cpp 295
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.