| 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; |