MCPcopy Create free account
hub / github.com/defold/defold / GetTextureTypeLiteral

Function GetTextureTypeLiteral

engine/graphics/src/graphics.cpp:167–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 const char* GetTextureTypeLiteral(TextureType texture_type)
168 {
169 switch(texture_type)
170 {
171 GRAPHICS_ENUM_TO_STR_CASE(TEXTURE_TYPE_2D);
172 GRAPHICS_ENUM_TO_STR_CASE(TEXTURE_TYPE_2D_ARRAY);
173 GRAPHICS_ENUM_TO_STR_CASE(TEXTURE_TYPE_CUBE_MAP);
174 GRAPHICS_ENUM_TO_STR_CASE(TEXTURE_TYPE_IMAGE_2D);
175 default:break;
176 }
177 return "<unknown dmGraphics::TextureType>";
178 }
179
180 const char* GetBufferTypeLiteral(BufferType buffer_type)
181 {

Callers 6

GetCanBindTextureFunction · 0.85
SetMaterialTextureFunction · 0.85
SetTextureFunction · 0.85
SetComputeTextureFunction · 0.85
WebGPURealizeTextureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected