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

Function ospNewFrameBuffer

ospray/api/API.cpp:568–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

566///////////////////////////////////////////////////////////////////////////////
567
568extern "C" OSPFrameBuffer ospNewFrameBuffer(int size_x,
569 int size_y,
570 OSPFrameBufferFormat mode,
571 uint32_t channels) OSPRAY_CATCH_BEGIN
572{
573 ASSERT_DEVICE();
574
575 // remove OSP_FB_VARIANCE when OSP_FB_ACCUM is not present
576 uint32_t ch = channels;
577 if ((channels & OSP_FB_ACCUM) == 0)
578 ch &= ~OSP_FB_VARIANCE;
579
580 return currentDevice().frameBufferCreate(vec2i(size_x, size_y), mode, ch);
581}
582OSPRAY_CATCH_END(nullptr)
583
584extern "C" OSPImageOperation ospNewImageOperation(

Callers 7

createFramebufferFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
buildScene1Function · 0.85
buildScene2Function · 0.85
mainFunction · 0.85
FrameBufferMethod · 0.85

Calls 1

frameBufferCreateMethod · 0.45

Tested by

no test coverage detected