Lines Matching refs:va
275 static void appendAttributeNonStrided (VertexBufferLayout& layout, const VertexArrayBinding& va) in appendAttributeNonStrided() argument
277 const int offset = deAlign32(layout.size, getMinimumAlignment(va.pointer)); in appendAttributeNonStrided()
278 const int elementSize = getVtxCompSize(va.pointer.componentType)*va.pointer.numComponents; in appendAttributeNonStrided()
279 const int size = elementSize*va.pointer.numElements; in appendAttributeNonStrided()
282 DE_ASSERT(va.binding.type == BindingPoint::TYPE_LOCATION); in appendAttributeNonStrided()
284 layout.attributes.push_back(VertexAttributeDescriptor(va.binding.location, in appendAttributeNonStrided()
285 va.pointer.componentType, in appendAttributeNonStrided()
286 va.pointer.convert, in appendAttributeNonStrided()
287 va.pointer.numComponents, in appendAttributeNonStrided()
288 va.pointer.numElements, in appendAttributeNonStrided()
403 static void setVertexAttribPointer (const glw::Functions& gl, const VertexAttributeDescriptor& va) in setVertexAttribPointer() argument
405 …const bool isIntType = de::inRange<int>(va.componentType, VTX_COMP_UNSIGNED_INT8, VTX_COMP_SIGNE… in setVertexAttribPointer()
406 const bool isSpecialType = de::inRange<int>(va.componentType, VTX_COMP_FIXED, VTX_COMP_FLOAT); in setVertexAttribPointer()
407 const deUint32 compTypeGL = getVtxCompGLType(va.componentType); in setVertexAttribPointer()
410 …DE_ASSERT(isIntType || va.convert == VTX_COMP_CONVERT_NONE); // Conversion allowed only for specia… in setVertexAttribPointer()
413 gl.enableVertexAttribArray(va.location); in setVertexAttribPointer()
415 if (isIntType && va.convert == VTX_COMP_CONVERT_NONE) in setVertexAttribPointer()
416 gl.vertexAttribIPointer(va.location, va.numComponents, compTypeGL, va.stride, va.pointer); in setVertexAttribPointer()
418 …tribPointer(va.location, va.numComponents, compTypeGL, va.convert == VTX_COMP_CONVERT_NORMALIZE_TO… in setVertexAttribPointer()