Lines Matching refs:vertexAttrib
461 bool isValidVertexAttrib (const VertexAttrib& vertexAttrib) in isValidVertexAttrib() argument
464 if (!de::inBounds<int>(vertexAttrib.type, 0, VERTEXATTRIBTYPE_LAST) || in isValidVertexAttrib()
465 !de::inRange(vertexAttrib.size, 0, 4) || in isValidVertexAttrib()
466 vertexAttrib.instanceDivisor < 0) in isValidVertexAttrib()
470 if (!vertexAttrib.pointer && vertexAttrib.type != VERTEXATTRIBTYPE_DONT_CARE) in isValidVertexAttrib()
474 if ((vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_INT_2_10_10_10_REV || in isValidVertexAttrib()
475 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_UINT_2_10_10_10_REV || in isValidVertexAttrib()
476 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_UNORM_2_10_10_10_REV || in isValidVertexAttrib()
477 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_CLAMP || in isValidVertexAttrib()
478 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_SCALE || in isValidVertexAttrib()
479 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_UNORM_2_10_10_10_REV_BGRA || in isValidVertexAttrib()
480 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_CLAMP_BGRA || in isValidVertexAttrib()
481 vertexAttrib.type == VERTEXATTRIBTYPE_NONPURE_SNORM_2_10_10_10_REV_SCALE_BGRA) && in isValidVertexAttrib()
482 vertexAttrib.size != 4) in isValidVertexAttrib()
488 void readVertexAttrib (tcu::Vec4& dst, const VertexAttrib& vertexAttrib, const int instanceNdx, con… in readVertexAttrib() argument
490 DE_ASSERT(isValidVertexAttrib(vertexAttrib)); in readVertexAttrib()
492 if (vertexAttrib.pointer) in readVertexAttrib()
494 …const int elementNdx = (vertexAttrib.instanceDivisor != 0) ? (instanceNdx / vertexAttrib.instance… in readVertexAttrib()
495 const int compSize = getComponentSize(vertexAttrib.type); in readVertexAttrib()
496 …const int stride = (vertexAttrib.stride != 0) ? (vertexAttrib.stride) : (vertexAttrib.size*compS… in readVertexAttrib()
500 …readFloat(dst, vertexAttrib.type, vertexAttrib.size, (const deUint8*)vertexAttrib.pointer + byteOf… in readVertexAttrib()
504 dst = vertexAttrib.generic.get<float>(); in readVertexAttrib()
508 void readVertexAttrib (tcu::IVec4& dst, const VertexAttrib& vertexAttrib, const int instanceNdx, co… in readVertexAttrib() argument
510 DE_ASSERT(isValidVertexAttrib(vertexAttrib)); in readVertexAttrib()
512 if (vertexAttrib.pointer) in readVertexAttrib()
514 …const int elementNdx = (vertexAttrib.instanceDivisor != 0) ? (instanceNdx / vertexAttrib.instance… in readVertexAttrib()
515 const int compSize = getComponentSize(vertexAttrib.type); in readVertexAttrib()
516 …const int stride = (vertexAttrib.stride != 0) ? (vertexAttrib.stride) : (vertexAttrib.size*compS… in readVertexAttrib()
520 …readInt(dst, vertexAttrib.type, vertexAttrib.size, (const deUint8*)vertexAttrib.pointer + byteOffs… in readVertexAttrib()
524 dst = vertexAttrib.generic.get<deInt32>(); in readVertexAttrib()
528 void readVertexAttrib (tcu::UVec4& dst, const VertexAttrib& vertexAttrib, const int instanceNdx, co… in readVertexAttrib() argument
530 DE_ASSERT(isValidVertexAttrib(vertexAttrib)); in readVertexAttrib()
532 if (vertexAttrib.pointer) in readVertexAttrib()
534 …const int elementNdx = (vertexAttrib.instanceDivisor != 0) ? (instanceNdx / vertexAttrib.instance… in readVertexAttrib()
535 const int compSize = getComponentSize(vertexAttrib.type); in readVertexAttrib()
536 …const int stride = (vertexAttrib.stride != 0) ? (vertexAttrib.stride) : (vertexAttrib.size*compS… in readVertexAttrib()
540 …readUint(dst, vertexAttrib.type, vertexAttrib.size, (const deUint8*)vertexAttrib.pointer + byteOff… in readVertexAttrib()
544 dst = vertexAttrib.generic.get<deUint32>(); in readVertexAttrib()