Move vector into the class member

This commit is contained in:
Polona Caserman 2017-01-16 13:21:27 +01:00
parent 5d7e126d52
commit f47305c74d
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,8 @@ using namespace spv;
using namespace spirv_cross;
using namespace std;
static const std::vector<std::string> reserved_names = {"kernel", "bias"};
CompilerMSL::CompilerMSL(vector<uint32_t> spirv_)
: CompilerGLSL(move(spirv_))
{

View File

@ -168,7 +168,6 @@ protected:
std::string stage_out_var_name = "out";
std::string stage_uniform_var_name = "uniforms";
std::string sampler_name_suffix = "Smplr";
std::vector<std::string> reserved_names = { "kernel", "bias" };
// Extracts a set of opcodes that should be implemented as a bespoke custom function
// whose full source code is output as part of the shader source code.