Lines Matching refs:m_tex
106 memset(m_tex.unit, 0, sizeof(m_tex.unit)); in init()
107 m_tex.activeUnit = &m_tex.unit[0]; in init()
108 m_tex.textureRecs = NULL; in init()
971 m_tex.activeUnit = &m_tex.unit[unit]; in setActiveTextureUnit()
977 return GL_TEXTURE0 + (m_tex.activeUnit - &m_tex.unit[0]); in getActiveTextureUnit()
984 m_tex.activeUnit->enables |= (1u << TEXTURE_2D); in enableTextureTarget()
987 m_tex.activeUnit->enables |= (1u << TEXTURE_EXTERNAL); in enableTextureTarget()
996 m_tex.activeUnit->enables &= ~(1u << TEXTURE_2D); in disableTextureTarget()
999 m_tex.activeUnit->enables &= ~(1u << TEXTURE_EXTERNAL); in disableTextureTarget()
1005 m_tex.unit[unit].boundSampler = sampler; in bindSampler()
1009 return m_tex.unit[unit].boundSampler == sampler; in isSamplerBindNoOp()
1015 uint32_t currentSampler = m_tex.unit[j].boundSampler; in onDeleteSamplers()
1017 m_tex.unit[j].boundSampler = 0; in onDeleteSamplers()
1025 unsigned int enables = m_tex.activeUnit->enables; in getPriorityEnabledTarget()
1060 m_tex.activeUnit->texture[TEXTURE_2D] = texture; in bindTexture()
1063 m_tex.activeUnit->texture[TEXTURE_EXTERNAL] = texture; in bindTexture()
1066 m_tex.activeUnit->texture[TEXTURE_CUBE_MAP] = texture; in bindTexture()
1069 m_tex.activeUnit->texture[TEXTURE_2D_ARRAY] = texture; in bindTexture()
1072 m_tex.activeUnit->texture[TEXTURE_3D] = texture; in bindTexture()
1075 m_tex.activeUnit->texture[TEXTURE_2D_MULTISAMPLE] = texture; in bindTexture()
1106 (*(m_tex.textureRecs))[id] = tex; in addTextureRec()
1112 m_tex.textureRecs->find(id); in getTextureRec()
1113 if (it == m_tex.textureRecs->end()) { in getTextureRec()
1203 return m_tex.activeUnit->texture[TEXTURE_2D]; in getBoundTexture()
1205 return m_tex.activeUnit->texture[TEXTURE_EXTERNAL]; in getBoundTexture()
1207 return m_tex.activeUnit->texture[TEXTURE_CUBE_MAP]; in getBoundTexture()
1209 return m_tex.activeUnit->texture[TEXTURE_2D_ARRAY]; in getBoundTexture()
1211 return m_tex.activeUnit->texture[TEXTURE_3D]; in getBoundTexture()
1213 return m_tex.activeUnit->texture[TEXTURE_2D_MULTISAMPLE]; in getBoundTexture()
1299 m_tex.textureRecs->erase(*texture); in deleteTextures()
1301 for (TextureUnit* unit = m_tex.unit; in deleteTextures()
1302 unit != m_tex.unit + MAX_TEXTURE_UNITS; in deleteTextures()
1989 m_tex.textureRecs = sharedTexData; in setTextureData()