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

Method resize

tutorials/common/tutorial/tutorial.cpp:666–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664 }
665
666 void TutorialApplication::resize(unsigned width, unsigned height)
667 {
668 if (width == this->width && height == this->height && pixels)
669 return;
670
671 this->width = width;
672 this->height = height;
673
674 if (pixels) alignedUSMFree(pixels);
675 pixels = (unsigned*) alignedUSMMalloc(width*height*sizeof(unsigned),64,EmbreeUSMMode::DEVICE_READ_WRITE);
676 }
677
678 void TutorialApplication::set_scene (TutorialScene* in)
679 {

Callers 15

initMethod · 0.45
initMethod · 0.45
geometryMethod · 0.45
buildFunction · 0.45
device_initFunction · 0.45
createGroundPlaneFunction · 0.45
createTriangulatedSphereFunction · 0.45
createClothSheetFunction · 0.45
ReadAttributeFunction · 0.45
WriteChannelInfoFunction · 0.45
CompressZfpFunction · 0.45
ComputeChannelLayoutFunction · 0.45

Calls 2

alignedUSMFreeFunction · 0.85
alignedUSMMallocFunction · 0.85

Tested by

no test coverage detected