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

Method getGeometryDataDeviceByteSize

kernels/common/scene_points.cpp:196–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 }
195
196 size_t Points::getGeometryDataDeviceByteSize() const {
197 size_t byte_size = sizeof(Points);
198 if (vertices.size() > 0)
199 byte_size += numTimeSteps * sizeof(BufferView<Vec3ff>);
200 if (normals.size() > 0)
201 byte_size += numTimeSteps * sizeof(BufferView<Vec3fa>);
202 return 16 * ((byte_size + 15) / 16);
203 }
204
205 void Points::convertToDeviceRepresentation(size_t offset, char* data_host, char* data_device) const {
206 Points* points = (Points*)(data_host + offset);

Callers 1

syncWithDeviceMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected