Skip to content

Commit

Permalink
Fixed Vulkan setup script to use an actual version (still requires an…
Browse files Browse the repository at this point in the history
…y 1.3)
  • Loading branch information
TheCherno committed Jul 4, 2022
1 parent 220f424 commit 5fda78b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scripts/SetupVulkan.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

class VulkanConfiguration:
requiredVulkanVersion = "1.3."
installVulkanVersion = "1.3.216.0"
vulkanDirectory = "./Hazel/vendor/VulkanSDK"

@classmethod
Expand Down Expand Up @@ -45,13 +46,13 @@ def CheckVulkanSDK(cls):
def __InstallVulkanSDK(cls):
permissionGranted = False
while not permissionGranted:
reply = str(input("Would you like to install VulkanSDK {0:s}? [Y/N]: ".format(cls.requiredVulkanVersion))).lower().strip()[:1]
reply = str(input("Would you like to install VulkanSDK {0:s}? [Y/N]: ".format(cls.installVulkanVersion))).lower().strip()[:1]
if reply == 'n':
return
permissionGranted = (reply == 'y')

vulkanInstallURL = f"https://sdk.lunarg.com/sdk/download/{cls.requiredVulkanVersion}/windows/VulkanSDK-{cls.requiredVulkanVersion}-Installer.exe"
vulkanPath = f"{cls.vulkanDirectory}/VulkanSDK-{cls.requiredVulkanVersion}-Installer.exe"
vulkanInstallURL = f"https://sdk.lunarg.com/sdk/download/{cls.installVulkanVersion}/windows/VulkanSDK-{cls.installVulkanVersion}-Installer.exe"
vulkanPath = f"{cls.vulkanDirectory}/VulkanSDK-{cls.installVulkanVersion}-Installer.exe"
print("Downloading {0:s} to {1:s}".format(vulkanInstallURL, vulkanPath))
Utils.DownloadFile(vulkanInstallURL, vulkanPath)
print("Running Vulkan SDK installer...")
Expand Down

0 comments on commit 5fda78b

Please sign in to comment.