Alternatively, you can set the VK_ICD_FILENAMES environment variable to the path to vk_swiftshader_icd.json file that is generated under the build directory (e.g.\SwiftShader\build\Windows\vk_swiftshader_icd.json). SwiftShader's ICD is named libvk_swiftshader.dll, but it can be renamed to vulkan-1.dll to be loaded directly by the application. This 'loader' library then redirects API calls to the actual Installable Client Driver (ICD). In general, Vulkan applications look for a shared library named vulkan-1.dll on Windows ( vulkan-1.so on Linux). On Linux, the LD_LIBRARY_PATH environment variable or -rpath linker option can be used to direct applications to search for shared libraries in the indicated directory first. ![]() On Windows, most applications can be made to use SwiftShader's DLLs by placing them in the same folder as the executable. ![]() The SwiftShader libraries act as drop-in replacements for graphics drivers. Open the CMake Targets View in the Solution Explorer and select the vk_swiftshader project to build it. To build the Vulkan ICD library, use Visual Studio 2019 to open the project folder and wait for it to run CMake. ![]() Tip: Set the CMAKE_BUILD_PARALLEL_LEVEL environment variable to control the level of parallelism.
0 Comments
Leave a Reply. |