| 153 | return 0; |
| 154 | } |
| 155 | u8 GetTextureDimension(const char* name) |
| 156 | { |
| 157 | static const std::vector<const char*> names = { |
| 158 | "Texture1D", "Texture2D", "Texture3D", |
| 159 | "sampler1D", "sampler2D", "sampler3D", |
| 160 | "isampler1D", "isampler2D", "isampler3D", |
| 161 | "usampler1D", "usampler2D", "usampler3D" |
| 162 | }; |
| 163 | for (u16 i = 0; i < names.size(); i++) |
| 164 | if (strcmp(names[i], name) == 0) |
| 165 | return (i % 3) + 1; |
| 166 | return 0; |
| 167 | } |
| 168 | |
| 169 | sd::Matrix* CopyMatrixData(sd::Matrix* mat) |
| 170 | { |
no test coverage detected