fix function name mangling
This commit is contained in:
@@ -207,8 +207,8 @@ static inline void ao_tile(
|
||||
uniform int nsubsamples,
|
||||
uniform float image[])
|
||||
{
|
||||
static uniform Plane plane = { { 0.0f, -0.5f, 0.0f }, { 0.f, 1.f, 0.f } };
|
||||
static uniform Sphere spheres[3] = {
|
||||
uniform Plane plane = { { 0.0f, -0.5f, 0.0f }, { 0.f, 1.f, 0.f } };
|
||||
uniform Sphere spheres[3] = {
|
||||
{ { -2.0f, 0.0f, -3.5f }, 0.5f },
|
||||
{ { -0.5f, 0.0f, -3.0f }, 0.5f },
|
||||
{ { 1.0f, 0.0f, -2.2f }, 0.5f } };
|
||||
|
||||
6
type.cpp
6
type.cpp
@@ -744,7 +744,7 @@ EnumType::Mangle() const {
|
||||
std::string ret;
|
||||
if (isConst) ret += "C";
|
||||
ret += variability.MangleString();
|
||||
ret += std::string("enum[") + name + std::string("]");
|
||||
ret += std::string("enum_5B_") + name + std::string("_5C_");
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -2040,12 +2040,12 @@ lMangleStruct(Variability variability, bool isConst, const std::string &name) {
|
||||
Assert(variability != Variability::Unbound);
|
||||
|
||||
std::string ret;
|
||||
ret += "s[";
|
||||
ret += "s_5B_";
|
||||
if (isConst)
|
||||
ret += "_c_";
|
||||
ret += variability.MangleString();
|
||||
|
||||
ret += name + std::string("]");
|
||||
ret += name + std::string("_5C_");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user