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

Function GetTextureType

engine/graphics/src/graphics.cpp:1997–2003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1995 return t ? t->m_MipMapCount : 0;
1996 }
1997 TextureType GetTextureType(HContext context, HTexture texture)
1998 {
1999 GraphicsContext* gc = (GraphicsContext*)context;
2000 DM_MUTEX_OPTIONAL_SCOPED_LOCK(gc->m_AssetHandleContainerMutex);
2001 const Texture* t = GetAssetFromContainer<Texture>(gc->m_AssetHandleContainer, texture);
2002 return t ? t->m_Type : TEXTURE_TYPE_2D;
2003 }
2004 uint32_t GetTextureStatusFlags(HContext context, HTexture texture)
2005 {
2006 GraphicsContext* gc = (GraphicsContext*)context;

Callers 7

GetCanBindTextureFunction · 0.85
PushTextureInfoFunction · 0.85
TEST_FFunction · 0.85
SetMaterialTextureFunction · 0.85
SetComputeTextureFunction · 0.85
TEST_FFunction · 0.85
CheckTextureMethod · 0.85

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
CheckTextureMethod · 0.68