Fixes from review #2 of PR 321.

This commit is contained in:
Bill Hollings 2017-11-08 13:54:28 -05:00
parent 2086274b62
commit 696bf0db0f
3 changed files with 5 additions and 3 deletions

View File

@ -266,7 +266,9 @@ public:
// Returns a mapping between the original entry point name in the SPIR-V and a modified
// name defined by the backend. Some backends (eg. MSL) restrict the legal names allowed
// for entry point names (eg. "main" is illegal in MSL).
// for entry point names (eg. "main" is illegal in MSL). Renaming occurs during compile().
// Calling this function after before compiling will return a map of the original names
// to those same original names.
std::unordered_map<std::string, std::string> get_entry_point_name_map() const;
// Returns the internal data structure for entry points to allow poking around.

View File

@ -106,7 +106,7 @@ string CompilerMSL::compile()
do
{
if (pass_count >= 3)
SPIRV_CROSS_THROW("Over 2 compilation loops detected. Must be a bug!");
SPIRV_CROSS_THROW("Over 3 compilation loops detected. Must be a bug!");
reset();

View File

@ -18,12 +18,12 @@
#define SPIRV_CROSS_MSL_HPP
#include "spirv_glsl.hpp"
#include <limits>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include <limits>
namespace spirv_cross
{