MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / GetTextureDimension

Function GetTextureDimension

src/Utils.cpp:155–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

lib_glsl_textureSizeFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected