aboutsummaryrefslogtreecommitdiff
path: root/source/ext_inst.cpp
diff options
context:
space:
mode:
authorLei Zhang <antiagainst@google.com>2015-08-27 13:44:31 -0400
committerDavid Neto <dneto@google.com>2015-10-26 12:52:01 -0400
commit3cb589639d4beebf4ca6a810b1ab898a2741c0b8 (patch)
treee6bb67ef86482dab97972140c8db2b92e4efa357 /source/ext_inst.cpp
parent4799482787eb69fd2ca8c71b5ff9e2af62fdb0b0 (diff)
downloadspirv-tools-3cb589639d4beebf4ca6a810b1ab898a2741c0b8.tar.gz
Add GLSL std450 extended instruction 65-71.
Diffstat (limited to 'source/ext_inst.cpp')
-rw-r--r--source/ext_inst.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/ext_inst.cpp b/source/ext_inst.cpp
index cc3bae1c..a971694a 100644
--- a/source/ext_inst.cpp
+++ b/source/ext_inst.cpp
@@ -72,6 +72,15 @@ static const spv_ext_inst_desc_t glslStd450Entries[] = {
{GLSL450Inst2(Frexp)},
{GLSL450Inst1(FrexpStruct)},
{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
};