SpiecsEngine
 
Loading...
Searching...
No Matches

◆ StrType2Size()

static size_t Spices::StrType2Size ( const std::string & type)
static

Definition at line 6 of file TypeReflect.h.

7 {
8 if (type == "float4") return sizeof(glm::vec4);
9 else if (type == "float3") return sizeof(glm::vec3);
10 else if (type == "float2") return sizeof(glm::vec2);
11 else if (type == "float") return sizeof(float);
12 else if (type == "int") return sizeof(int);
13 else if (type == "bool") return sizeof(bool);
14
15 SPICES_CORE_ERROR("StrType2Size: Not supported type.");
16 return 0;
17 };