-
Notifications
You must be signed in to change notification settings - Fork 9
/
vulkan.json
71 lines (71 loc) · 3.22 KB
/
vulkan.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"version": "1.3.290.0",
"description": "SDK for new generation graphics and compute API",
"homepage": "https://www.vulkan.org",
"license": {
"identifier": "MIT,...",
"url": "https://vulkan.lunarg.com/license/#/license"
},
"notes": [
"Make sure you have the vulkan driver installed.",
"Variety of drivers of different graphic card vendors could be found at the bottom of 'https://www.khronos.org/vulkan/'",
"",
"Allow vulkan applications to find VK layers provided by Khronos, run \"$dir\\install-vk-layers.ps1\"",
"(\"powershell \"$dir\\install-vk-layers.ps1\"\" under cmd)"
],
"url": "https://sdk.lunarg.com/sdk/download/1.3.290.0/windows/VulkanSDK-1.3.290.0-Installer.exe#/dl.7z",
"hash": "0ba0392a78157b82354157c5c988d74ddc6bc15573cc9c8653aa60245355fe8a",
"pre_install": "Remove-Item \"$dir\\`$*\", \"$dir\\Uninstal*\" -Recurse",
"post_install": [
"$script_path = \"$bucketsdir\\main\\scripts\\$app\\install-vk-layers.ps1\"",
"if (Test-Path $script_path) {",
" $vulkan_bin = if ($architecture -eq '64bit') { \"$dir\\Bin\" } else { \"$dir\\Bin32\" }",
" $content = Get-Content $script_path",
" $content = $content.Replace('$vulkan_bin', \"\"\"$vulkan_bin\"\"\")",
" $content = $content.Replace('$global', $(if ($global) { '$true' } else { '$false' }))",
" $content = $content.Replace('$is_admin', $(if (is_admin) { '$true' } else { '$false' }))",
"}",
"Set-Content -Path \"$dir\\install-vk-layers.ps1\" -Value $content -Encoding UTF8"
],
"architecture": {
"64bit": {
"env_add_path": [
"Bin",
"Tools"
]
},
"32bit": {
"env_add_path": [
"Bin32",
"Tools32"
]
}
},
"env_set": {
"VULKAN_SDK": "$dir",
"VK_SDK_PATH": "$dir"
},
"pre_uninstall": [
"$reg_root = if ($global) { [Microsoft.Win32.Registry]::LocalMachine } else { [Microsoft.Win32.Registry]::CurrentUser }",
"$vk_explicit_reg_path = 'SOFTWARE\\Khronos\\Vulkan\\ExplicitLayers'",
"$bin_dir = if ($architecture -eq '64bit') { 'Bin' } else { 'Bin32' }",
"$vulkan_bin = if ($global) { \"$globaldir\\apps\\$app\\current\\$bin_dir\" } else { \"$scoopdir\\apps\\$app\\current\\$bin_dir\" }",
"$vk_layers = Get-ChildItem -Path $vulkan_bin -Filter '*.json' | ForEach-Object { $_.FullName }",
"$vk_explicit_reg = $reg_root.CreateSubKey($vk_explicit_reg_path)",
"foreach ($vk_layer in $vk_layers) {",
" $vk_explicit_reg.DeleteValue($vk_layer, $false)",
"}",
"$vk_explicit_reg.Close()"
],
"checkver": {
"url": "https://vulkan.lunarg.com/sdk/latest/windows.json",
"jsonpath": "$.windows"
},
"autoupdate": {
"url": "https://sdk.lunarg.com/sdk/download/$version/windows/VulkanSDK-$version-Installer.exe#/dl.7z",
"hash": {
"url": "https://vulkan.lunarg.com/sdk/files.json",
"jsonpath": "$.windows['$version'].files[?(@.file_name == '$basename')].sha"
}
}
}