Lines Matching refs:context

58 …r::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const;
94 …rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingContext& context) const in shadeFragments()
102 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, color); in shadeFragments()
109 DepthCase (Context& context, const char* name, const char* description);
113 virtual void render (sglr::Context& context) = DE_NULL;
116 DepthCase::DepthCase (Context& context, const char* name, const char* description) in DepthCase() argument
117 : TestCase(context, name, description) in DepthCase()
144 …sglr::GLContext context(renderCtx, log, sglr::GLCONTEXT_LOG_CALLS, tcu::IVec4(x, y, width, height)… in iterate() local
146 context.clearColor(clearColor.x(), clearColor.y(), clearColor.z(), clearColor.w()); in iterate()
147 context.clear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT); in iterate()
149 render(context); // Call actual render func in iterate()
150 context.readPixels(gles2Frame, 0, 0, width, height); in iterate()
151 gles2Error = context.getError(); in iterate()
157 …sglr::ReferenceContext context (sglr::ReferenceContextLimits(renderCtx), buffers.getColorbuffer(… in iterate() local
159 context.clearColor(clearColor.x(), clearColor.y(), clearColor.z(), clearColor.w()); in iterate()
160 context.clear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT|GL_STENCIL_BUFFER_BIT); in iterate()
162 render(context); in iterate()
163 context.readPixels(refFrame, 0, 0, width, height); in iterate()
164 refError = context.getError(); in iterate()
194 DepthCompareCase (Context& context, const char* name, const char* description, deUint32 compareOp) in DepthCompareCase() argument
195 : DepthCase (context, name, description) in DepthCompareCase()
200 void render (sglr::Context& context) in render() argument
205 deUint32 shaderID = context.createProgram(&shader); in render()
211 context.clearDepthf(1.0f); in render()
212 context.clear(GL_DEPTH_BUFFER_BIT); in render()
215 context.enable(GL_DEPTH_TEST); in render()
218 context.depthFunc(GL_ALWAYS); in render()
219 shader.setColor(context, shaderID, red); in render()
220 sglr::drawQuad(context, shaderID, Vec3(-1.0f, -1.0f, 0.2f), Vec3(0.0f, 0.0f, 0.2f)); in render()
221 context.depthFunc(m_compareOp); in render()
222 shader.setColor(context, shaderID, green); in render()
223 sglr::drawQuad(context, shaderID, Vec3(-1.0f, -1.0f, 0.2f), Vec3(0.0f, 0.0f, 0.2f)); in render()
226 context.depthFunc(GL_ALWAYS); in render()
227 shader.setColor(context, shaderID, red); in render()
228 sglr::drawQuad(context, shaderID, Vec3(-1.0f, 0.0f, -0.4f), Vec3(0.0f, 1.0f, -0.4f)); in render()
229 context.depthFunc(m_compareOp); in render()
230 shader.setColor(context, shaderID, green); in render()
231 sglr::drawQuad(context, shaderID, Vec3(-1.0f, 0.0f, -0.1f), Vec3(0.0f, 1.0f, -0.1f)); in render()
234 context.depthFunc(GL_ALWAYS); in render()
235 shader.setColor(context, shaderID, red); in render()
236 sglr::drawQuad(context, shaderID, Vec3(0.0f, -1.0f, 0.5f), Vec3(1.0f, 0.0f, 0.5f)); in render()
237 context.depthFunc(m_compareOp); in render()
238 shader.setColor(context, shaderID, green); in render()
239 sglr::drawQuad(context, shaderID, Vec3(0.0f, -1.0f, 0.3f), Vec3(1.0f, 0.0f, 0.3f)); in render()
242 context.depthFunc(GL_ALWAYS); in render()
243 shader.setColor(context, shaderID, red); in render()
244 sglr::drawQuad(context, shaderID, Vec3(0.0f, 0.0f, 0.0f), Vec3(1.0f, 1.0f, 0.0f)); in render()
245 context.depthFunc(m_compareOp); in render()
246 shader.setColor(context, shaderID, green); in render()
247 sglr::drawQuad(context, shaderID, Vec3(0.0f, 0.0f, -1.0f), Vec3(1.0f, 1.0f, 1.0f)); in render()
254 DepthTests::DepthTests (Context& context) in DepthTests() argument
255 : TestCaseGroup(context, "depth", "Depth Tests") in DepthTests()