Lines Matching refs:glState
108 bool IsTransformFeedbackOnly(const gl::State &glState)
110 return glState.isTransformFeedbackActiveUnpaused() && glState.isRasterizerDiscardEnabled();
836 const gl::State &glState = context->getState();
860 updateScissor(glState);
864 FramebufferMtl *framebufferMtl = mtl::GetImpl(glState.getDrawFramebuffer());
865 updateViewport(framebufferMtl, glState.getViewport(), glState.getNearPlane(),
866 glState.getFarPlane());
868 updateScissor(glState);
872 updateDepthRange(glState.getNearPlane(), glState.getFarPlane());
878 updateBlendDescArray(glState.getBlendStateExt());
882 const gl::BlendStateExt &blendStateExt = glState.getBlendStateExt();
907 mDepthStencilDesc.updateDepthTestEnabled(glState.getDepthStencilState());
911 mDepthStencilDesc.updateDepthCompareFunc(glState.getDepthStencilState());
915 mDepthStencilDesc.updateDepthWriteEnabled(glState.getDepthStencilState());
919 mDepthStencilDesc.updateStencilTestEnabled(glState.getDepthStencilState());
923 mDepthStencilDesc.updateStencilFrontFuncs(glState.getDepthStencilState());
924 mStencilRefFront = glState.getStencilRef(); // clamped on the frontend
929 mDepthStencilDesc.updateStencilBackFuncs(glState.getDepthStencilState());
930 mStencilRefBack = glState.getStencilBackRef(); // clamped on the frontend
935 mDepthStencilDesc.updateStencilFrontOps(glState.getDepthStencilState());
939 mDepthStencilDesc.updateStencilBackOps(glState.getDepthStencilState());
943 mDepthStencilDesc.updateStencilFrontWriteMask(glState.getDepthStencilState());
947 mDepthStencilDesc.updateStencilBackWriteMask(glState.getDepthStencilState());
952 updateCullMode(glState);
955 updateFrontFace(glState);
959 updateDepthBias(glState);
972 glState.getColorClearValue().red, glState.getColorClearValue().green,
973 glState.getColorClearValue().blue, glState.getColorClearValue().alpha);
978 mClearStencil = glState.getStencilClearValue() & mtl::kStencilMaskAll;
1009 mProgram = mtl::GetImpl(glState.getProgram());
1048 invalidateDefaultAttributes(glState.getAndResetDirtyCurrentValues());
1054 updateExtendedState(glState);
1072 void ContextMtl::updateExtendedState(const gl::State &glState)
1640 void ContextMtl::updateScissor(const gl::State &glState)
1642 FramebufferMtl *framebufferMtl = mtl::GetImpl(glState.getDrawFramebuffer());
1650 if (!gl::ClipRectangle(renderArea, glState.getViewport(), &viewportClippedRenderArea))
1668 void ContextMtl::updateCullMode(const gl::State &glState)
1670 const gl::RasterizerState &rasterState = glState.getRasterizerState();
1699 void ContextMtl::updateFrontFace(const gl::State &glState)
1701 FramebufferMtl *framebufferMtl = mtl::GetImpl(glState.getDrawFramebuffer());
1703 mtl::GetFontfaceWinding(glState.getRasterizerState().frontFace, !framebufferMtl->flipY());
1707 void ContextMtl::updateDepthBias(const gl::State &glState)
1714 const gl::State &glState = getState();
1716 mDrawFramebuffer = mtl::GetImpl(glState.getDrawFramebuffer());
1727 const gl::State &glState = getState();
1728 ASSERT(framebuffer == mtl::GetImpl(glState.getDrawFramebuffer()));
1730 updateViewport(framebuffer, glState.getViewport(), glState.getNearPlane(),
1731 glState.getFarPlane());
1732 updateFrontFace(glState);
1733 updateScissor(glState);
1751 const gl::State &glState = getState();
1752 FramebufferMtl *framebuffer = mtl::GetImpl(glState.getDrawFramebuffer());
1884 const gl::State &glState = getState();
1885 mVertexArray = mtl::GetImpl(glState.getVertexArray());
1892 const gl::State &glState = mState;
1894 glState.getVertexAttribCurrentValues()[attribIndex];
2106 const gl::State &glState = mState;
2107 const gl::Program *program = glState.getProgram();
2109 const gl::ActiveTexturesCache &textures = glState.getActiveTexturesCache();