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

Method commit

kernels/common/scene_points.cpp:130–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 void Points::commit()
131 {
132 /* verify that stride of all time steps are identical */
133 for (unsigned int t = 0; t < numTimeSteps; t++) {
134 if (vertices[t].getStride() != vertices[0].getStride())
135 throw_RTCError(RTC_ERROR_INVALID_OPERATION, "stride of vertex buffers have to be identical for each time step");
136 vertices[t].buffer->commitIfNeeded();
137 }
138 for (auto& buffer : normals) {
139 if (buffer.getStride() != normals[0].getStride())
140 throw_RTCError(RTC_ERROR_INVALID_OPERATION, "stride of normal buffers have to be identical for each time step");
141 buffer.buffer->commitIfNeeded();
142 }
143 vertices0 = vertices[0];
144 if (getType() == GTY_ORIENTED_DISC_POINT)
145 normals0 = normals[0];
146
147 Geometry::commit();
148 }
149
150 void Points::addElementsToCount (GeometryCounts & counts) const
151 {

Callers

nothing calls this directly

Calls 3

getTypeFunction · 0.85
getStrideMethod · 0.80
commitIfNeededMethod · 0.80

Tested by

no test coverage detected