mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-12 17:30:15 +00:00
Add GLSL std450 extended instruction 65-71.
This commit is contained in:
parent
4799482787
commit
3cb589639d
@ -72,6 +72,15 @@ static const spv_ext_inst_desc_t glslStd450Entries[] = {
|
|||||||
{GLSL450Inst2(Frexp)},
|
{GLSL450Inst2(Frexp)},
|
||||||
{GLSL450Inst1(FrexpStruct)},
|
{GLSL450Inst1(FrexpStruct)},
|
||||||
{GLSL450Inst2(Ldexp)},
|
{GLSL450Inst2(Ldexp)},
|
||||||
|
{GLSL450Inst1(Length)},
|
||||||
|
{GLSL450Inst2(Distance)},
|
||||||
|
{GLSL450Inst2(Cross)},
|
||||||
|
{GLSL450Inst1(Normalize)},
|
||||||
|
// clang-format off
|
||||||
|
{"Faceforward", GLSLstd450::GLSLstd450FaceForward, {SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID, SPV_OPERAND_TYPE_ID}},
|
||||||
|
// clang-format on
|
||||||
|
{GLSL450Inst2(Reflect)},
|
||||||
|
{GLSL450Inst3(Refract)},
|
||||||
// TODO: Add remaining GLSL.std.450 instructions
|
// TODO: Add remaining GLSL.std.450 instructions
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -187,4 +187,14 @@ INSTANTIATE_TEST_CASE_P(
|
|||||||
{kF32Type, kF32Const, "%4", "Frexp", "%5 %5", 50, 7, {5, 5}},
|
{kF32Type, kF32Const, "%4", "Frexp", "%5 %5", 50, 7, {5, 5}},
|
||||||
{kF32Type, kF32Const, "%4", "FrexpStruct", "%5", 51, 6, {5}},
|
{kF32Type, kF32Const, "%4", "FrexpStruct", "%5", 51, 6, {5}},
|
||||||
{kF32Type, kF32Const, "%4", "Ldexp", "%5 %5", 52, 7, {5, 5}},
|
{kF32Type, kF32Const, "%4", "Ldexp", "%5 %5", 52, 7, {5, 5}},
|
||||||
|
|
||||||
|
{kF32Type, kF32Const, "%4", "Length", "%5", 65, 6, {5}},
|
||||||
|
{kF32Type, kF32Const, "%4", "Distance", "%5 %5", 66, 7, {5, 5}},
|
||||||
|
{kF32Type, kF32Const, "%4", "Cross", "%5 %5", 67, 7, {5, 5}},
|
||||||
|
{kF32Type, kF32Const, "%4", "Normalize", "%5", 68, 6, {5}},
|
||||||
|
// clang-format off
|
||||||
|
{kF32Type, kF32Const, "%4", "Faceforward", "%5 %5 %5", 69, 8, {5, 5, 5}},
|
||||||
|
// clang-format on
|
||||||
|
{kF32Type, kF32Const, "%4", "Reflect", "%5 %5", 70, 7, {5, 5}},
|
||||||
|
{kF32Type, kF32Const, "%4", "Refract", "%5 %5 %5", 71, 8, {5, 5, 5}},
|
||||||
})));
|
})));
|
||||||
|
Loading…
Reference in New Issue
Block a user