Lines Matching refs:m_tex

123     memset(m_tex.unit, 0, sizeof(m_tex.unit));  in init()
124 m_tex.activeUnit = &m_tex.unit[0]; in init()
125 m_tex.textureRecs = NULL; in init()
1342 m_tex.activeUnit = &m_tex.unit[unit]; in setActiveTextureUnit()
1348 return GL_TEXTURE0 + (m_tex.activeUnit - &m_tex.unit[0]); in getActiveTextureUnit()
1355 m_tex.activeUnit->enables |= (1u << TEXTURE_2D); in enableTextureTarget()
1358 m_tex.activeUnit->enables |= (1u << TEXTURE_EXTERNAL); in enableTextureTarget()
1367 m_tex.activeUnit->enables &= ~(1u << TEXTURE_2D); in disableTextureTarget()
1370 m_tex.activeUnit->enables &= ~(1u << TEXTURE_EXTERNAL); in disableTextureTarget()
1378 if (m_tex.unit[unit].boundSampler) { in bindSampler()
1381 m_tex.unit[unit].boundSampler = sampler; in bindSampler()
1386 return m_tex.unit[unit].boundSampler == sampler; in isSamplerBindNoOp()
1392 uint32_t currentSampler = m_tex.unit[j].boundSampler; in onDeleteSamplers()
1394 m_tex.unit[j].boundSampler = 0; in onDeleteSamplers()
1402 unsigned int enables = m_tex.activeUnit->enables; in getPriorityEnabledTarget()
1438 m_tex.activeUnit->texture[TEXTURE_2D] = texture; in bindTexture()
1441 m_tex.activeUnit->texture[TEXTURE_EXTERNAL] = texture; in bindTexture()
1444 m_tex.activeUnit->texture[TEXTURE_CUBE_MAP] = texture; in bindTexture()
1447 m_tex.activeUnit->texture[TEXTURE_2D_ARRAY] = texture; in bindTexture()
1450 m_tex.activeUnit->texture[TEXTURE_3D] = texture; in bindTexture()
1453 m_tex.activeUnit->texture[TEXTURE_2D_MULTISAMPLE] = texture; in bindTexture()
1456 m_tex.activeUnit->texture[TEXTURE_BUFFER] = texture; in bindTexture()
1507 AutoWriteLock guard(m_tex.textureRecs->lock); in addTextureRec()
1508 m_tex.textureRecs->map[id] = std::shared_ptr<TextureRec>(tex); in addTextureRec()
1513 AutoReadLock guard(m_tex.textureRecs->lock); in getTextureRec()
1515 m_tex.textureRecs->map.find(id); in getTextureRec()
1516 if (it == m_tex.textureRecs->map.end()) { in getTextureRec()
1524 m_tex.textureRecs->map.find(id); in getTextureRecPtrLocked()
1525 if (it == m_tex.textureRecs->map.end()) { in getTextureRecPtrLocked()
1532 AutoReadLock guard(m_tex.textureRecs->lock); in getTextureRecPtr()
1730 return m_tex.activeUnit->texture[TEXTURE_2D]; in getBoundTexture()
1732 return m_tex.activeUnit->texture[TEXTURE_EXTERNAL]; in getBoundTexture()
1734 return m_tex.activeUnit->texture[TEXTURE_CUBE_MAP]; in getBoundTexture()
1736 return m_tex.activeUnit->texture[TEXTURE_2D_ARRAY]; in getBoundTexture()
1738 return m_tex.activeUnit->texture[TEXTURE_3D]; in getBoundTexture()
1740 return m_tex.activeUnit->texture[TEXTURE_2D_MULTISAMPLE]; in getBoundTexture()
1742 return m_tex.activeUnit->texture[TEXTURE_BUFFER]; in getBoundTexture()
2066 AutoWriteLock guard(m_tex.textureRecs->lock); in deleteTextures()
2072 m_tex.textureRecs->map.erase(*texture); in deleteTextures()
2073 for (TextureUnit* unit = m_tex.unit; in deleteTextures()
2074 unit != m_tex.unit + MAX_TEXTURE_UNITS; in deleteTextures()
2918 m_tex.textureRecs = sharedTexData; in setTextureData()