MCPcopy Create free account
hub / github.com/RenderKit/ospray / ospNewImageOperation

Function ospNewImageOperation

ospray/api/API.cpp:584–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582OSPRAY_CATCH_END(nullptr)
583
584extern "C" OSPImageOperation ospNewImageOperation(
585 const char *_type) OSPRAY_CATCH_BEGIN
586{
587 THROW_IF_NULL_STRING(_type);
588
589 ASSERT_DEVICE();
590 int L = strlen(_type);
591 char *type = STACK_BUFFER(char, L + 1);
592 for (int i = 0; i <= L; i++) {
593 char c = _type[i];
594 if (c == '-' || c == ':')
595 c = '_';
596 type[i] = c;
597 }
598 OSPImageOperation op = currentDevice().newImageOp(type);
599 return op;
600}
601OSPRAY_CATCH_END(nullptr)
602
603extern "C" const void *ospMapFrameBuffer(

Callers 2

newImageOperationFunction · 0.85
ImageOperationMethod · 0.85

Calls 1

newImageOpMethod · 0.45

Tested by

no test coverage detected