kick
/Users/morten/Programmering/cpp/kick/src/kick/material/shader_enums.cpp
00001 #include "kick/material/shader_enums.h"
00002 
00003 using namespace std;
00004 
00005 namespace kick {
00006     string to_string(AttributeDescriptor attDesc) {
00007         std::string res = "AttributeDescriptor {";
00008         res += " Index: " + std::to_string(attDesc.index);
00009         res += ", Size: " + std::to_string(attDesc.size);
00010         res += ", Type: " + std::to_string(attDesc.type);
00011         res += ", Name: " + attDesc.name;
00012         res += ", Semantic: " + to_string(attDesc.semantic);
00013         res += " }";
00014         return res;
00015     }
00016 
00017     string to_string(UniformDescriptor uniformDesc) {
00018         std::string res = "UniformDescriptor {";
00019         res += " Index: " + std::to_string(uniformDesc.index);
00020         res += ", Size: " + std::to_string(uniformDesc.size);
00021         res += ", Type: " + std::to_string(uniformDesc.type);
00022         res += ", Name: " + uniformDesc.name;
00023         res += " }";
00024         return res;
00025     }
00026 }
 All Classes Functions Variables