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

Function IsBasicTexture

src/Utils.cpp:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 = {

Callers 15

translateFunctionMethod · 0.85
translateDeclarationMethod · 0.85
lib_hlsl_Texture_SampleFunction · 0.85
lib_glsl_texelFetchFunction · 0.85
lib_glsl_textureFunction · 0.85
lib_glsl_textureGatherFunction · 0.85
lib_glsl_textureLodFunction · 0.85
lib_glsl_textureOffsetFunction · 0.85
lib_glsl_textureProjFunction · 0.85

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected