Lines Matching refs:attribSpec
3208 DrawTestSpec::AttributeSpec attribSpec = spec.attribs[attribNdx]; in iterate() local
3209 const bool isPositionAttr = (attribNdx == 0) || (attribSpec.additionalPositionAttribute); in iterate()
3211 if (attribSpec.useDefaultAttribute) in iterate()
3213 const int seed = 10 * attribSpec.hash() + 100 * spec.hash() + attribNdx; in iterate()
3214 …rr::GenericVec4 attribValue = RandomArrayGenerator::generateAttributeValue(seed, attribSpec.inputT… in iterate()
3219 …ack->getArray(attribNdx)->setupArray(false, 0, attribSpec.componentCount, attribSpec.inputType, at… in iterate()
3220 …ack->getArray(attribNdx)->setupArray(false, 0, attribSpec.componentCount, attribSpec.inputType, at… in iterate()
3224 const int seed = attribSpec.hash() + 100 * spec.hash() + attribNdx; in iterate()
3225 …const size_t elementSize = attribSpec.componentCount * DrawTestSpec::inputTypeSize(attribSpe… in iterate()
3226 const size_t stride = (attribSpec.stride == 0) ? (elementSize) : (attribSpec.stride); in iterate()
3227 …t evaluatedElementCount = (instanced && attribSpec.instanceDivisor > 0) ? (spec.instanceCount /… in iterate()
3229 …const size_t bufferSize = attribSpec.offset + stride * (referencedElementCount - 1) + elemen… in iterate()
3230 …eArray(seed, (int)referencedElementCount, attribSpec.componentCount, attribSpec.offset, (int)strid… in iterate()
3234 m_glArrayPack->newArray(attribSpec.storage); in iterate()
3235 m_rrArrayPack->newArray(attribSpec.storage); in iterate()
3237 …rayPack->getArray(attribNdx)->data(DrawTestSpec::TARGET_ARRAY, bufferSize, data, attribSpec.usage); in iterate()
3238 …rayPack->getArray(attribNdx)->data(DrawTestSpec::TARGET_ARRAY, bufferSize, data, attribSpec.usage); in iterate()
3240 …attribSpec.offset, attribSpec.componentCount, attribSpec.inputType, attribSpec.outputType, attribS… in iterate()
3241 …attribSpec.offset, attribSpec.componentCount, attribSpec.inputType, attribSpec.outputType, attribS… in iterate()
3772 DrawTestSpec::AttributeSpec attribSpec = spec.attribs[arrayNdx]; in getCoordScale() local
3773 const bool isPositionAttr = (arrayNdx == 0) || (attribSpec.additionalPositionAttribute); in getCoordScale()
3779 if (attribSpec.inputType == DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10) in getCoordScale()
3781 if (attribSpec.normalize) in getCoordScale()
3786 else if (attribSpec.inputType == DrawTestSpec::INPUTTYPE_INT_2_10_10_10) in getCoordScale()
3788 if (attribSpec.normalize) in getCoordScale()
3795 const float max = GLValue::getMaxValue(attribSpec.inputType).toFloat(); in getCoordScale()
3797 …attrMaxValue += (attribSpec.normalize && !inputTypeIsFloatType(attribSpec.inputType)) ? (1.0f) : (… in getCoordScale()
3800 …if (attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_VEC3 || attribSpec.outputType == DrawTestSpe… in getCoordScale()
3801 …|| attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_IVEC3 || attribSpec.outputType == DrawTestSpe… in getCoordScale()
3802 …|| attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_UVEC3 || attribSpec.outputType == DrawTestSpe… in getCoordScale()
3817 DrawTestSpec::AttributeSpec attribSpec = spec.attribs[arrayNdx]; in getColorScale() local
3818 const bool isPositionAttr = (arrayNdx == 0) || (attribSpec.additionalPositionAttribute); in getColorScale()
3823 if (attribSpec.inputType == DrawTestSpec::INPUTTYPE_UNSIGNED_INT_2_10_10_10) in getColorScale()
3825 if (!attribSpec.normalize) in getColorScale()
3828 else if (attribSpec.inputType == DrawTestSpec::INPUTTYPE_INT_2_10_10_10) in getColorScale()
3830 if (!attribSpec.normalize) in getColorScale()
3835 const float max = GLValue::getMaxValue(attribSpec.inputType).toFloat(); in getColorScale()
3837 …colorScale *= (attribSpec.normalize && !inputTypeIsFloatType(attribSpec.inputType) ? 1.0f : float(… in getColorScale()
3838 if (attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_VEC4 || in getColorScale()
3839 attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_UVEC4 || in getColorScale()
3840 attribSpec.outputType == DrawTestSpec::OUTPUTTYPE_IVEC4) in getColorScale()
3841 …colorScale *= (attribSpec.normalize && !inputTypeIsFloatType(attribSpec.inputType) ? 1.0f : float(… in getColorScale()