Lines Matching refs:ref
232 MovePtr<ClientBuffer> TextureImageSource::createBuffer (const glw::Functions& gl, Texture2D* ref) const
247 if (ref != DE_NULL)
251 *ref = Texture2D(glu::mapGLTransferFormat(m_format, m_type), IMAGE_WIDTH, IMAGE_HEIGHT);
252 ref->allocLevel(0);
253 tcu::fillWithComponentGradients(ref->getLevel(0),
263 0, m_format, m_type, ref->getLevel(0).getDataPtr()));
345 void initializeStencilRbo(const glw::Functions& gl, GLuint rbo, Texture2D& ref)
361 const deUint32 numStencilBits = tcu::getTextureFormatBitDepth(tcu::getEffectiveDepthStencilTextureFormat(ref.getLevel(0).getFormat(), tcu::Sampler::MODE_STENCIL)).x();
368 tcu::clearStencil(ref.getLevel(0), 0);
375 const tcu::IVec2 size = tcu::IVec2((int)((float)(DE_LENGTH_OF_ARRAY(stencilValues) - ndx) * ((float)ref.getWidth() / float(DE_LENGTH_OF_ARRAY(stencilValues)))),
376 (int)((float)(DE_LENGTH_OF_ARRAY(stencilValues) - ndx) * ((float)ref.getHeight() / float(DE_LENGTH_OF_ARRAY(stencilValues) + 4)))); // not symmetric
385 tcu::clearStencil(tcu::getSubregion(ref.getLevel(0), 0, 0, size.x(), size.y()), stencil);
393 void initializeDepthRbo(const glw::Functions& gl, GLuint rbo, Texture2D& ref)
402 tcu::clearDepth(ref.getLevel(0), 0.0f);
409 const tcu::IVec2 size = tcu::IVec2((int)((float)(NUM_STEPS - ndx) * ((float)ref.getWidth() / float(NUM_STEPS))),
410 (int)((float)(NUM_STEPS - ndx) * ((float)ref.getHeight() / float(NUM_STEPS + 4)))); // not symmetric
419 tcu::clearDepth(tcu::getSubregion(ref.getLevel(0), 0, 0, size.x(), size.y()), depth);
428 void initializeColorRbo(const glw::Functions& gl, GLuint rbo, Texture2D& ref)
444 tcu::clear(ref.getLevel(0), Vec4(1.0f, 1.0f, 0.0f, 1.0f));
450 const tcu::IVec2 size = tcu::IVec2((int)((float)(DE_LENGTH_OF_ARRAY(colorValues) - ndx) * ((float)ref.getWidth() / float(DE_LENGTH_OF_ARRAY(colorValues)))),
451 (int)((float)(DE_LENGTH_OF_ARRAY(colorValues) - ndx) * ((float)ref.getHeight() / float(DE_LENGTH_OF_ARRAY(colorValues) + 4)))); // not symmetric
460 tcu::clear(tcu::getSubregion(ref.getLevel(0), 0, 0, size.x(), size.y()), colorValues[ndx]);
468 MovePtr<ClientBuffer> RenderbufferImageSource::createBuffer (const glw::Functions& gl, Texture2D* ref) const
478 if (ref != DE_NULL)
483 *ref = tcu::Texture2D(texFormat, 64, 64);
484 ref->allocLevel(0);
490 initializeStencilRbo(gl, rbo, *ref);
493 initializeDepthRbo(gl, rbo, *ref);
496 initializeColorRbo(gl, rbo, *ref);
499 initializeColorRbo(gl, rbo, *ref);
502 initializeColorRbo(gl, rbo, *ref);