MCPcopy Create free account
hub / github.com/GPUOpen-Tools/radeon_gpu_analyzer / main

Function main

source/utils/vulkan/backend/beVulkanBackend.cpp:528–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526}
527
528int main(int argc, char* argv[])
529{
530 bool status = false;
531 bool is_amd_gpu = false;
532
533 RgVulkanBackend vulkan_backend;
534 RgConfig::Action required_action = vulkan_backend.ParseCmdLine(argc, argv);
535 switch (required_action)
536 {
537 case RgConfig::Action::kListTargets:
538 status = vulkan_backend.ListTargets();
539 break;
540
541 case RgConfig::Action::kListAdapters:
542 status = vulkan_backend.ListAdapters(is_amd_gpu, true);
543 break;
544
545 case RgConfig::Action::kBuild:
546 status = vulkan_backend.Build();
547 break;
548 }
549
550 vulkan_backend.PrintValidationHint();
551
552 return (status ? 0 : 1);
553}
554
555void RgVulkanBackend::DestroyValidationCallback()
556{

Callers

nothing calls this directly

Calls 5

ParseCmdLineMethod · 0.80
ListTargetsMethod · 0.80
BuildMethod · 0.80
PrintValidationHintMethod · 0.80
ListAdaptersMethod · 0.45

Tested by

no test coverage detected