return "Khronos LLVM/SPIR-V Translator";
case SPV_GENERATOR_KHRONOS_ASSEMBLER:
return "Khronos SPIR-V Tools Assembler";
+ case SPV_GENERATOR_KHRONOS_GLSLANG:
+ return "Khronos Glslang Reference Front End";
default:
return "Unknown";
}
// These are vendor and tool.
SPV_GENERATOR_KHRONOS_LLVM_TRANSLATOR = 6,
SPV_GENERATOR_KHRONOS_ASSEMBLER = 7,
+ SPV_GENERATOR_KHRONOS_GLSLANG = 8,
SPV_GENERATOR_NUM_ENTRIES,
SPV_FORCE_16_BIT_ENUM(spv_generator_t)
} spv_generator_t;
"Khronos LLVM/SPIR-V Translator; 38"},
{SPV_GENERATOR_KHRONOS_ASSEMBLER, 2,
"Khronos SPIR-V Tools Assembler; 2"},
+ {SPV_GENERATOR_KHRONOS_GLSLANG, 1,
+ "Khronos Glslang Reference Front End; 1"},
{9, 18, "Unknown(9); 18"},
{65535, 32767, "Unknown(65535); 32767"},
}));
{SPV_GENERATOR_KHRONOS_LLVM_TRANSLATOR,
"Khronos LLVM/SPIR-V Translator"},
{SPV_GENERATOR_KHRONOS_ASSEMBLER, "Khronos SPIR-V Tools Assembler"},
+ {SPV_GENERATOR_KHRONOS_GLSLANG, "Khronos Glslang Reference Front End"},
}));
INSTANTIATE_TEST_CASE_P(
Unregistered, GeneratorMagicNumberTest,
::testing::ValuesIn(std::vector<EnumCase<spv_generator_t>>{
// Currently value 6 and beyond are unregiestered.
- {spv_generator_t(8), "Unknown"},
+ {spv_generator_t(9), "Unknown"},
{spv_generator_t(9999), "Unknown"},
}));
} // anonymous namespace