SPV/Vulkan: Add support for Vulkan 1.2, which defaults to SPIR-V 1.5.

This commit is contained in:
John Kessenich
2020-01-15 00:10:41 -07:00
parent d203754bc1
commit 273d3a5093
5 changed files with 25 additions and 10 deletions

View File

@@ -67,6 +67,8 @@ spv_target_env MapToSpirvToolsEnv(const SpvVersion& spvVersion, spv::SpvBuildLog
logger->missingFunctionality("Target version for SPIRV-Tools validator");
return spv_target_env::SPV_ENV_VULKAN_1_1;
}
case glslang::EShTargetVulkan_1_2:
return spv_target_env::SPV_ENV_UNIVERSAL_1_5; //?? should change to SPV_ENV_VULKAN_1_2, when available
default:
break;
}