Lines Matching refs:spec

85 					DrawCallBatchingTest	(Context& context, const char* name, const char* description, const TestSpec& spec);
149 DrawCallBatchingTest::DrawCallBatchingTest (Context& context, const char* name, const char* description, const TestSpec& spec)
157 , m_spec (spec)
931 string specToName (const DrawCallBatchingTest::TestSpec& spec)
935 DE_ASSERT(!spec.useStaticBuffer || spec.staticAttributeCount > 0);
936 DE_ASSERT(!spec.useDynamicBuffer|| spec.dynamicAttributeCount > 0);
938 if (spec.staticAttributeCount > 0)
939 stream << spec.staticAttributeCount << "_static_";
941 if (spec.useStaticBuffer)
942 stream << (spec.staticAttributeCount == 1 ? "buffer_" : "buffers_");
944 if (spec.dynamicAttributeCount > 0)
945 stream << spec.dynamicAttributeCount << "_dynamic_";
947 if (spec.useDynamicBuffer)
948 stream << (spec.dynamicAttributeCount == 1 ? "buffer_" : "buffers_");
950 stream << spec.triangleCount << "_triangles";
955 string specToDescrpition (const DrawCallBatchingTest::TestSpec& spec)
957 DE_UNREF(spec);
1056 DrawCallBatchingTest::TestSpec spec;
1058 spec.useStaticBuffer = useStaticBuffer;
1059 spec.staticAttributeCount = staticAttributeCount;
1061 spec.useDynamicBuffer = useDynamicBuffer;
1062 spec.dynamicAttributeCount = dynamicAttributeCount;
1064 spec.drawCallCount = drawCallCount;
1065 spec.triangleCount = triangleCount;
1067 spec.useDrawElements = drawElements;
1068 spec.useIndexBuffer = useIndexBuffer;
1069 spec.dynamicIndices = dynamicIndices;
1071 if (spec.useStaticBuffer && spec.staticAttributeCount == 0)
1074 if (spec.useDynamicBuffer && spec.dynamicAttributeCount == 0)
1077 attributeCountGroup->addChild(new DrawCallBatchingTest(m_context, specToName(spec).c_str(), specToDescrpition(spec).c_str(), spec));