Home | History | Annotate | Download | only in functional

Lines Matching full:numbytes

70 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed)
72 std::copy(tcu::RandomValueIterator<deUint8>::begin(seed, numBytes), tcu::RandomValueIterator<deUint8>::end(), ptr);
75 bool compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes)
86 for (;ndx < numBytes; ndx++)
221 void ReferenceBuffer::setSize (int numBytes)
223 m_data.resize(numBytes);
226 void ReferenceBuffer::setData (int numBytes, const deUint8* bytes)
228 m_data.resize(numBytes);
229 std::copy(bytes, bytes+numBytes, m_data.begin());
232 void ReferenceBuffer::setSubData (int offset, int numBytes, const deUint8* bytes)
234 DE_ASSERT(de::inBounds(offset, 0, (int)m_data.size()) && de::inRange(offset+numBytes, offset, (int)m_data.size()));
235 std::copy(bytes, bytes+numBytes, m_data.begin()+offset);
266 bool BufferVerifier::verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes)
268 DE_ASSERT(numBytes >= getMinSize());
270 DE_ASSERT((offset+numBytes)%getAlignment() == 0);
271 return m_verifier->verify(buffer, reference, offset, numBytes);
407 bool VertexArrayVerifier::verify (deUint32 buffer, const deUint8* refPtr, int offset, int numBytes)
426 DE_ASSERT(numBytes >= numBytesInQuad); // Can't render full quad with smaller buffers.
444 while (numVerified < numBytes)
446 int numRemaining = numBytes-numVerified;
449 int curOffset = isLeftoverBatch ? (numBytes-numBytesInQuad) : numVerified;
456 DE_ASSERT(de::inBounds(curOffset, 0, numBytes));
457 DE_ASSERT(de::inRange(curOffset+numBytesToVerify, curOffset, numBytes));
568 bool IndexArrayVerifier::verify (deUint32 buffer, const deUint8* refPtr, int offset, int numBytes)
608 while (numVerified < numBytes)
610 int numRemaining = numBytes-numVerified;
613 int curOffset = isLeftoverBatch ? (numBytes-minBytesPerBatch) : numVerified;