Lines Matching refs:size

59 		, size		(0)
66 , size (size_)
72 int size;
180 BasicBufferDataCase (Context& context, const char* name, const char* desc, deUint32 target, deUint32 usage, int size, VerifyType verify)
184 , m_size (size)
244 refBuf.setSize(spec->size);
245 fillWithRandomBytes(refBuf.getPtr(), spec->size, baseSeed ^ deInt32Hash(spec->size+spec->target+spec->usage));
248 glBufferData(spec->target, spec->size, refBuf.getPtr(), spec->usage);
252 iterOk = verifier.verify(buf, refBuf.getPtr(), 0, spec->size);
273 BasicBufferSubDataCase (Context& context, const char* name, const char* desc, deUint32 target, deUint32 usage, int size, int subDataOffs, int subDataSize, VerifyType verify)
277 , m_size (size)
282 DE_ASSERT(de::inBounds(subDataOffs, 0, size) && de::inRange(subDataOffs+subDataSize, 0, size));
327 SubDataToUndefinedCase (Context& context, const char* name, const char* desc, deUint32 target, deUint32 usage, int size, const tcu::IVec2* ranges, int numRanges, VerifyType verify)
331 , m_size (size)
469 const int size = rnd.getInt(minSize, maxSize);
473 m_refBuffer.setSize(size);
475 fillWithRandomBytes(m_refBuffer.getPtr(), size, rnd.getUint32());
477 glBufferData(target, size, fillWithData ? m_refBuffer.getPtr() : DE_NULL, hint);
481 m_validRanges.push_back(tcu::IVec2(0, size));
483 m_curSize = size;
487 // \note Non-uniform size distribution.
488 const int size = de::clamp(deRoundFloatToInt32((float)m_curSize * deFloatPow(rnd.getFloat(0.0f, 0.7f), 3.0f)), minSize, m_curSize);
489 const int offset = rnd.getInt(0, m_curSize-size);
491 fillWithRandomBytes(m_refBuffer.getPtr()+offset, size, rnd.getUint32());
492 glBufferSubData(target, offset, size, m_refBuffer.getPtr()+offset);
494 m_validRanges = addRangeToList(m_validRanges, tcu::IVec2(offset, size));
580 const int size = 1020;
584 basicGroup->addChild(new BasicBufferDataCase(m_context, name.c_str(), "", target, usage, size, verify));
603 const int size = 763;
607 verifyGroup->addChild(new BasicBufferDataCase(m_context, name.c_str(), "", target, usage, size, verify));
622 recreateStoreGroup->addChild(new RecreateBufferDataStoreCase(m_context, #NAME, DESC, &specs[0], (int)specs.size(), VERIFY_AS_VERTEX_ARRAY)); \
650 RECREATE_STORE_CASE(different_size, "Recreate with different size",
677 spec->size = rnd.getInt(minSize, maxSize);
680 recreateStoreGroup->addChild(new RecreateBufferDataStoreCase(m_context, (string("random_") + de::toString(caseNdx+1)).c_str(), "", &specs[0], (int)specs.size(), verify));
696 const int size = 1020;
700 basicGroup->addChild(new BasicBufferDataCase(m_context, name.c_str(), "", target, usage, size, verify));
715 partialSpecifyGroup->addChild(new SubDataToUndefinedCase(m_context, #NAME, DESC, TARGET, USAGE, SIZE, &ranges[0], (int)ranges.size(), VERIFY_AS_VERTEX_ARRAY)); \