Find the Vulkan SDK from %VULKAN_SDK% environmental variable.

This commit is contained in:
Dr. Chat 2016-06-03 13:10:57 -05:00
parent fd37112db8
commit 6dab81d0cd
1 changed files with 1 additions and 2 deletions

View File

@ -642,8 +642,7 @@ class GenSpirvCommand(Command):
print('Generating SPIR-V binaries...') print('Generating SPIR-V binaries...')
print('') print('')
# TODO(benvanik): actually find vulkan SDK. Env var? etc? vulkan_sdk_path = os.environ['VULKAN_SDK']
vulkan_sdk_path = 'C:\\VulkanSDK\\1.0.3.1'
vulkan_bin_path = os.path.join(vulkan_sdk_path, 'bin') vulkan_bin_path = os.path.join(vulkan_sdk_path, 'bin')
glslang = os.path.join(vulkan_bin_path, 'glslangValidator') glslang = os.path.join(vulkan_bin_path, 'glslangValidator')
spirv_dis = os.path.join(vulkan_bin_path, 'spirv-dis') spirv_dis = os.path.join(vulkan_bin_path, 'spirv-dis')