| 2014 | return flags; |
| 2015 | } |
| 2016 | uint8_t GetNumTextureHandles(HContext context, HTexture texture) |
| 2017 | { |
| 2018 | GraphicsContext* gc = (GraphicsContext*)context; |
| 2019 | DM_MUTEX_OPTIONAL_SCOPED_LOCK(gc->m_AssetHandleContainerMutex); |
| 2020 | const Texture* t = GetAssetFromContainer<Texture>(gc->m_AssetHandleContainer, texture); |
| 2021 | if (!t) |
| 2022 | { |
| 2023 | return 0; |
| 2024 | } |
| 2025 | return (uint8_t)dmMath::Min<uint32_t>(255u, (uint32_t)t->m_NumTextureIds); |
| 2026 | } |
| 2027 | uint32_t GetTextureUsageHintFlags(HContext context, HTexture texture) |
| 2028 | { |
| 2029 | GraphicsContext* gc = (GraphicsContext*)context; |
no outgoing calls