mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-24 00:40:14 +00:00
Add GLSL instructions NMin, NMax, NClamp
These appear first in GLSL.std.450 in 1.0 Rev3
This commit is contained in:
parent
1d9a876f95
commit
58c4e1d57a
@ -120,6 +120,9 @@ static const spv_ext_inst_desc_t glslStd450Entries[] = {
|
||||
{GLSL450Inst1(InterpolateAtCentroid)},
|
||||
{GLSL450Inst2(InterpolateAtSample)},
|
||||
{GLSL450Inst2(InterpolateAtOffset)},
|
||||
{GLSL450Inst2(NMin)},
|
||||
{GLSL450Inst2(NMax)},
|
||||
{GLSL450Inst2(NClamp)},
|
||||
};
|
||||
|
||||
static const spv_ext_inst_desc_t openclEntries[] = {
|
||||
|
@ -166,7 +166,7 @@ INSTANTIATE_TEST_CASE_P(
|
||||
{"UClamp", "%5 %5 %5", 44, 8, {5, 5, 5}},
|
||||
{"SClamp", "%5 %5 %5", 45, 8, {5, 5, 5}},
|
||||
{"FMix", "%5 %5 %5", 46, 8, {5, 5, 5}},
|
||||
{"IMix", "%5 %5 %5", 47, 8, {5, 5, 5}},
|
||||
{"IMix", "%5 %5 %5", 47, 8, {5, 5, 5}}, // Bug 15452. Reserved.
|
||||
{"Step", "%5 %5", 48, 7, {5, 5}},
|
||||
{"SmoothStep", "%5 %5 %5", 49, 8, {5, 5, 5}},
|
||||
{"Fma", "%5 %5 %5", 50, 8, {5, 5, 5}},
|
||||
@ -202,6 +202,9 @@ INSTANTIATE_TEST_CASE_P(
|
||||
{"InterpolateAtSample", "%5 %5", 77, 7, {5, 5}},
|
||||
{"InterpolateAtOffset", "%5 %5", 78, 7, {5, 5}},
|
||||
// clang-format on
|
||||
{"NMin", "%5 %5", 79, 7, {5, 5}},
|
||||
{"NMax", "%5 %5", 80, 7, {5, 5}},
|
||||
{"NClamp", "%5 %5 %5", 81, 8, {5, 5, 5}},
|
||||
})));
|
||||
|
||||
} // anonymous namespace
|
||||
|
Loading…
Reference in New Issue
Block a user