Lines Matching refs:vertexAttrib
464 bool isValidVertexAttrib (const VertexAttrib& vertexAttrib) in isValidVertexAttrib() argument
467 if (!de::inBounds<int>(vertexAttrib.type, 0, VERTEXATTRIBTYPE_LAST) || in isValidVertexAttrib()
468 !de::inRange(vertexAttrib.size, 0, 4) || in isValidVertexAttrib()
469 vertexAttrib.instanceDivisor < 0) in isValidVertexAttrib()
473 if (!vertexAttrib.pointer && vertexAttrib.type != VERTEXATTRIBTYPE_DONT_CARE) in isValidVertexAttrib()
477 if ((vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_INT_2_10_10_10_REV || in isValidVertexAttrib()
478 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_UINT_2_10_10_10_REV || in isValidVertexAttrib()
479 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_UNORM_2_10_10_10_REV || in isValidVertexAttrib()
480 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_CLAMP || in isValidVertexAttrib()
481 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_SCALE || in isValidVertexAttrib()
482 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_UNORM_2_10_10_10_REV_BGRA || in isValidVertexAttrib()
483 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_CLAMP_BGRA || in isValidVertexAttrib()
484 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_SCALE_BGRA) && in isValidVertexAttrib()
485 vertexAttrib.size != 4) in isValidVertexAttrib()
491 void readVertexAttrib (tcu::Vec4& dst, const VertexAttrib& vertexAttrib, const int instanceNdx, con… in readVertexAttrib() argument
493 DE_ASSERT(isValidVertexAttrib(vertexAttrib)); in readVertexAttrib()
495 if (vertexAttrib.pointer) in readVertexAttrib()
497 …const int elementNdx = (vertexAttrib.instanceDivisor != 0) ? baseInstanceNdx + (instanceNdx / ver… in readVertexAttrib()
498 const int compSize = getComponentSize(vertexAttrib.type); in readVertexAttrib()
499 …const int stride = (vertexAttrib.stride != 0) ? (vertexAttrib.stride) : (vertexAttrib.size*compS… in readVertexAttrib()
503 …readFloat(dst, vertexAttrib.type, vertexAttrib.size, (const deUint8*)vertexAttrib.pointer + byteOf… in readVertexAttrib()
507 dst = vertexAttrib.generic.get<float>(); in readVertexAttrib()
511 void readVertexAttrib (tcu::IVec4& dst, const VertexAttrib& vertexAttrib, const int instanceNdx, co… in readVertexAttrib() argument
513 DE_ASSERT(isValidVertexAttrib(vertexAttrib)); in readVertexAttrib()
515 if (vertexAttrib.pointer) in readVertexAttrib()
517 …const int elementNdx = (vertexAttrib.instanceDivisor != 0) ? baseInstanceNdx + (instanceNdx / ver… in readVertexAttrib()
518 const int compSize = getComponentSize(vertexAttrib.type); in readVertexAttrib()
519 …const int stride = (vertexAttrib.stride != 0) ? (vertexAttrib.stride) : (vertexAttrib.size*compS… in readVertexAttrib()
523 …readInt(dst, vertexAttrib.type, vertexAttrib.size, (const deUint8*)vertexAttrib.pointer + byteOffs… in readVertexAttrib()
527 dst = vertexAttrib.generic.get<deInt32>(); in readVertexAttrib()
531 void readVertexAttrib (tcu::UVec4& dst, const VertexAttrib& vertexAttrib, const int instanceNdx, co… in readVertexAttrib() argument
533 DE_ASSERT(isValidVertexAttrib(vertexAttrib)); in readVertexAttrib()
535 if (vertexAttrib.pointer) in readVertexAttrib()
537 …const int elementNdx = (vertexAttrib.instanceDivisor != 0) ? baseInstanceNdx + (instanceNdx / ver… in readVertexAttrib()
538 const int compSize = getComponentSize(vertexAttrib.type); in readVertexAttrib()
539 …const int stride = (vertexAttrib.stride != 0) ? (vertexAttrib.stride) : (vertexAttrib.size*compS… in readVertexAttrib()
543 …readUint(dst, vertexAttrib.type, vertexAttrib.size, (const deUint8*)vertexAttrib.pointer + byteOff… in readVertexAttrib()
547 dst = vertexAttrib.generic.get<deUint32>(); in readVertexAttrib()