Lines Matching refs:mFunctions
76 : mFunctions(functions), in StateManagerGL()
151 mHasSeparateFramebufferBindings(mFunctions->isAtLeastGL(gl::Version(3, 0)) ||
152 mFunctions->isAtLeastGLES(gl::Version(3, 0))),
163 ASSERT(mFunctions);
178 if (mFunctions->standard == STANDARD_GL_DESKTOP)
180 mFunctions->enable(GL_PROGRAM_POINT_SIZE);
185 if ((mFunctions->profile & GL_CONTEXT_CORE_PROFILE_BIT) == 0)
187 mFunctions->enable(GL_POINT_SPRITE);
195 mFunctions->primitiveRestartIndex(primitiveRestartIndex);
202 !nativegl::CanUseDefaultVertexArrayObject(mFunctions))
204 ASSERT(nativegl::SupportsVertexArrayObjects(mFunctions));
205 mFunctions->genVertexArrays(1, &mDefaultVAO);
206 mFunctions->bindVertexArray(mDefaultVAO);
215 mFunctions->deleteVertexArrays(1, &mDefaultVAO); in ~StateManagerGL()
228 mFunctions->deleteProgram(program); in deleteProgram()
240 mFunctions->deleteVertexArrays(1, &vao); in deleteVertexArray()
270 mFunctions->deleteTextures(1, &texture); in deleteTexture()
286 mFunctions->deleteSamplers(1, &sampler); in deleteSampler()
330 mFunctions->deleteBuffers(1, &buffer); in deleteBuffer()
358 mFunctions->deleteFramebuffers(1, &fbo); in deleteFramebuffer()
371 mFunctions->deleteRenderbuffers(1, &rbo); in deleteRenderbuffer()
390 mFunctions->deleteTransformFeedbacks(1, &transformFeedback); in deleteTransformFeedback()
405 mFunctions->useProgram(mProgram); in forceUseProgram()
420 mFunctions->bindVertexArray(vao); in bindVertexArray()
435 mFunctions->bindBuffer(gl::ToGLenum(target), buffer); in bindBuffer()
453 mFunctions->bindBufferBase(gl::ToGLenum(target), static_cast<GLuint>(index), buffer); in bindBufferBase()
473 mFunctions->bindBufferRange(gl::ToGLenum(target), static_cast<GLuint>(index), buffer, in bindBufferRange()
483 mFunctions->activeTexture(GL_TEXTURE0 + static_cast<GLenum>(mTextureUnitIndex)); in activeTexture()
493 mFunctions->bindTexture(nativegl::GetTextureBindingTarget(type), texture); in bindTexture()
502 mFunctions->getIntegerv(nativegl::GetTextureBindingQuery(type), &boundTexture); in invalidateTexture()
512 mFunctions->bindSampler(static_cast<GLuint>(unit), sampler); in bindSampler()
535 mFunctions->bindImageTexture(angle::base::checked_cast<GLuint>(unit), texture, level, in bindImageTexture()
546 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_UNPACK_ALIGNMENT, mUnpackAlignment)); in setPixelUnpackState()
554 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_UNPACK_ROW_LENGTH, mUnpackRowLength)); in setPixelUnpackState()
562 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_UNPACK_SKIP_ROWS, mUnpackSkipRows)); in setPixelUnpackState()
570 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_UNPACK_SKIP_PIXELS, mUnpackSkipPixels)); in setPixelUnpackState()
578 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_UNPACK_IMAGE_HEIGHT, mUnpackImageHeight)); in setPixelUnpackState()
586 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_UNPACK_SKIP_IMAGES, mUnpackSkipImages)); in setPixelUnpackState()
613 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_PACK_ALIGNMENT, mPackAlignment)); in setPixelPackState()
621 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_PACK_ROW_LENGTH, mPackRowLength)); in setPixelPackState()
629 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_PACK_SKIP_ROWS, mPackSkipRows)); in setPixelPackState()
637 ANGLE_GL_TRY(context, mFunctions->pixelStorei(GL_PACK_SKIP_PIXELS, mPackSkipPixels)); in setPixelPackState()
669 mFunctions->bindFramebuffer(GL_FRAMEBUFFER, framebuffer); in bindFramebuffer()
683 mFunctions->bindFramebuffer(GL_READ_FRAMEBUFFER, framebuffer); in bindFramebuffer()
696 mFunctions->bindFramebuffer(GL_DRAW_FRAMEBUFFER, framebuffer); in bindFramebuffer()
711 mFunctions->flush(); in bindFramebuffer()
721 mFunctions->bindRenderbuffer(type, mRenderbuffer); in bindRenderbuffer()
741 mFunctions->bindTransformFeedback(type, mTransformFeedback); in bindTransformFeedback()
758 mFunctions->beginQuery(ToGLenum(type), queryId); in beginQuery()
766 mFunctions->endQuery(ToGLenum(type)); in endQuery()
1069 mFunctions->vertexAttrib4fv(static_cast<GLuint>(index), in setAttributeCurrentData()
1073 mFunctions->vertexAttribI4iv(static_cast<GLuint>(index), in setAttributeCurrentData()
1077 mFunctions->vertexAttribI4uiv( in setAttributeCurrentData()
1097 mFunctions->enable(GL_SCISSOR_TEST); in setScissorTestEnabled()
1101 mFunctions->disable(GL_SCISSOR_TEST); in setScissorTestEnabled()
1113 mFunctions->scissor(mScissor.x, mScissor.y, mScissor.width, mScissor.height); in setScissor()
1124 mFunctions->viewport(mViewport.x, mViewport.y, mViewport.width, mViewport.height); in setViewport()
1137 if (mFunctions->depthRangef) in setDepthRange()
1139 mFunctions->depthRangef(mNear, mFar); in setDepthRange()
1143 ASSERT(mFunctions->depthRange); in setDepthRange()
1144 mFunctions->depthRange(mNear, mFar); in setDepthRange()
1161 mFunctions->enable(GL_BLEND); in setBlendEnabled()
1165 mFunctions->disable(GL_BLEND); in setBlendEnabled()
1198 mFunctions->disable(GL_BLEND); in setBlendEnabledIndexed()
1203 mFunctions->enable(GL_BLEND); in setBlendEnabledIndexed()
1211 mFunctions->enablei(GL_BLEND, static_cast<GLuint>(drawBufferIndex)); in setBlendEnabledIndexed()
1215 mFunctions->disablei(GL_BLEND, static_cast<GLuint>(drawBufferIndex)); in setBlendEnabledIndexed()
1228 mFunctions->blendColor(mBlendColor.red, mBlendColor.green, mBlendColor.blue, in setBlendColor()
1247 mFunctions->blendFuncSeparate( in setBlendFuncs()
1301 mFunctions->blendFuncSeparate( in setBlendFuncs()
1311 mFunctions->blendFuncSeparatei(static_cast<GLuint>(drawBufferIndex), in setBlendFuncs()
1335 mFunctions->blendEquationSeparate(blendStateExt.getEquationColorIndexed(0), in setBlendEquations()
1379 mFunctions->blendEquationSeparate( in setBlendEquations()
1389 mFunctions->blendEquationSeparatei( in setBlendEquations()
1406 mFunctions->colorMask(red, green, blue, alpha); in setColorMask()
1419 mFunctions->enable(GL_SAMPLE_ALPHA_TO_COVERAGE); in setSampleAlphaToCoverageEnabled()
1423 mFunctions->disable(GL_SAMPLE_ALPHA_TO_COVERAGE); in setSampleAlphaToCoverageEnabled()
1437 mFunctions->enable(GL_SAMPLE_COVERAGE); in setSampleCoverageEnabled()
1441 mFunctions->disable(GL_SAMPLE_COVERAGE); in setSampleCoverageEnabled()
1454 mFunctions->sampleCoverage(mSampleCoverageValue, mSampleCoverageInvert); in setSampleCoverage()
1467 mFunctions->enable(GL_SAMPLE_MASK); in setSampleMaskEnabled()
1471 mFunctions->disable(GL_SAMPLE_MASK); in setSampleMaskEnabled()
1484 mFunctions->sampleMaski(maskNumber, mask); in setSampleMaski()
1498 mFunctions->enable(GL_DEPTH_TEST); in setDepthTestEnabled()
1502 mFunctions->disable(GL_DEPTH_TEST); in setDepthTestEnabled()
1511 mFunctions->depthFunc(mDepthFunc); in setDepthFunc()
1519 mFunctions->depthMask(mDepthMask); in setDepthMask()
1529 mFunctions->enable(GL_STENCIL_TEST); in setStencilTestEnabled()
1533 mFunctions->disable(GL_STENCIL_TEST); in setStencilTestEnabled()
1542 mFunctions->stencilMaskSeparate(GL_FRONT, mStencilFrontWritemask); in setStencilFrontWritemask()
1550 mFunctions->stencilMaskSeparate(GL_BACK, mStencilBackWritemask); in setStencilBackWritemask()
1560 mFunctions->stencilFuncSeparate(GL_FRONT, mStencilFrontFunc, mStencilFrontRef, in setStencilFrontFuncs()
1571 mFunctions->stencilFuncSeparate(GL_BACK, mStencilBackFunc, mStencilBackRef, in setStencilBackFuncs()
1582 mFunctions->stencilOpSeparate(GL_FRONT, mStencilFrontStencilFailOp, in setStencilFrontOps()
1594 mFunctions->stencilOpSeparate(GL_BACK, mStencilBackStencilFailOp, in setStencilBackOps()
1608 mFunctions->enable(GL_CULL_FACE); in setCullFaceEnabled()
1612 mFunctions->disable(GL_CULL_FACE); in setCullFaceEnabled()
1624 mFunctions->cullFace(ToGLenum(mCullFace)); in setCullFace()
1635 mFunctions->frontFace(mFrontFace); in setFrontFace()
1648 mFunctions->enable(GL_POLYGON_OFFSET_FILL); in setPolygonOffsetFillEnabled()
1652 mFunctions->disable(GL_POLYGON_OFFSET_FILL); in setPolygonOffsetFillEnabled()
1665 mFunctions->polygonOffset(mPolygonOffsetFactor, mPolygonOffsetUnits); in setPolygonOffset()
1678 mFunctions->enable(GL_RASTERIZER_DISCARD); in setRasterizerDiscardEnabled()
1682 mFunctions->disable(GL_RASTERIZER_DISCARD); in setRasterizerDiscardEnabled()
1694 mFunctions->lineWidth(mLineWidth); in setLineWidth()
1710 ANGLE_GL_TRY(context, mFunctions->enable(cap)); in setPrimitiveRestartEnabled()
1714 ANGLE_GL_TRY(context, mFunctions->disable(cap)); in setPrimitiveRestartEnabled()
1728 ANGLE_GL_TRY(context, mFunctions->primitiveRestartIndex(index)); in setPrimitiveRestartIndex()
1745 if (mFunctions->clearDepthf) in setClearDepth()
1747 mFunctions->clearDepthf(mClearDepth); in setClearDepth()
1751 ASSERT(mFunctions->clearDepth); in setClearDepth()
1752 mFunctions->clearDepth(mClearDepth); in setClearDepth()
1781 mFunctions->clearColor(mClearColor.red, mClearColor.green, mClearColor.blue, in setClearColor()
1793 mFunctions->clearStencil(mClearStencil); in setClearStencil()
2216 mFunctions->enable(GL_FRAMEBUFFER_SRGB); in setFramebufferSRGBEnabled()
2220 mFunctions->disable(GL_FRAMEBUFFER_SRGB); in setFramebufferSRGBEnabled()
2302 mFunctions->colorMask(r, g, b, a); in setColorMaskForFramebuffer()
2309 mFunctions->colorMaski(static_cast<GLuint>(drawBufferIndex), r, g, b, a); in setColorMaskForFramebuffer()
2323 mFunctions->enable(GL_DITHER); in setDitherEnabled()
2327 mFunctions->disable(GL_DITHER); in setDitherEnabled()
2339 mFunctions->enable(GL_MULTISAMPLE_EXT); in setMultisamplingStateEnabled()
2343 mFunctions->disable(GL_MULTISAMPLE_EXT); in setMultisamplingStateEnabled()
2356 mFunctions->enable(GL_SAMPLE_ALPHA_TO_ONE); in setSampleAlphaToOneStateEnabled()
2360 mFunctions->disable(GL_SAMPLE_ALPHA_TO_ONE); in setSampleAlphaToOneStateEnabled()
2371 mFunctions->coverageModulationNV(components); in setCoverageModulation()
2381 mFunctions->provokingVertex(mode); in setProvokingVertex()
2401 mFunctions->enable(GL_CLIP_DISTANCE0_EXT + static_cast<uint32_t>(i)); in setClipDistancesEnable()
2405 mFunctions->disable(GL_CLIP_DISTANCE0_EXT + static_cast<uint32_t>(i)); in setClipDistancesEnable()
2416 if (!mFunctions->isAtLeastGL(gl::Version(3, 2))) in setTextureCubemapSeamlessEnabled()
2426 mFunctions->enable(GL_TEXTURE_CUBE_MAP_SEAMLESS); in setTextureCubemapSeamlessEnabled()
2430 mFunctions->disable(GL_TEXTURE_CUBE_MAP_SEAMLESS); in setTextureCubemapSeamlessEnabled()
2531 ValidateStateHelper(mFunctions, mProgram, GL_CURRENT_PROGRAM, "mProgram", "GL_CURRENT_PROGRAM"); in validateState()
2541 if (!nativegl::SupportsCompute(mFunctions)) in validateState()
2555 ValidateStateHelper(mFunctions, mBuffers[bindingType], bindingTypeGL, localName.c_str(), in validateState()
2560 ValidateStateHelper(mFunctions, mVAO, GL_VERTEX_ARRAY_BINDING, "mVAO", in validateState()
2567 mFunctions->getBooleanv(name, value); in get()
2592 mFunctions->getIntegerv(name, value); in get()
2614 mFunctions->getFloatv(name, value); in get()
2628 ASSERT(mFunctions->getError() == GL_NO_ERROR); in syncFromNativeContext()
2804 ASSERT(mFunctions->getError() == GL_NO_ERROR); in syncFromNativeContext()
2810 ASSERT(mFunctions->getError() == GL_NO_ERROR); in restoreNativeContext()
2864 ASSERT(mFunctions->getError() == GL_NO_ERROR); in restoreNativeContext()
2910 mFunctions->blendFuncSeparate(state->blendSrcRgb, state->blendDestRgb, state->blendSrcAlpha, in restoreBlendNativeContext()
2921 mFunctions->blendEquationSeparate(state->blendEquationRgb, state->blendEquationAlpha); in restoreBlendNativeContext()
2977 mFunctions->pixelStorei(GL_PACK_ALIGNMENT, state->packAlignment); in restorePixelPackUnpackNativeContext()
2984 mFunctions->pixelStorei(GL_UNPACK_ALIGNMENT, state->unpackAlignment); in restorePixelPackUnpackNativeContext()