```
mkdir YOUR_DEV_DIRECTORY # it's called GL-Next on Github, but the name doesn't matter
cd YOUR_DEV_DIRECTORY
-git clone -o khronos git@gitlab.khronos.org:vulkan/LoaderAndValidationLayers.git .
-# Or substitute the URL from your forked repo for git@gitlab.khronos.org:vulkan/LoaderAndValidationLayers.git above.
+git clone -o khronos git@gitlab.khronos.org:vulkan/LoaderAndTools.git .
+# Or substitute the URL from your forked repo for git@gitlab.khronos.org:vulkan/LoaderAndTools.git above.
```
## Linux Build
Example debug x64 build (e.g. in a "Developer Command Prompt for VS2013" window):
```
-cd LoaderAndValidationLayers # cd to the root of the Vulkan git repository
+cd LoaderAndTools # cd to the root of the Vulkan git repository
update_external_sources.bat --all
mkdir build
cd build
To do this, simply create and build the release versions of each target:
```
-cd LoaderAndValidationLayers # cd to the root of the Vulkan git repository
+cd LoaderAndTools # cd to the root of the Vulkan git repository
update_external_sources.bat --all
mkdir build
cd build
rmdir /Q /S build32
REM *******************************************
-REM 64-bit LoaderAndValidationLayers build
+REM 64-bit LoaderAndTools build
REM *******************************************
mkdir build
pushd build
echo Generating 64-bit spirv-tools CMake files for Visual Studio %VS_VERSION%
cmake -G "Visual Studio %VS_VERSION% Win64" ..
-echo Building 64-bit Debug LoaderAndValidationLayers
+echo Building 64-bit Debug LoaderAndTools
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug
REM Check for existence of one DLL, even though we should check for all results
if not exist .\loader\Debug\vulkan-1.dll (
echo.
- echo LoaderAndValidationLayers 64-bit Debug build failed!
+ echo LoaderAndTools 64-bit Debug build failed!
set errorCode=1
)
-echo Building 64-bit Release LoaderAndValidationLayers
+echo Building 64-bit Release LoaderAndTools
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Release
REM Check for existence of one DLL, even though we should check for all results
if not exist .\loader\Release\vulkan-1.dll (
echo.
- echo LoaderAndValidationLayers 64-bit Release build failed!
+ echo LoaderAndTools 64-bit Release build failed!
set errorCode=1
)
popd
REM *******************************************
-REM 32-bit LoaderAndValidationLayers build
+REM 32-bit LoaderAndTools build
REM *******************************************
mkdir build32
pushd build32
-echo Generating 32-bit LoaderAndValidationLayers CMake files for Visual Studio %VS_VERSION%
+echo Generating 32-bit LoaderAndTools CMake files for Visual Studio %VS_VERSION%
cmake -G "Visual Studio %VS_VERSION%" ..
-echo Building 32-bit Debug LoaderAndValidationLayers
+echo Building 32-bit Debug LoaderAndTools
msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Debug
REM Check for existence of one DLL, even though we should check for all results
if not exist .\loader\Debug\vulkan-1.dll (
echo.
- echo LoaderAndValidationLayers 32-bit Debug build failed!
+ echo LoaderAndTools 32-bit Debug build failed!
set errorCode=1
)
-echo Building 32-bit Release LoaderAndValidationLayers
+echo Building 32-bit Release LoaderAndTools
msbuild ALL_BUILD.vcxproj /p:Platform=x86 /p:Configuration=Release
REM Check for existence of one DLL, even though we should check for all results
if not exist .\loader\Release\vulkan-1.dll (
echo.
- echo LoaderAndValidationLayers 32-bit Release build failed!
+ echo LoaderAndTools 32-bit Release build failed!
set errorCode=1
)
# Powershell script for running the vktrace trace/replay auto test\r
# To run this test:\r
# cd <this-dir>\r
-# powershell C:\src\LoaderAndValidationLayers\vktracereplay.ps1 [-Debug]\r
+# powershell C:\src\LoaderAndTools\vktracereplay.ps1 [-Debug]\r
$exitstatus = 0\r
\r
if ($args[0] -eq "-Debug") {\r
# Powershell script for running the vktrace trace/replay auto test\r
# To run this test:\r
# cd <this-dir>\r
-# powershell C:\src\LoaderAndValidationLayers\vktracereplay.ps1 [-Debug]\r
+# powershell C:\src\LoaderAndTools\vktracereplay.ps1 [-Debug]\r
\r
if ($args[0] -eq "-Debug") {\r
$dPath = "Debug"\r
cd <vktrace build directory>
./vktrace <options>
Example to trace spinning cube demo.
-export VK_ICD_FILENAMES=/home/jon/LoaderAndValidationLayers/main_icd.json
-export LD_LIBRARY_PATH=/home/jon/LoaderAndValidationLayers/dbuild/loader
+export VK_ICD_FILENAMES=/home/jon/LoaderAndTools/main_icd.json
+export LD_LIBRARY_PATH=/home/jon/LoaderAndTools/dbuild/loader
./vktrace -o vktrace_cube.vktrace
```
In a separate terminal run your app, the cube demo in this example:
```
-cd /home/jon/LoaderAndValidationLayers/dbuild/demos
-export VK_ICD_FILENAMES=/home/jon/LoaderAndValidationLayers/dbuild/icd/intel/intel_icd.json
-export LD_LIBRARY_PATH=/home/jon/LoaderAndValidationLayers/dbuild/loader
+cd /home/jon/LoaderAndTools/dbuild/demos
+export VK_ICD_FILENAMES=/home/jon/LoaderAndTools/dbuild/icd/intel/intel_icd.json
+export LD_LIBRARY_PATH=/home/jon/LoaderAndTools/dbuild/loader
VK_INSTANCE_LAYERS=Vktrace VK_DEVICE_LAYERS=Vktrace ./cube
```
```
Example to trace the spinning cube demo from sample implementation
```
-export VK_ICD_FILENAMES=/home/jon/LoaderAndValidationLayers/main_icd.json
-export LD_LIBRARY_PATH=/home/jon/LoaderAndValidationLayers/dbuild/loader
-./vktrace -p /home/jon/LoaderAndValidationLayers/dbuild/demos/cube -o vktrace_cube.vktrace -w /home/jon/LoaderAndValidationLayers/dbuild/demos
+export VK_ICD_FILENAMES=/home/jon/LoaderAndTools/main_icd.json
+export LD_LIBRARY_PATH=/home/jon/LoaderAndTools/dbuild/loader
+./vktrace -p /home/jon/LoaderAndTools/dbuild/demos/cube -o vktrace_cube.vktrace -w /home/jon/LoaderAndTools/dbuild/demos
```
Trace file is in "vktrace_cube.vktrace".
```
Example to replay trace file captured above
```
-export VK_ICD_FILENAMES=/home/jon/LoaderAndValidationLayers/main_icd.json
-export LD_LIBRARY_PATH=/home/jon/LoaderAndValidationLayers/dbuild:/home/jon/LoaderAndValidationLayers/dbuild/loader
+export VK_ICD_FILENAMES=/home/jon/LoaderAndTools/main_icd.json
+export LD_LIBRARY_PATH=/home/jon/LoaderAndTools/dbuild:/home/jon/LoaderAndTools/dbuild/loader
./vkreplay -t vktrace_cube.vktrace
```
```
cd C:\\Users\developer\\Vktrace\\_out64\\Debug
-vktrace -p C:\\Users\developer\\LoaderAndValidationLayers\\_out64\\demos\\cube.exe
- -w C:\\Users\developer\\LoaderAndValidationLayers\\_out64\\demos
+vktrace -p C:\\Users\developer\\LoaderAndTools\\_out64\\demos\\cube.exe
+ -w C:\\Users\developer\\LoaderAndTools\\_out64\\demos
-o vktrace_cube.vktrace
```
Trace file is in "vktrace_cube.vktrace".
1. Install Nullsoft Install System version 3.0b1 or greater. (Available from\r
http://nsis.sourceforge.net/Download.)\r
\r
- 2. Build Vulkan LoaderAndValidationLayers as described in ../BUILD.md.\r
+ 2. Build Vulkan LoaderAndTools as described in ../BUILD.md.\r
\r
3. Edit the InstallerRT.nsi file in this folder and modify the following lines\r
to match the version of the Windows Vulkan Runtime you wish to build:\r