Add std450 instructions 49-52.

This commit is contained in:
Dejan Mircevski 2015-08-27 11:23:54 -04:00 committed by David Neto
parent dca65b3f8c
commit c48fcce978
2 changed files with 8 additions and 0 deletions

View File

@ -66,6 +66,10 @@ static const spv_ext_inst_desc_t glslStd450Entries[] = {
// clang-format off
{"Smoothstep", GLSLstd450::GLSLstd450SmoothStep, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID}},
// clang-format on
{GL450InstWithThreeIdParam(Fma)},
{GL450InstWithTwoIdParam(Frexp)},
{GL450InstWithOneIdParam(FrexpStruct)},
{GL450InstWithTwoIdParam(Ldexp)},
// TODO: Add remaining GLSL.std.450 instructions
};

View File

@ -179,4 +179,8 @@ INSTANTIATE_TEST_CASE_P(
{kF32Type, kF32Const, "%4", "Mix", "%5 %5 %5", 46, 8, {5, 5, 5}},
{kF32Type, kF32Const, "%4", "Step", "%5 %5", 47, 7, {5, 5}},
{kF32Type, kF32Const, "%4", "Smoothstep", "%5 %5 %5", 48, 8, {5, 5, 5}},
{kF32Type, kF32Const, "%4", "Fma", "%5 %5 %5", 49, 8, {5, 5, 5}},
{kF32Type, kF32Const, "%4", "Frexp", "%5 %5", 50, 7, {5, 5}},
{kF32Type, kF32Const, "%4", "FrexpStruct", "%5", 51, 6, {5}},
{kF32Type, kF32Const, "%4", "Ldexp", "%5 %5", 52, 7, {5, 5}},
})));