Lines Matching refs:mState
743 mState(type), in Texture()
744 mTexture(factory->createTexture(mState)), in Texture()
771 mState.mBuffer.set(context, nullptr, 0, 0); in onDestroy()
786 mState.mLabel = label; in setLabel()
792 return mState.mLabel; in getLabel()
797 mState.mSwizzleState.swizzleRed = swizzleRed; in setSwizzleRed()
803 return mState.mSwizzleState.swizzleRed; in getSwizzleRed()
808 mState.mSwizzleState.swizzleGreen = swizzleGreen; in setSwizzleGreen()
814 return mState.mSwizzleState.swizzleGreen; in getSwizzleGreen()
819 mState.mSwizzleState.swizzleBlue = swizzleBlue; in setSwizzleBlue()
825 return mState.mSwizzleState.swizzleBlue; in getSwizzleBlue()
830 mState.mSwizzleState.swizzleAlpha = swizzleAlpha; in setSwizzleAlpha()
836 return mState.mSwizzleState.swizzleAlpha; in getSwizzleAlpha()
841 if (mState.mSamplerState.setMinFilter(minFilter)) in setMinFilter()
849 return mState.mSamplerState.getMinFilter(); in getMinFilter()
854 if (mState.mSamplerState.setMagFilter(magFilter)) in setMagFilter()
862 return mState.mSamplerState.getMagFilter(); in getMagFilter()
867 if (mState.mSamplerState.setWrapS(wrapS)) in setWrapS()
875 return mState.mSamplerState.getWrapS(); in getWrapS()
880 if (mState.mSamplerState.getWrapT() == wrapT) in setWrapT()
882 if (mState.mSamplerState.setWrapT(wrapT)) in setWrapT()
890 return mState.mSamplerState.getWrapT(); in getWrapT()
895 if (mState.mSamplerState.setWrapR(wrapR)) in setWrapR()
903 return mState.mSamplerState.getWrapR(); in getWrapR()
908 if (mState.mSamplerState.setMaxAnisotropy(maxAnisotropy)) in setMaxAnisotropy()
916 return mState.mSamplerState.getMaxAnisotropy(); in getMaxAnisotropy()
921 if (mState.mSamplerState.setMinLod(minLod)) in setMinLod()
929 return mState.mSamplerState.getMinLod(); in getMinLod()
934 if (mState.mSamplerState.setMaxLod(maxLod)) in setMaxLod()
942 return mState.mSamplerState.getMaxLod(); in getMaxLod()
947 if (mState.mSamplerState.setCompareMode(compareMode)) in setCompareMode()
955 return mState.mSamplerState.getCompareMode(); in getCompareMode()
960 if (mState.mSamplerState.setCompareFunc(compareFunc)) in setCompareFunc()
968 return mState.mSamplerState.getCompareFunc(); in getCompareFunc()
973 if (mState.mSamplerState.setSRGBDecode(sRGBDecode)) in setSRGBDecode()
981 return mState.mSamplerState.getSRGBDecode(); in getSRGBDecode()
986 SrgbOverride oldOverride = mState.mSrgbOverride; in setSRGBOverride()
987 mState.mSrgbOverride = (sRGBOverride == GL_SRGB) ? SrgbOverride::SRGB : SrgbOverride::Default; in setSRGBOverride()
988 if (mState.mSrgbOverride != oldOverride) in setSRGBOverride()
996 return (mState.mSrgbOverride == SrgbOverride::SRGB) ? GL_SRGB : GL_NONE; in getSRGBOverride()
1001 return mState.mSamplerState; in getSamplerState()
1006 if (mState.setBaseLevel(baseLevel)) in setBaseLevel()
1008 ANGLE_TRY(mTexture->setBaseLevel(context, mState.getEffectiveBaseLevel())); in setBaseLevel()
1017 return mState.mBaseLevel; in getBaseLevel()
1022 if (mState.setMaxLevel(maxLevel)) in setMaxLevel()
1030 return mState.mMaxLevel; in getMaxLevel()
1035 if (mState.mDepthStencilTextureMode != mode) in setDepthStencilTextureMode()
1037 mState.mDepthStencilTextureMode = mode; in setDepthStencilTextureMode()
1044 return mState.mDepthStencilTextureMode; in getDepthStencilTextureMode()
1049 return mState.mImmutableFormat; in getImmutableFormat()
1054 return mState.mImmutableLevels; in getImmutableLevels()
1059 mState.mUsage = usage; in setUsage()
1065 return mState.mUsage; in getUsage()
1070 return mState; in getTextureState()
1075 ASSERT(TextureTargetToType(target) == mState.mType); in getExtents()
1076 return mState.getImageDesc(target, level).size; in getExtents()
1081 ASSERT(TextureTargetToType(target) == mState.mType); in getWidth()
1082 return mState.getImageDesc(target, level).size.width; in getWidth()
1087 ASSERT(TextureTargetToType(target) == mState.mType); in getHeight()
1088 return mState.getImageDesc(target, level).size.height; in getHeight()
1093 ASSERT(TextureTargetToType(target) == mState.mType); in getDepth()
1094 return mState.getImageDesc(target, level).size.depth; in getDepth()
1099 ASSERT(TextureTargetToType(target) == mState.mType); in getFormat()
1100 return mState.getImageDesc(target, level).format; in getFormat()
1105 ASSERT(TextureTargetToType(target) == mState.mType); in getSamples()
1106 return mState.getImageDesc(target, level).samples; in getSamples()
1111 ASSERT(TextureTargetToType(target) == mState.mType); in getFixedSampleLocations()
1112 return mState.getImageDesc(target, level).fixedSampleLocations; in getFixedSampleLocations()
1117 return mState.getMipmapMaxLevel(); in getMipmapMaxLevel()
1122 return mState.computeMipmapCompleteness(); in isMipmapComplete()
1144 for (const ImageDesc &imageDesc : mState.mImageDescs) in getMemorySize()
1159 return mState.getImageDesc(target, level).getMemorySize(); in getLevelMemorySize()
1164 mState.mInitState = initState; in signalDirtyStorage()
1166 mState.mCachedSamplerFormatValid = false; in signalDirtyStorage()
1174 mState.mCachedSamplerFormatValid = false; in signalDirtyState()
1189 ASSERT(TextureTargetToType(target) == mState.mType); in setImage()
1201 mState.setImageDesc(target, level, ImageDesc(size, Format(internalFormat, type), initState)); in setImage()
1220 ASSERT(TextureTargetToType(target) == mState.mType); in setSubImage()
1244 ASSERT(TextureTargetToType(target) == mState.mType); in setCompressedImage()
1258 mState.setImageDesc(target, level, ImageDesc(size, Format(internalFormat), initState)); in setCompressedImage()
1273 ASSERT(TextureTargetToType(target) == mState.mType); in setCompressedSubImage()
1293 ASSERT(TextureTargetToType(target) == mState.mType); in copyImage()
1340 mState.setImageDesc(target, level, in copyImage()
1350 mState.setImageDesc(target, level, in copyImage()
1367 ASSERT(TextureTargetToType(index.getTarget()) == mState.mType); in copySubImage()
1457 ASSERT(TextureTargetToType(target) == mState.mType); in copyTexture()
1474 source->mState.getImageDesc(NonCubeTextureTypeToTarget(source->getType()), sourceLevel); in copyTexture()
1476 mState.setImageDesc( in copyTexture()
1496 ASSERT(TextureTargetToType(target) == mState.mType); in copySubTexture()
1525 source->mState.getImageDesc(NonCubeTextureTypeToTarget(source->getType()), 0); in copyCompressedTexture()
1526 mState.setImageDesc(NonCubeTextureTypeToTarget(getType()), 0, sourceDesc); in copyCompressedTexture()
1537 ASSERT(type == mState.mType); in setStorage()
1543 mState.mImmutableFormat = true; in setStorage()
1544 mState.mImmutableLevels = static_cast<GLuint>(levels); in setStorage()
1545 mState.clearImageDescs(); in setStorage()
1546 mState.setImageDescChain(0, static_cast<GLuint>(levels - 1), size, Format(internalFormat), in setStorage()
1571 ASSERT(TextureTargetToType(target) == mState.mType); in setImageExternal()
1582 mState.setImageDesc(target, level, ImageDesc(size, Format(internalFormat, type), initState)); in setImageExternal()
1598 ASSERT(type == mState.mType); in setStorageMultisample()
1608 mState.mImmutableFormat = true; in setStorageMultisample()
1609 mState.mImmutableLevels = static_cast<GLuint>(1); in setStorageMultisample()
1610 mState.clearImageDescs(); in setStorageMultisample()
1611 mState.setImageDescChainMultisample(size, Format(internalFormat), samples, fixedSampleLocations, in setStorageMultisample()
1632 ASSERT(type == mState.mType); in setStorageExternalMemory()
1641 mState.mImmutableFormat = true; in setStorageExternalMemory()
1642 mState.mImmutableLevels = static_cast<GLuint>(levels); in setStorageExternalMemory()
1643 mState.clearImageDescs(); in setStorageExternalMemory()
1644 mState.setImageDescChain(0, static_cast<GLuint>(levels - 1), size, Format(internalFormat), in setStorageExternalMemory()
1671 const GLuint baseLevel = mState.getEffectiveBaseLevel(); in generateMipmap()
1672 const GLuint maxLevel = mState.getMipmapMaxLevel(); in generateMipmap()
1683 const ImageDesc &baseImageInfo = mState.getImageDesc(mState.getBaseImageTarget(), baseLevel); in generateMipmap()
1695 ImageIndexIterator::MakeGeneric(mState.mType, baseLevel, baseLevel + 1, in generateMipmap()
1700 const ImageDesc &desc = mState.getImageDesc(index.getTarget(), index.getLevelIndex()); in generateMipmap()
1713 mState.setImageDescChain(baseLevel, maxLevel, baseImageInfo.size, baseImageInfo.format, in generateMipmap()
1734 ASSERT(mState.mType == TextureType::_2D || mState.mType == TextureType::Rectangle); in bindTexImageFromSurface()
1737 mState.setImageDesc(NonCubeTextureTypeToTarget(mState.mType), 0, desc); in bindTexImageFromSurface()
1749 ASSERT(mState.mType == TextureType::_2D || mState.mType == TextureType::Rectangle); in releaseTexImageFromSurface()
1750 mState.clearImageDesc(NonCubeTextureTypeToTarget(mState.mType), 0); in releaseTexImageFromSurface()
1764 ASSERT(mState.mType == TextureType::External); in bindStream()
1777 ANGLE_TRY(mTexture->setImageExternal(context, mState.mType, mBoundStream, desc)); in acquireImageFromStream()
1780 mState.setImageDesc(NonCubeTextureTypeToTarget(mState.mType), 0, in acquireImageFromStream()
1789 ANGLE_TRY(mTexture->setImageExternal(context, mState.mType, nullptr, in releaseImageFromStream()
1793 mState.clearImageDesc(NonCubeTextureTypeToTarget(mState.mType), 0); in releaseImageFromStream()
1821 ASSERT(type == mState.mType); in setEGLImageTarget()
1838 mState.clearImageDescs(); in setEGLImageTarget()
1839 mState.setImageDesc(NonCubeTextureTypeToTarget(type), 0, in setEGLImageTarget()
1856 if (!mState.isCubeComplete()) in getAttachmentSize()
1862 return mState.getImageDesc(imageIndex).size; in getAttachmentSize()
1874 if (!mState.isCubeComplete()) in getAttachmentFormat()
1879 return mState.getImageDesc(imageIndex).format; in getAttachmentFormat()
1930 mState.mSamplerState.setBorderColor(color); in setBorderColor()
1936 return mState.mSamplerState.getBorderColor(); in getBorderColor()
1942 if (mState.mType != TextureType::External) in getRequiredTextureImageUnits()
1952 mState.setCrop(rect); in setCrop()
1957 return mState.getCrop(); in getCrop()
1962 mState.setGenerateMipmapHint(hint); in setGenerateMipmapHint()
1967 return mState.getGenerateMipmapHint(); in getGenerateMipmapHint()
1985 mState.mImmutableFormat = true; in setBufferRange()
1986 mState.mBuffer.set(context, buffer, offset, size); in setBufferRange()
1989 mState.clearImageDescs(); in setBufferRange()
1997 size = GetBoundBufferAvailableSize(mState.mBuffer); in setBufferRange()
1999 mState.mImmutableLevels = static_cast<GLuint>(1); in setBufferRange()
2003 mState.setImageDesc(TextureTarget::Buffer, 0, in setBufferRange()
2016 return mState.mBuffer; in getBuffer()
2062 optionalSampler ? optionalSampler->getSamplerState() : mState.mSamplerState; in isSamplerComplete()
2071 mState.computeSamplerCompleteness(samplerState, contextState); in isSamplerComplete()
2088 if (!context->isRobustResourceInitEnabled() || mState.mInitState == InitState::Initialized) in ensureInitialized()
2096 ImageIndexIterator::MakeGeneric(mState.mType, 0, IMPLEMENTATION_MAX_TEXTURE_LEVELS + 1, in ensureInitialized()
2102 mState.mImageDescs[GetImageDescIndex(index.getTarget(), index.getLevelIndex())]; in ensureInitialized()
2105 ASSERT(mState.mInitState == InitState::MayNeedInit); in ensureInitialized()
2115 mState.mInitState = InitState::Initialized; in ensureInitialized()
2129 if (mState.getImageDesc(cubeFaceTarget, levelIndex).initState == InitState::MayNeedInit) in initState()
2137 return mState.getImageDesc(imageIndex).initState; in initState()
2154 ImageDesc newDesc = mState.getImageDesc(imageIndex); in setInitState()
2156 mState.setImageDesc(imageIndex.getTarget(), imageIndex.getLevelIndex(), newDesc); in setInitState()
2162 for (ImageDesc &imageDesc : mState.mImageDescs) in setInitState()
2170 mState.mInitState = initState; in setInitState()
2177 if (!context->isRobustResourceInitEnabled() || mState.mInitState == InitState::Initialized) in doesSubImageNeedInit()
2183 const ImageDesc &desc = mState.getImageDesc(imageIndex); in doesSubImageNeedInit()
2189 ASSERT(mState.mInitState == InitState::MayNeedInit); in doesSubImageNeedInit()
2248 mState.mInitState = InitState::MayNeedInit; in onSubjectStateChange()
2259 const gl::Buffer *buffer = mState.mBuffer.get(); in onSubjectStateChange()
2263 GLsizeiptr size = GetBoundBufferAvailableSize(mState.mBuffer); in onSubjectStateChange()
2265 ImageDesc desc = mState.getImageDesc(TextureTarget::Buffer, 0); in onSubjectStateChange()
2269 mState.setImageDesc(TextureTarget::Buffer, 0, desc); in onSubjectStateChange()
2313 if (!mState.mHasBeenBoundAsImage) in onBindAsImageTexture()
2316 mState.mHasBeenBoundAsImage = true; in onBindAsImageTexture()