Lines Matching refs:Array
41 SingleVertexArrayUsageGroup (Context& context, Array::Usage usage);
50 Array::Usage m_usage;
53 SingleVertexArrayUsageGroup::SingleVertexArrayUsageGroup (Context& context, Array::Usage usage) in SingleVertexArrayUsageGroup()
54 …: TestCaseGroup (context, Array::usageTypeToString(usage).c_str(), Array::usageTypeToString(usage)… in SingleVertexArrayUsageGroup()
75 …Array::InputType inputTypes[] = {Array::INPUTTYPE_FLOAT, Array::INPUTTYPE_FIXED, Array::INPUTTYPE_… in init()
83 …const int stride = (strides[strideNdx] < 0 ? Array::inputTypeSize(inputTypes[inputTypeNdx]) * 2 … in init()
84 const bool aligned = (stride % Array::inputTypeSize(inputTypes[inputTypeNdx])) == 0; in init()
85 …const std::string name = "stride" + typeToString(stride) + "_" + Array::inputTypeToString(inputTyp… in init()
88 Array::OUTPUTTYPE_VEC2, in init()
89 Array::STORAGE_BUFFER, in init()
99 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
136 …Array::Usage usages[] = { Array::USAGE_STATIC_DRAW, Array::USAGE_STREAM_DRAW, Array::USAGE_DYNAM… in init()
146 SingleVertexArrayStrideGroup (Context& context, Array::InputType type);
155 Array::InputType m_type;
158 SingleVertexArrayStrideGroup::SingleVertexArrayStrideGroup (Context& context, Array::InputType type) in SingleVertexArrayStrideGroup()
159 …: TestCaseGroup (context, Array::inputTypeToString(type).c_str(), Array::inputTypeToString(type).c… in SingleVertexArrayStrideGroup()
170 Array::Storage storages[] = {Array::STORAGE_USER, Array::STORAGE_BUFFER}; in init()
182 …const bool packed = m_type == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || m_type == Array::INPUT… in init()
183 …const int stride = (strides[strideNdx] < 0) ? ((packed) ? (16) : (Array::inputTypeSize(m_type) *… in init()
184 …const int alignment = (packed) ? (Array::inputTypeSize(m_type) * componentCount) : (Array::inputT… in init()
185 …const bool bufferUnaligned = (storages[storageNdx] == Array::STORAGE_BUFFER) && (stride % alignmen… in init()
187 …std::string name = Array::storageToString(storages[storageNdx]) + "_stride" + typeToString(stride)… in init()
189 …if((m_type == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || m_type == Array::INPUTTYPE_INT_2_10_10_1… in init()
193 Array::OUTPUTTYPE_VEC4, in init()
195 Array::USAGE_DYNAMIC_DRAW, in init()
204 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
241 …Array::InputType inputTypes[] = {Array::INPUTTYPE_FLOAT, Array::INPUTTYPE_SHORT, Array::INPUTTYPE_… in init()
252 SingleVertexArrayFirstGroup (Context& context, Array::InputType type);
260 Array::InputType m_type;
263 SingleVertexArrayFirstGroup::SingleVertexArrayFirstGroup (Context& context, Array::InputType type) in SingleVertexArrayFirstGroup()
264 …: TestCaseGroup (context, Array::inputTypeToString(type).c_str(), Array::inputTypeToString(type).c… in SingleVertexArrayFirstGroup()
288 …const bool packed = m_type == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || m_type == Array::INPUT… in init()
290 …const int stride = (strides[strideNdx] < 0) ? ((packed) ? (8) : (Array::inputTypeSize(m_type) * … in init()
291 …const int alignment = (packed) ? (Array::inputTypeSize(m_type) * componentCount) : (Array::inputT… in init()
296 Array::OUTPUTTYPE_VEC2, in init()
297 Array::STORAGE_BUFFER, in init()
298 Array::USAGE_DYNAMIC_DRAW, in init()
307 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
345 …Array::InputType inputTypes[] = {Array::INPUTTYPE_FLOAT, Array::INPUTTYPE_BYTE, Array::INPUTTYPE_I… in init()
356 SingleVertexArrayOffsetGroup (Context& context, Array::InputType type);
364 Array::InputType m_type;
367 SingleVertexArrayOffsetGroup::SingleVertexArrayOffsetGroup (Context& context, Array::InputType type) in SingleVertexArrayOffsetGroup()
368 …: TestCaseGroup (context, Array::inputTypeToString(type).c_str(), Array::inputTypeToString(type).c… in SingleVertexArrayOffsetGroup()
389 …const bool packed = m_type == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || m_type == Array::INP… in init()
391 …const int stride = (strides[strideNdx] < 0 ? Array::inputTypeSize(m_type) * componentCount : s… in init()
392 …const int alignment = (packed) ? (Array::inputTypeSize(m_type) * componentCount) : (Array::inpu… in init()
397 Array::OUTPUTTYPE_VEC2, in init()
398 Array::STORAGE_BUFFER, in init()
399 Array::USAGE_DYNAMIC_DRAW, in init()
408 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
445 …Array::InputType inputTypes[] = {Array::INPUTTYPE_FLOAT, Array::INPUTTYPE_BYTE, Array::INPUTTYPE_I… in init()
456 SingleVertexArrayNormalizeGroup (Context& context, Array::InputType type);
464 Array::InputType m_type;
467 SingleVertexArrayNormalizeGroup::SingleVertexArrayNormalizeGroup (Context& context, Array::InputTyp… in SingleVertexArrayNormalizeGroup()
468 …: TestCaseGroup (context, Array::inputTypeToString(type).c_str(), Array::inputTypeToString(type).c… in SingleVertexArrayNormalizeGroup()
485 …if((m_type == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || m_type == Array::INPUTTYPE_INT_2_10_10_1… in init()
491 Array::OUTPUTTYPE_VEC4, in init()
492 Array::STORAGE_USER, in init()
493 Array::USAGE_DYNAMIC_DRAW, in init()
502 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
537 …Array::InputType inputTypes[] = {Array::INPUTTYPE_FLOAT, Array::INPUTTYPE_SHORT, Array::INPUTTYPE_… in init()
548 SingleVertexArrayOutputTypeGroup (Context& context, Array::InputType type);
556 Array::InputType m_type;
559 SingleVertexArrayOutputTypeGroup::SingleVertexArrayOutputTypeGroup (Context& context, Array::InputT… in SingleVertexArrayOutputTypeGroup()
560 …: TestCaseGroup (context, Array::inputTypeToString(type).c_str(), Array::inputTypeToString(type).c… in SingleVertexArrayOutputTypeGroup()
571 …Array::OutputType outputTypes[] = {Array::OUTPUTTYPE_VEC2, Array::OUTPUTTYPE_VEC3, Array::OUTPUTTY… in init()
572 Array::Storage storages[] = {Array::STORAGE_USER}; in init()
583 …std::string name = "components" + typeToString(componentCount) + "_" + Array::outputTypeToString(o… in init()
585 …bool inputIsSignedInteger = m_type == Array::INPUTTYPE_INT || m_type == Array::INPUTTYPE_SHORT ||… in init()
586 …tIsUnignedInteger = m_type == Array::INPUTTYPE_UNSIGNED_INT || m_type == Array::INPUTTYPE_UNSIGNED… in init()
587 …utputTypeNdx] == Array::OUTPUTTYPE_IVEC2 || outputTypes[outputTypeNdx] == Array::OUTPUTTYPE_IVEC3 … in init()
588 …utputTypeNdx] == Array::OUTPUTTYPE_UVEC2 || outputTypes[outputTypeNdx] == Array::OUTPUTTYPE_UVEC3 … in init()
591 …_type == Array::INPUTTYPE_FLOAT || m_type == Array::INPUTTYPE_HALF || m_type == Array::INPUTTYPE_… in init()
594 …f((m_type == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || m_type == Array::INPUTTYPE_INT_2_10_10_10… in init()
597 …if((m_type == Array::INPUTTYPE_UNSIGNED_INT_2_10_10_10 || m_type == Array::INPUTTYPE_INT_2_10_10_1… in init()
609 Array::USAGE_DYNAMIC_DRAW, in init()
618 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
655 …Array::InputType inputTypes[] = {Array::INPUTTYPE_FLOAT, Array::INPUTTYPE_SHORT, Array::INPUTTYPE_… in init()
738 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
744 MultiVertexArrayTest::Spec::ArraySpec arraySpec(Array::INPUTTYPE_FLOAT, in init()
745 Array::OUTPUTTYPE_VEC2, in init()
746 Array::STORAGE_USER, in init()
747 Array::USAGE_DYNAMIC_DRAW, in init()
752 GLValue::getMinValue(Array::INPUTTYPE_FLOAT), in init()
753 GLValue::getMaxValue(Array::INPUTTYPE_FLOAT)); in init()
800 << Array::storageToString(spec.arrays[arrayNdx].storage); in getTestName()
814 if (spec.arrays[arrayNdx].storage != Array::STORAGE_USER) in addStorageCases()
831 Array::Storage storages[] = {Array::STORAGE_USER, Array::STORAGE_BUFFER}; in addStorageCases()
834 MultiVertexArrayTest::Spec::ArraySpec arraySpec(Array::INPUTTYPE_FLOAT, in addStorageCases()
835 Array::OUTPUTTYPE_VEC2, in addStorageCases()
837 Array::USAGE_DYNAMIC_DRAW, in addStorageCases()
842 GLValue::getMinValue(Array::INPUTTYPE_FLOAT), in addStorageCases()
843 GLValue::getMaxValue(Array::INPUTTYPE_FLOAT)); in addStorageCases()
859 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
903 << Array::inputTypeToString(spec.arrays[arrayNdx].inputType) in getTestName()
918 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
941 MultiVertexArrayTest::Spec::ArraySpec arraySpec(Array::INPUTTYPE_FLOAT, in addStrideCases()
942 Array::OUTPUTTYPE_VEC2, in addStrideCases()
943 Array::STORAGE_USER, in addStrideCases()
944 Array::USAGE_DYNAMIC_DRAW, in addStrideCases()
947 …trides[strideNdx] >= 0 ? strides[strideNdx] : componentCount * Array::inputTypeSize(Array::INPUTTY… in addStrideCases()
949 GLValue::getMinValue(Array::INPUTTYPE_FLOAT), in addStrideCases()
950 GLValue::getMaxValue(Array::INPUTTYPE_FLOAT)); in addStrideCases()
994 << Array::inputTypeToString(spec.arrays[arrayNdx].inputType) in getTestName()
996 << Array::outputTypeToString(spec.arrays[arrayNdx].outputType); in getTestName()
1009 spec.primitive = Array::PRIMITIVE_TRIANGLES; in init()
1027 …Array::InputType inputTypes[] = {Array::INPUTTYPE_FIXED, Array::INPUTTYPE_BYTE, Array::INPUTTYPE_S… in addInputTypeCases()
1031 Array::OUTPUTTYPE_VEC2, in addInputTypeCases()
1032 Array::STORAGE_USER, in addInputTypeCases()
1033 Array::USAGE_DYNAMIC_DRAW, in addInputTypeCases()