Skip to content

Commit 71b6f5b

Browse files
layer: Enable script execution from vkconfig
1 parent 200c9a8 commit 71b6f5b

File tree

1 file changed

+209
-2
lines changed

1 file changed

+209
-2
lines changed

layer/VkLayer_khronos_profiles.json.in

Lines changed: 209 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@
226226
"settings": [
227227
{
228228
"key": "profile_dirs",
229-
"label": "Profiles Directories",
230-
"description": "Select the location all the profiles.",
229+
"label": "Profiles Directory",
230+
"description": "Select the location of all the profiles.",
231231
"type": "LOAD_FOLDER",
232232
"format": "PROFILE",
233233
"default": "",
@@ -1273,6 +1273,213 @@
12731273
"DEBUG_REPORT_WARNING_BIT",
12741274
"DEBUG_REPORT_ERROR_BIT"
12751275
]
1276+
},
1277+
{
1278+
"key": "generate_profile",
1279+
"label": "Generate Profile File",
1280+
"description": "Force the Physical Device identified by the device UUID.",
1281+
"status": "STATUS",
1282+
"type": "COMMAND",
1283+
"command": "${PYTHON} ${gen_profile_file} --registry ${registry} --input ${gen_profile_input_dir} --output-path ${gen_profile_output_dir} --output-profile ${gen_profile_output_name} --profile-label ${gen_profile_label} --profile-desc ${gen_profile_desc} --profile-date ${gen_profile_date} --profile-stage ${gen_profile_stage} --profile-api-version ${gen_profile_api_version}",
1284+
"platforms": [ "WINDOWS", "LINUX", "MACOS" ],
1285+
"settings": [
1286+
{
1287+
"key": "gen_profile_file",
1288+
"label": "Vulkan Profile Merge Script",
1289+
"description": "Select the location of the Vulkan profiles merge script.",
1290+
"type": "LOAD_FILE",
1291+
"default": "${VULKAN_SDK}/share/vulkan/registry/gen_profiles_file.py"
1292+
},
1293+
{
1294+
"key": "registry",
1295+
"label": "Vulkan Profile Merge Script",
1296+
"description": "Select the location of the Vulkan profiles merge script.",
1297+
"type": "LOAD_FILE",
1298+
"default": "${VULKAN_SDK}/share/vulkan/registry/vk.xml"
1299+
},
1300+
{
1301+
"key": "gen_profile_input_dir",
1302+
"label": "Profiles Input Directory",
1303+
"description": "Select the location of the source profiles.",
1304+
"type": "LOAD_FOLDER",
1305+
"default": ""
1306+
},
1307+
{
1308+
"key": "gen_profile_output_dir",
1309+
"label": "Profiles Output Directory",
1310+
"description": "Select the location of the source profiles.",
1311+
"type": "SAVE_FOLDER",
1312+
"default": ""
1313+
},
1314+
{
1315+
"key": "gen_profile_output_name",
1316+
"label": "Label",
1317+
"description": "Select the location of the source profiles.",
1318+
"type": "STRING",
1319+
"default": "VP_LUNARG_my_generated_profile"
1320+
},
1321+
{
1322+
"key": "gen_profile_label",
1323+
"label": "Label",
1324+
"description": "Select the location of the source profiles.",
1325+
"type": "STRING",
1326+
"default": ""
1327+
},
1328+
{
1329+
"key": "gen_profile_desc",
1330+
"label": "Description",
1331+
"description": "Select the location of the source profiles.",
1332+
"type": "STRING",
1333+
"default": ""
1334+
},
1335+
{
1336+
"key": "gen_profile_date",
1337+
"label": "Release Date",
1338+
"description": "Select the location of the source profiles.",
1339+
"type": "DATE",
1340+
"default": ""
1341+
},
1342+
{
1343+
"key": "gen_profile_stage",
1344+
"label": "Development Stage",
1345+
"description": "Select the location of the source profiles.",
1346+
"type": "ENUM",
1347+
"default": "STABLE",
1348+
"flags": [
1349+
{
1350+
"key": "PROFILE_STABLE",
1351+
"label": "STABLE",
1352+
"description": "Stable Development Stage."
1353+
},
1354+
{
1355+
"key": "PROFILE_BETA",
1356+
"label": "BETA",
1357+
"description": "Beta Development Stage."
1358+
},
1359+
{
1360+
"key": "PROFILE_ALPHA",
1361+
"label": "ALPHA",
1362+
"description": "Alpha Development Stage."
1363+
},
1364+
{
1365+
"key": "PROFILE_DEPRECATED",
1366+
"label": "DEPRECATED",
1367+
"description": "Deprecated Development Stage."
1368+
}
1369+
]
1370+
},
1371+
{
1372+
"key": "gen_profile_api_version",
1373+
"label": "API version",
1374+
"description": "Select the location of the source profiles.",
1375+
"type": "STRING",
1376+
"default": ""
1377+
}
1378+
]
1379+
},
1380+
{
1381+
"key": "generate_library",
1382+
"label": "Generate Profile API Library",
1383+
"description": "Force the Physical Device identified by the device UUID.",
1384+
"status": "STATUS",
1385+
"type": "COMMAND",
1386+
"command": "${PYTHON} ${gen_profile_solution} --registry ${registry} --input ${gen_profile_input_dir} --output-library-inc ${gen_profile_library_output} --config ${gen_profile_config}",
1387+
"platforms": [ "WINDOWS", "LINUX", "MACOS" ],
1388+
"settings": [
1389+
{
1390+
"key": "gen_profile_solution",
1391+
"label": "Vulkan Profile API library script",
1392+
"description": "Select the location of the Vulkan profiles merge script.",
1393+
"type": "LOAD_FILE",
1394+
"default": "${VULKAN_SDK}/share/vulkan/registry/gen_profiles_solution.py"
1395+
},
1396+
{
1397+
"key": "registry",
1398+
"label": "Vulkan Profile Merge Script",
1399+
"description": "Select the location of the Vulkan profiles merge script.",
1400+
"type": "LOAD_FILE",
1401+
"default": "${VULKAN_SDK}/share/vulkan/registry/vk.xml"
1402+
},
1403+
{
1404+
"key": "gen_profile_input_dir",
1405+
"label": "Profiles Input Directory",
1406+
"description": "Select the location of the source profiles.",
1407+
"type": "LOAD_FOLDER",
1408+
"default": ""
1409+
},
1410+
{
1411+
"key": "gen_profile_library_output",
1412+
"label": "Profiles Output Directory",
1413+
"description": "Select the location of the source profiles.",
1414+
"type": "SAVE_FOLDER",
1415+
"default": ""
1416+
},
1417+
{
1418+
"key": "gen_profile_config",
1419+
"label": "Generation Configuration",
1420+
"description": "Select the location of the source profiles.",
1421+
"type": "ENUM",
1422+
"default": "RELEASE",
1423+
"flags": [
1424+
{
1425+
"key": "PROFILE_CONFIG_RELEASE",
1426+
"label": "RELEASE",
1427+
"description": "Release Build."
1428+
},
1429+
{
1430+
"key": "PROFILE_CONFIG_DEBUG",
1431+
"label": "DEBUG",
1432+
"description": "Debug Build."
1433+
}
1434+
]
1435+
},
1436+
{
1437+
"key": "gen_profile_api_version",
1438+
"label": "API version",
1439+
"description": "Select the location of the source profiles.",
1440+
"type": "STRING",
1441+
"default": ""
1442+
}
1443+
]
1444+
},
1445+
{
1446+
"key": "generate_documentation",
1447+
"label": "Generate Profile Documentation",
1448+
"description": "Force the Physical Device identified by the device UUID.",
1449+
"status": "STATUS",
1450+
"type": "COMMAND",
1451+
"command": "${PYTHON} ${gen_profile_solution} --registry ${registry} --input ${gen_profile_input_dir} --output-doc ${gen_profile_doc_output}",
1452+
"platforms": [ "WINDOWS", "LINUX", "MACOS" ],
1453+
"settings": [
1454+
{
1455+
"key": "gen_profile_solution",
1456+
"label": "Vulkan Profile API library script",
1457+
"description": "Select the location of the Vulkan profiles merge script.",
1458+
"type": "LOAD_FILE",
1459+
"default": "${VULKAN_SDK}/share/vulkan/registry/gen_profiles_solution.py"
1460+
},
1461+
{
1462+
"key": "registry",
1463+
"label": "Vulkan Profile Merge Script",
1464+
"description": "Select the location of the Vulkan profiles merge script.",
1465+
"type": "LOAD_FILE",
1466+
"default": "${VULKAN_SDK}/share/vulkan/registry/vk.xml"
1467+
},
1468+
{
1469+
"key": "gen_profile_input_dir",
1470+
"label": "Profiles Input Directory",
1471+
"description": "Select the location of the source profiles.",
1472+
"type": "LOAD_FOLDER",
1473+
"default": "${VULKAN_SDK}/Config/VK_LAYER_KHRONOS_profiles"
1474+
},
1475+
{
1476+
"key": "gen_profile_doc_output",
1477+
"label": "Profiles Output Directory",
1478+
"description": "Select the location of the source profiles.",
1479+
"type": "SAVE_FILE",
1480+
"default": "/PROFILES_ALL.md"
1481+
}
1482+
]
12761483
}
12771484
]
12781485
}

0 commit comments

Comments
 (0)