Lines Matching refs:rr

154 class CoordVertexShader : public rr::VertexShader
158 : rr::VertexShader(1, 1) in CoordVertexShader()
160 m_inputs[0].type = rr::GENERICVECTYPE_FLOAT; in CoordVertexShader()
161 m_outputs[0].type = rr::GENERICVECTYPE_FLOAT; in CoordVertexShader()
164 …void shadeVertices (const rr::VertexAttrib* inputs, rr::VertexPacket* const* packets, const int nu… in shadeVertices()
168 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
179 class TextureVertexShader : public rr::VertexShader
183 : rr::VertexShader (1, 1) in TextureVertexShader()
186 m_inputs[0].type = rr::GENERICVECTYPE_FLOAT; in TextureVertexShader()
187 m_outputs[0].type = rr::GENERICVECTYPE_FLOAT; in TextureVertexShader()
190 …void shadeVertices (const rr::VertexAttrib* inputs, rr::VertexPacket* const* packets, const int nu… in shadeVertices()
194 rr::VertexPacket* const packet = packets[packetNdx]; in shadeVertices()
211 class CoordFragmentShader : public rr::FragmentShader
215 : rr::FragmentShader (1, 1) in CoordFragmentShader()
217 m_inputs[0].type = rr::GENERICVECTYPE_FLOAT; in CoordFragmentShader()
218 m_outputs[0].type = rr::GENERICVECTYPE_FLOAT; in CoordFragmentShader()
222 …void shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingC… in shadeFragments()
226 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
228 const tcu::Vec4 vtxColor0 = rr::readVarying<float>(packet, context, 0, 0); in shadeFragments()
229 const tcu::Vec4 vtxColor1 = rr::readVarying<float>(packet, context, 0, 1); in shadeFragments()
230 const tcu::Vec4 vtxColor2 = rr::readVarying<float>(packet, context, 0, 2); in shadeFragments()
231 const tcu::Vec4 vtxColor3 = rr::readVarying<float>(packet, context, 0, 3); in shadeFragments()
238rr::writeFragmentOutput(context, packetNdx, 0, 0, tcu::Vec4(color0.x() * color0.w(), color0.y() * … in shadeFragments()
239rr::writeFragmentOutput(context, packetNdx, 1, 0, tcu::Vec4(color1.x() * color1.w(), color1.y() * … in shadeFragments()
240rr::writeFragmentOutput(context, packetNdx, 2, 0, tcu::Vec4(color2.x() * color2.w(), color2.y() * … in shadeFragments()
241rr::writeFragmentOutput(context, packetNdx, 3, 0, tcu::Vec4(color3.x() * color3.w(), color3.y() * … in shadeFragments()
246 class TextureFragmentShader : public rr::FragmentShader
250 : rr::FragmentShader (1, 1) in TextureFragmentShader()
253 m_inputs[0].type = rr::GENERICVECTYPE_FLOAT; in TextureFragmentShader()
254 m_outputs[0].type = rr::GENERICVECTYPE_FLOAT; in TextureFragmentShader()
257 …void shadeFragments (rr::FragmentPacket* packets, const int numPackets, const rr::FragmentShadingC… in shadeFragments()
261 rr::FragmentPacket& packet = packets[packetNdx]; in shadeFragments()
273 const tcu::Vec4 vtxColor0 = rr::readVarying<float>(packet, context, 0, 0); in shadeFragments()
274 const tcu::Vec4 vtxColor1 = rr::readVarying<float>(packet, context, 0, 1); in shadeFragments()
275 const tcu::Vec4 vtxColor2 = rr::readVarying<float>(packet, context, 0, 2); in shadeFragments()
276 const tcu::Vec4 vtxColor3 = rr::readVarying<float>(packet, context, 0, 3); in shadeFragments()
283rr::writeFragmentOutput(context, packetNdx, 0, 0, tcu::Vec4(color0.x() * color0.w(), color0.y() * … in shadeFragments()
284rr::writeFragmentOutput(context, packetNdx, 1, 0, tcu::Vec4(color1.x() * color1.w(), color1.y() * … in shadeFragments()
285rr::writeFragmentOutput(context, packetNdx, 2, 0, tcu::Vec4(color2.x() * color2.w(), color2.y() * … in shadeFragments()
286rr::writeFragmentOutput(context, packetNdx, 3, 0, tcu::Vec4(color3.x() * color3.w(), color3.y() * … in shadeFragments()
667 …const rr::VertexShader* const vertexShader = (renderBits & RENDERBITS_AS_VERTEX_TEXTURE ? stati… in renderReference()
671 …const rr::FragmentShader* const fragmentShader = (renderBits & RENDERBITS_AS_FRAGMENT_TEXTURE ?… in renderReference()
673 const rr::Renderer renderer; in renderReference()
674 …const rr::RenderState renderState(rr::ViewportState(rr::WindowRectangle(0, 0, target.getWidth()… in renderReference()
675 …const rr::RenderTarget renderTarget(rr::MultisamplePixelBufferAccess::fromSinglesampleAccess(ta… in renderReference()
677 const rr::Program program(vertexShader, fragmentShader); in renderReference()
679 rr::VertexAttrib vertexAttribs[1]; in renderReference()
684 vertexAttribs[0].type = rr::VERTEXATTRIBTYPE_NONPURE_UNORM8; in renderReference()
694 vertexAttribs[0].type = rr::VERTEXATTRIBTYPE_NONPURE_UNORM8; in renderReference()
701 …const rr::PrimitiveList primitives(rr::PRIMITIVETYPE_TRIANGLES, triangleCount * 3, rr::DrawIndices… in renderReference()
702 const rr::DrawCommand cmd(renderState, renderTarget, program, 1, vertexAttribs, primitives); in renderReference()
708 const rr::PrimitiveList primitives(rr::PRIMITIVETYPE_TRIANGLES, triangleCount * 3, 0); in renderReference()
709 const rr::DrawCommand cmd(renderState, renderTarget, program, 1, vertexAttribs, primitives); in renderReference()