Skip to content

disini/nvrhi-unittest

 
 

Repository files navigation

Clone Dawn somewhere and follow Dawn CMake Quickstart

cd dawn
cmake -S . -B out/Release -DDAWN_FETCH_DEPENDENCIES=ON -DDAWN_ENABLE_INSTALL=ON -DCMAKE_BUILD_TYPE=Release
cmake --build out/Release
cmake --install out/Release --prefix install/Release

Set Dawn_DIR to the {project root}/dawn/install/Release/lib/cmake/Dawn

Enable Metal debugger for MoltenVK backend build

Comment out

#define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC 1

this part in the vulkan-backend.h from NVRHI repo

In Xcode,

  1. Go to Edit Scheme -> Run -> Options
  2. Set GPU Frame Capture to Metal
  3. (Maybe unnecessary) Go to Build Setting and set Metal Capture Enabled to YES

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.6%
  • CMake 1.3%
  • Other 1.1%