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

Method getPtr

kernels/common/buffer.h:150–157  ·  view source on GitHub ↗

! returns pointer to first element */

Source from the content-addressed store, hash-verified

148
149 /*! returns pointer to first element */
150 __forceinline char* getPtr(BufferDataPointerType type) const
151 {
152 if (type == BufferDataPointerType::HOST) return getHostPtr();
153 else if (type == BufferDataPointerType::DEVICE) return getDevicePtr();
154
155 throw_RTCError(RTC_ERROR_INVALID_ARGUMENT, "invalid buffer data pointer type specified");
156 return nullptr;
157 }
158
159 /*! returns pointer to first element */
160 __forceinline virtual char* getHostPtr() const {

Callers 15

createGeometryDescFunction · 0.45
CatmullClarkPatchTFunction · 0.45
BilinearPatchTFunction · 0.45
prefetchL1_verticesMethod · 0.45
prefetchL2_verticesMethod · 0.45
interpolate_implMethod · 0.45
interpolate_implMethod · 0.45
interpolate_implMethod · 0.45
vertexPtrMethod · 0.45
getCompactVertexArrayMethod · 0.45
l2wMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected