MCPcopy Create free account
hub / github.com/RenderKit/embree / copyArrayToUSM

Function copyArrayToUSM

tutorials/common/tutorial/scene_device.cpp:58–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57 template<typename Ty>
58 Ty* copyArrayToUSM(const avector<Ty>& in) {
59 Ty* out = (Ty*)alignedUSMMalloc(in.size()*sizeof(Ty));
60 memcpy((void*)out,in.data(),in.size()*sizeof(Ty));
61 return out;
62 }
63
64 template<typename Ty>
65 Ty* copyArrayToUSM(const std::vector<Ty>& in) {

Callers 5

ISPCTriangleMeshMethod · 0.85
ISPCQuadMeshMethod · 0.85
ISPCGridMeshMethod · 0.85
ISPCHairSetMethod · 0.85
ISPCPointSetMethod · 0.85

Calls 3

alignedUSMMallocFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected