MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / deserializeFloatVectors

Function deserializeFloatVectors

openpgl/openpgl_common.h:55–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54template <int NumVectors, int VectorSize>
55void deserializeFloatVectors(std::istream &stream, embree::vfloat<VectorSize> *vectors)
56{
57 for (int i = 0; i < NumVectors; i++)
58 {
59 for (int j = 0; j < VectorSize; j++)
60 {
61 stream.read(reinterpret_cast<char *>(&vectors[i][j]), sizeof(float));
62 }
63 }
64}
65
66template <int NumVectors, int VectorSize>
67void serializeVec2Vectors(std::ostream &stream, const embree::Vec2<embree::vfloat<VectorSize> > *vectors)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected