| 140 | } |
| 141 | |
| 142 | bool IsBasicTexture(const char* name) |
| 143 | { |
| 144 | static const std::vector<const char*> names = { |
| 145 | "Texture1D", "Texture2D", "Texture3D", |
| 146 | "isampler1D", "usampler1D", "sampler1D", |
| 147 | "isampler2D", "usampler2D", "sampler2D", |
| 148 | "isampler3D", "usampler3D", "sampler3D" |
| 149 | }; |
| 150 | for (u16 i = 0; i < names.size(); i++) |
| 151 | if (strcmp(names[i], name) == 0) |
| 152 | return 1; |
| 153 | return 0; |
| 154 | } |
| 155 | u8 GetTextureDimension(const char* name) |
| 156 | { |
| 157 | static const std::vector<const char*> names = { |
no test coverage detected