Lines Matching refs:glu

79 static void computeVertexLayout (const vector<rsg::ShaderInput*>& attributes, int numVertices, vector<glu::VertexArrayBinding>* layout, int* stride)
94 layout->push_back(glu::va::Float(var->getName(), numComps, numVertices, 0 /* computed later */, (const float*)(deUintptr)curOffset));
99 for (vector<glu::VertexArrayBinding>::iterator vaIter = layout->begin(); vaIter != layout->end(); ++vaIter)
114 const std::vector<glu::VertexArrayBinding>& getLayout (void) const { return m_layout; }
117 const glu::VertexArrayBinding& getLayoutEntry (int ndx) const { return m_layout[ndx]; }
121 std::vector<glu::VertexArrayBinding> m_layout;
131 static inline glu::VertexArrayBinding getEntryWithPointer (const VertexDataStorage& data, int ndx)
133 const glu::VertexArrayBinding& entry = data.getLayoutEntry(ndx);
134 return glu::VertexArrayBinding(entry.binding, glu::VertexArrayPointer(entry.pointer.componentType,
143 static void setVertex (const glu::VertexArrayPointer& pointer, int vertexNdx, const tcu::Vector<float, Size>& value)
146 DE_ASSERT(pointer.componentType == glu::VTX_COMP_FLOAT && pointer.convert == glu::VTX_COMP_CONVERT_NONE);
217 static void computeRandomRenderCommand (de::Random& rnd, RenderCommand& command, glu::ApiType apiType, int targetW, int targetH)
282 static void renderQuad (sglr::Context& ctx, const glu::VertexArrayPointer& posPtr, const Quad& quad, const float depth)
305 static void render (sglr::Context& ctx, const glu::VertexArrayPointer& posPtr, const RenderCommand& cmd)
315 const glu::VertexArrayBinding bindingPtr = getEntryWithPointer(vertexData, attribNdx);
316 const int attribLoc = bindingPtr.binding.type == glu::BindingPoint::BPTYPE_NAME ? ctx.getAttribLocation(program, bindingPtr.binding.name.c_str()) : bindingPtr.binding.location;
318 DE_ASSERT(bindingPtr.pointer.componentType == glu::VTX_COMP_FLOAT);
429 ReferenceContext (glu::RenderContext& renderCtx, int width, int height)
437 FragOpInteractionCase::FragOpInteractionCase (tcu::TestContext& testCtx, glu::RenderContext& renderCtx, const glu::ContextInfo& ctxInfo, const char* name, const rsg::ProgramParameters& params)
543 const glu::VertexArrayBinding layoutEntry = getEntryWithPointer(vertexData, attribNdx);
573 const glu::VertexArrayPointer posPtr = getEntryWithPointer(vertexData, positionNdx).pointer;