MCPcopy Create free account
hub / github.com/arrayfire/forge / copyToGLBuffer

Function copyToGLBuffer

include/ComputeCopy.h:107–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static
108void copyToGLBuffer(GfxHandle* pGLDestination, ComputeResourceHandle pSource, const size_t pSize)
109{
110 GfxHandle* temp = pGLDestination;
111
112 if (temp->mTarget==FORGE_IMAGE_BUFFER) {
113 fg_update_pixel_buffer(temp->mId, pSize, pSource);
114 } else if (temp->mTarget==FORGE_VERTEX_BUFFER) {
115 fg_update_vertex_buffer(temp->mId, pSize, pSource);
116 }
117}
118#endif
119
120///////////////////////////////////////////////////////////////////////////////

Callers 15

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 4

fg_update_pixel_bufferFunction · 0.85
fg_update_vertex_bufferFunction · 0.85
getCommandQueueFunction · 0.85
fg_finishFunction · 0.85

Tested by

no test coverage detected