Skip to content

Commit

Permalink
Remove unused function, BaseTypeName (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoddicus authored Jun 15, 2020
1 parent a58978a commit 8496b78
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions hlsl/hlslParseables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,6 @@

namespace { // anonymous namespace functions

const char* BaseTypeName(const char argOrder, const char* scalarName, const char* vecName, const char* matName)
{
switch (argOrder) {
case 'S': return scalarName;
case 'V': return vecName;
case 'M': return matName;
default: return "UNKNOWN_TYPE";
}
}

// arg order queries
bool IsSamplerType(const char argType) { return argType == 'S' || argType == 's'; }
bool IsArrayed(const char argOrder) { return argOrder == '@' || argOrder == '&' || argOrder == '#'; }
Expand Down Expand Up @@ -863,7 +853,7 @@ void TBuiltInParseablesHlsl::initialize(int /*version*/, EProfile /*profile*/, c
{ "WaveActiveAllEqual", "S", "B", "SV", "DFUI", EShLangPSCS, false},
{ "WaveActiveAllEqualBool", "S", "B", "S", "B", EShLangPSCS, false},
{ "WaveActiveCountBits", "S", "U", "S", "B", EShLangPSCS, false},

{ "WaveActiveSum", nullptr, nullptr, "SV", "DFUI", EShLangPSCS, false},
{ "WaveActiveProduct", nullptr, nullptr, "SV", "DFUI", EShLangPSCS, false},
{ "WaveActiveBitAnd", nullptr, nullptr, "SV", "DFUI", EShLangPSCS, false},
Expand Down

0 comments on commit 8496b78

Please sign in to comment.