Home | History | Annotate | Download | only in opengl

Lines Matching refs:layout

275 static void appendAttributeNonStrided (VertexBufferLayout& layout, const VertexArrayBinding& va)
277 const int offset = deAlign32(layout.size, getMinimumAlignment(va.pointer));
284 layout.attributes.push_back(VertexAttributeDescriptor(va.binding.location,
291 layout.size = offset+size;
295 static void computeNonStridedBufferLayout (VertexBufferLayout& layout, BindingIter first, BindingIter end)
298 appendAttributeNonStrided(layout, *iter);
323 void uploadBufferData (const glw::Functions& gl, deUint32 buffer, deUint32 usage, const VertexBufferLayout& layout, const VertexArrayPointer* srcArrays)
326 std::vector<deUint8> localBuf(layout.size);
328 for (int attrNdx = 0; attrNdx < (int)layout.attributes.size(); ++attrNdx)
329 copyToLayout(&localBuf[0], layout.attributes[attrNdx], srcArrays[attrNdx]);
344 VertexBufferLayout layout;
350 computeNonStridedBufferLayout(layout, bindings, bindings+numBindings);
352 throw tcu::InternalError("Strided layout is not yet supported");
358 DE_ASSERT(srcPtrs.size() == layout.attributes.size());
360 uploadBufferData(gl, m_object, usage, layout, &srcPtrs[0]);
364 m_layout.attributes = layout.attributes;