diff --git a/devsim/profiles.h b/devsim/profiles.h index 0ba72a2e..c2b93124 100644 --- a/devsim/profiles.h +++ b/devsim/profiles.h @@ -39,7 +39,11 @@ std::string GetSimulateCapabilitiesLog(SimulateCapabilityFlags flags); std::string GetDebugReportsLog(DebugActionFlags flags); +#ifdef VULKANSC +#define kLayerName "VK_LAYER_KHRONOS_device_simulation" +#else #define kLayerName "VK_LAYER_KHRONOS_profiles" +#endif // VULKANSC #define kLayerSettingsProfileEmulation "profile_emulation" #define kLayerSettingsProfileFile "profile_file" #define kLayerSettingsProfileDirs "profile_dirs" diff --git a/vulkaninfo/vulkaninfo.cpp b/vulkaninfo/vulkaninfo.cpp index 8ce2394f..34d73879 100644 --- a/vulkaninfo/vulkaninfo.cpp +++ b/vulkaninfo/vulkaninfo.cpp @@ -1431,7 +1431,11 @@ PrinterCreateDetails get_printer_create_details(ParsedResults &parse_data, AppIn case (OutputCategory::profile_json): create.output_type = OutputType::json; create.start_string = +#ifdef VULKANSC + std::string("{\n\t\"$schema\": ") + "\"https://schema.khronos.org/vulkansc/profiles-0.8-latest.json\""; +#else std::string("{\n\t\"$schema\": ") + "\"https://schema.khronos.org/vulkan/profiles-0.8-latest.json\""; +#endif // VULKANSC if (parse_data.filename.empty()) { create.file_name = std::string("VP_" APP_UPPER_CASE_NAME "_") + std::string(selected_gpu.props.deviceName) + "_" + selected_gpu.GetDriverVersionString();