Lines Matching refs:dataSize
289 void Allocation::unpackVec3Allocation(Context *rsc, const void *data, size_t dataSize) { in unpackVec3Allocation() argument
323 uint32_t dataSize = mHal.state.type->getSizeBytes(); in serialize() local
328 if (dataSize == packedSize) { in serialize()
330 stream->addByteArray(rsc->mHal.funcs.allocation.lock1D(rsc, this), dataSize); in serialize()
359 uint32_t dataSize = stream->loadU32(); in createFromStream() local
362 if (dataSize != type->getSizeBytes() && in createFromStream()
363 dataSize != packedSize) { in createFromStream()
372 if (dataSize == type->getSizeBytes()) { in createFromStream()
373 uint32_t count = dataSize / type->getElementSizeBytes(); in createFromStream()
375 alloc->data(rsc, 0, 0, count, stream->getPtr() + stream->getPos(), dataSize); in createFromStream()
377 alloc->unpackVec3Allocation(rsc, stream->getPtr() + stream->getPos(), dataSize); in createFromStream()
379 stream->reset(stream->getPos() + dataSize); in createFromStream()