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

Function GetTextureStatusFlags

engine/graphics/src/graphics.cpp:2004–2015  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2002 return t ? t->m_Type : TEXTURE_TYPE_2D;
2003 }
2004 uint32_t GetTextureStatusFlags(HContext context, HTexture texture)
2005 {
2006 GraphicsContext* gc = (GraphicsContext*)context;
2007 DM_MUTEX_OPTIONAL_SCOPED_LOCK(gc->m_AssetHandleContainerMutex);
2008 const Texture* t = GetAssetFromContainer<Texture>(gc->m_AssetHandleContainer, texture);
2009 uint32_t flags = TEXTURE_STATUS_OK;
2010 if (t && dmAtomicGet32(&((Texture*)t)->m_DataState))
2011 {
2012 flags |= TEXTURE_STATUS_DATA_PENDING;
2013 }
2014 return flags;
2015 }
2016 uint8_t GetNumTextureHandles(HContext context, HTexture texture)
2017 {
2018 GraphicsContext* gc = (GraphicsContext*)context;

Callers 8

SynchronizeTextureFunction · 0.85
CreateTextureAsyncFunction · 0.85
PostDeleteTexturesFunction · 0.85
NullDeleteTextureFunction · 0.85
PostDeleteTexturesFunction · 0.85
OpenGLDeleteTextureFunction · 0.85

Calls 1

dmAtomicGet32Function · 0.85

Tested by 1